Happy to remember
first of all ... Install Maysql PHP HTTP ... Well
-------------------------------------------------------------------------------
First install the Nagios server side
Create Nagios users
Useradd-s/sbin/nologin Nagios
Create The Nagios file and give it a bit of power
Mkdir/usr/local/nagios
Chown-r Nagios:nagios/usr/local/nagios
Unzip the Nagios file anywhere
Tar zxf nagios-4.0.1.tar.gz
Enter the extracted file to compile and install
./configure--prefix=/usr/local/nagios &&make All &&make install &&make Install-init & &make install-commandmode &&make install-config &&make install-webconf
Join the Service
Chkconfig--add Nagios
install another Nagios file plugins
tar zxf nagios-plugins-1.5.tar.gz
Enter the file to compile and install ~
./configure--prefix=/usr/local/nagios &&make &&make Install
There is also a plug-in Nrpe used to collect computer state data
Tar zxf nrpe-2.15.tar.gz
Go to File compilation installation
./configure &&make All &&make install-plugin
Complete Installation ... To start modifying a configuration file
Enter httpd.conf document
Import a configuration text in the last line
r/etc/httpd/conf.d/nagios.conf
Then create the Nagios authorized user
/usr/bin/htpasswd-c/usr/local/nagios/etc/htpasswd.users nagiosadmin password
Open Two services so you can connect.
Service httpd Start
Service Nagios Start
Website Login Ip/nagios can
650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/12/wKioL1jTMu7yG1-qAAGVHuHSeSY987.png "title=" Picture 1.png "alt=" Wkiol1jtmu7yg1-qaagvhuhsesy987.png "/>
This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1909495
linux-nagios-Server Status monitoring