DeploymentNagiosTo monitor network information, first configure.
It took several days to complete the nagios monitoring deployment for nearly 500 servers and multiple nodes. nagios clearly shows the topology, host status, and service status of the entire monitoring network. however, I will not post any information about the real network here, because this will have a lot of adverse effects. however, the mass production tools I used in the actual production process will be provided (that is, the shell for not playing the keyboard ).
System Environment: centos5.5 x86_64
Web: apache + php (yum installation)
Nagios: nagios 3.2.1
Nagios-plugins: 1.4.15
No remote host monitoring is involved, so the nrpe module is not involved.
Because the nagios page is generated using cgi, apache must support cgi first, as long as it is in httpd. add the following content after the conf file. However, if you have customized the nagios installation path, the actual content will prevail.
Let apache support cgi first
Remove the # Before the following line
# AddHandler cgi-script. cgi
Add directory
Scriptalias/nagios/cgi-bin/usr/local/nagios/sbin
Options ExecCGI
AllowOverride None
Order allow, deny
Allow from all
AuthName "nagios access"
AuthType Basic
AuthUserFile/usr/local/nagios/etc/htpasswd
Require valid-user
Alias/nagios/usr/local/nagios/share
Options None
AllowOverride None
Order allow, deny
Allow from all
AuthName "nagios access"
AuthType Basic
AuthUserFile/usr/local/nagios/etc/htpasswd
Require valid-user