{"id":360,"date":"2014-05-20T22:36:45","date_gmt":"2014-05-20T22:36:45","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=360"},"modified":"2014-05-20T22:38:57","modified_gmt":"2014-05-20T22:38:57","slug":"how-to-install-nagios-4-0-6-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/how-to-install-nagios-4-0-6-on-centos-6-3\/","title":{"rendered":"How to Install Nagios 4.0.6 on CentOS 6.3"},"content":{"rendered":"<p>Install the prerequisite packages<\/p>\n<pre>yum install gd gd-devel httpd php gcc glibc glibc-common make perl<\/pre>\n<p>Create the Nagios user.<\/p>\n<pre>useradd -m nagios\r\npasswd nagios\r\ngroupadd nagcmd\r\nusermod -a -G nagcmd nagios\r\nusermod -a -G nagcmd apache\r\n<\/pre>\n<p>Create a directory to download and build Nagios from<\/p>\n<pre>mkdir \/root\/nagios\r\ncd \/root\/nagios<\/pre>\n<p>Download Nagios and the Nagios plugins<\/p>\n<pre>wget downloads.sourceforge.net\/project\/nagios\/nagios-4.x\/nagios-4.0.6\/nagios-4.0.6.tar.gz\r\nwget nagios-plugins.org\/download\/nagios-plugins-2.0.2.tar.gz \r\n<\/pre>\n<p>Extract the Nagios zip<\/p>\n<pre> tar xvzf nagios-4.0.6.tar.gz\r\ncd nagios-4.0.6<\/pre>\n<p>Compile and make it<\/p>\n<pre>.\/configure\r\nmake all\r\nmake install-init\r\nmake install-commandmode\r\nmake install-config\r\nmake install-webconf\r\n<\/pre>\n<p>Create a password so you can login to the web interface<\/p>\n<pre>htpasswd -c \/usr\/local\/nagios\/etc\/htpasswd.users nagiosadmin<\/pre>\n<p>Enable Nagios on startup<\/p>\n<pre> chkconfig nagios on<\/pre>\n<p>Start the service<\/p>\n<pre>service nagios start<\/pre>\n<p>Install the plugins.<\/p>\n<pre>cd ..\r\ntar xvzf nagios-plugins-2.0.2.tar.gz\r\ncd nagios-plugins-2.0.2\r\n.\/configure\r\nmake\r\nmake install\r\n<\/pre>\n<p>Start apache and make sure it starts on boot.<\/p>\n<pre>service httpd start\r\nchkconfig httpd on<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install the prerequisite packages yum install gd gd-devel httpd php gcc glibc glibc-common make perl Create the Nagios user. useradd -m nagios passwd nagios groupadd nagcmd usermod -a -G nagcmd nagios usermod -a -G nagcmd apache Create a directory to &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-install-nagios-4-0-6-on-centos-6-3\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,3,122],"tags":[125,123,124],"class_list":["post-360","post","type-post","status-publish","format-standard","hentry","category-centos-linux","category-linux","category-nagios","tag-linux-monitoring","tag-nagios-2","tag-nagios-4-0-3"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=360"}],"version-history":[{"count":6,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/360\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/360\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}