{"id":8,"date":"2008-06-26T20:29:02","date_gmt":"2008-06-26T11:29:02","guid":{"rendered":"http:\/\/morishige.jp\/blog\/?p=8"},"modified":"2008-07-07T17:44:19","modified_gmt":"2008-07-07T08:44:19","slug":"nagios-303-install","status":"publish","type":"post","link":"https:\/\/morishige.jp\/blog\/archives\/8","title":{"rendered":"Nagios 3.0.3 install"},"content":{"rendered":"<p>CentOS 4.6\u3092\u5bfe\u8c61\u3002<br \/>\n* Apache<br \/>\n* GCC compiler<br \/>\n* GD development librarie<br \/>\n\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\r\n# yum install httpd\r\n# yum install gcc\r\n# yum install glibc glibc-common \uff08\u2190\u3053\u308c\u306f\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u5fc5\u8981\u306a\u3044\u304b\u3082\uff09\r\n# yum install gd gd-devel\r\n# yum install libpng-devel\r\n# yum install libjpeg-devel\r\n<\/pre>\n<p>\u5fc5\u8981\u306a\u30e6\u30fc\u30b6\u30fc\u306e\u4f5c\u6210<\/p>\n<pre>\r\n# \/usr\/sbin\/useradd -m nagios\r\n# passwd nagios\r\n# \/usr\/sbin\/groupadd nagcmd\r\n# \/usr\/sbin\/usermod -G nagcmd nagios\r\n# \/usr\/sbin\/usermod -G nagcmd apache\r\n# exit\r\n<\/pre>\n<p>\u30bd\u30fc\u30b9\u306e\u53d6\u5f97\u3068Make<\/p>\n<pre>\r\n$ cd \/usr\/local\/src\/\r\n$ wget http:\/\/jaist.dl.sourceforge.net\/sourceforge\/nagios\/nagios-3.0.3.tar.gz\r\n$ wget http:\/\/jaist.dl.sourceforge.net\/sourceforge\/nagiosplug\/nagios-plugins-1.4.12.tar.gz\r\n$ tar xfvz nagios-3.0.3.tar.gz\r\n$ cd nagios-3.0.3\r\n$ .\/configure --with-command-group=nagcmd\r\n$ make all\r\n$ su\r\n# make install\r\n# make install-init\r\n# make install-config\r\n# make install-commandmode\r\n<\/pre>\n<p>\u8a2d\u5b9a<\/p>\n<pre>\r\n# vi \/usr\/local\/nagios\/etc\/objects\/contacts.cfg\r\n<\/pre>\n<p>\u306e\u901a\u77e5\u5148\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/p>\n<pre>\r\n# make install-webconf\r\n# htpasswd -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin\r\n\r\n# \/etc\/init.d\/httpd restart\r\n# exit\r\n<\/pre>\n<p>Nagios plugins<\/p>\n<pre>\r\n$ cd \/usr\/local\/src\/\r\n$ tar xfvz nagios-plugins-1.4.12.tar.gz\r\n$ cd nagios-plugins-1.4.12\r\n$ .\/configure --with-nagios-user=nagios --with-nagios-group=nagios\r\n$ make\r\n$ su\r\n# make install\r\n\r\n# \/sbin\/chkconfig --add nagios\r\n# \/sbin\/chkconfig nagios on\r\n<\/pre>\n<p>\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306e\u30c1\u30a7\u30c3\u30af<\/p>\n<pre>\r\n# \/usr\/local\/nagios\/bin\/nagios -v \/usr\/local\/nagios\/etc\/nagios.cfg\r\n# \/sbin\/service nagios start\r\n<\/pre>\n<p>&#8212;<br \/>\nStatus Map \u3067\u3001<br \/>\nThe requested URL \/nagios\/cgi-bin\/statusmap.cgi was not found on this server.<br \/>\n\u3068\u306a\u3063\u305f\u5834\u5408\u306f\u3001GD\u3001libpng, libjpeg\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u78ba\u8a8d\u3002\u3068\u304f\u306b\u3001libpng-devel\u3001libjpeg-devel\u3092\u5fd8\u308c\u3066\u3044\u308b\u3068\u99c4\u76ee\u3002\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3057\u3066\u3082\u3001\u3053\u306e\u8fba\u308a\u3092\u5fd8\u308c\u3066\u306f\u307e\u3063\u3066\u3044\u308b\u4eba\u304c\u591a\u3044\u3088\u3046\u3067\u3059\u3002<\/p>\n<pre>\r\n# yum install libpng\r\n# yum install libpng-devel\r\n# yum install libjpeg\r\n# yum install libjpeg-devel\r\n# yum install gd gd-devel\r\n<\/pre>\n<p>&#8212;-<\/p>\n<p>3-D Status Map\u306e\u8868\u793a<\/p>\n<p>VRML\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5165\u308c\u307e\u3059\u3002<a href=\"http:\/\/www.parallelgraphics.com\/products\/cortona\/\">Cortona VRML Client \u306a\u3069\u3002<\/a><\/p>\n<p>&#8212;-<\/p>\n<p>\u8a66\u3057\u306b\u65e5\u672c\u8a9e\u5316\u3057\u3066\u307f\u308b\u3002<\/p>\n<p>\u65e5\u672c\u8a9e\u5316\u30d1\u30c3\u30c1\u306f\u30013.0.2\u306e\u3082\u306e\u3057\u304b\u7121\u3044\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u3084\u3063\u3066\u307f\u3088\u3046\u3002<\/p>\n<p>http:\/\/sourceforge.jp\/projects\/nagios-jp\/<\/p>\n<p>\u304b\u3089\u3001\u65e5\u672c\u8a9e\u5316\u30d1\u30c3\u30c1\u3092\u5165\u624b<\/p>\n<pre>\r\n$ cd \/usr\/local\/src\/nagios-3.0.3\r\n$ wget http:\/\/keihanna.dl.sourceforge.jp\/nagios-jp\/31372\/nagios-3.0.2-ja-utf8.patch.gz\r\n$ gzip -dc nagios-3.0.2-ja-utf8.patch.gz | patch -p0\r\n<\/pre>\n<p>\u4e00\u90e8\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u6c17\u306b\u305b\u305a\u3002<br \/>\n\u3042\u3068\u306f\u3044\u3064\u3082\u901a\u308a\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\r\n$ make clean\r\n$ .\/configure --with-command-group=nagcmd\r\n$ make all\r\n$ su\r\n# make install\r\n# make install-init\r\n# make install-config\r\n# make install-commandmode\r\n<\/pre>\n<p>\u30d1\u30c3\u3068\u307f\u554f\u984c\u306a\u3057\u3002<\/p>\n<p>&#8212;<\/p>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4f7f\u3044\u65b9<\/p>\n<p>\u76f4\u63a5\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u305f\u305f\u3044\u3066\u307f\u308b\u306e\u304c\u3066\u3063\u3068\u308a\u3070\u3084\u3044\u3002<\/p>\n<pre>\r\n$ cd \/usr\/local\/nagios\/libexec\/\r\n$ .\/check_http -H localhost\r\n<\/pre>\n<p>\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n\u500b\u3005\u306e\u4f7f\u3044\u65b9\u306f<\/p>\n<pre>\r\n$ .\/check_http -h\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>CentOS 4.6\u3092\u5bfe\u8c61\u3002 * Apache * GCC compiler * GD development librarie \u304c\u5fc5\u8981\u306a\u306e\u3067\u3001yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb # yum install httpd # yum i [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":1,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":155,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions\/155"}],"wp:attachment":[{"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morishige.jp\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}