Toss for 2 days. The Nagios 4.x version of the monitor server lasts about 3-4 months. Originally set up when they want to do a map of the monitoring, but has not been out. And then it was put on hold. Before, because of server performance problems, want to analyze, so there is such a demand. After 2 days of fighting, finally put the nagios out of the picture. Here, by the way, record.
First of all. I do not know is not a version of the problem, after I passed a large number of experiments, modify the configuration file, no fruit, accidentally found a post, the landlord said Nagios 4.x with other versions out of the picture, but with Nagios 3.2.3+nagios plugins 1.4.15+ Pnp4nagios 0.6.7 out of the picture. I think it has nothing to do with the system version, the plugin version, the Pnp4nagios version, the RRDtool version, only the Nagios version. Hold a try to try the mentality, to try the next, finally out of the picture.
Because I read a lot of information on the Internet, found that in fact, configure Pnp4nagios, so that nagios out of the picture is not very complicated things, why I still need to change to go, and finally can not be.
Installation configuration Nagios+nagios Plugins+nrpe+pnp4nagios can refer to many examples on the web. Here I give one that I find easier to understand.
Http://www.linuxidc.com/Linux/2012-11/73681.htm This is the configuration of the Nagios and the configuration of the client
Http://www.linuxidc.com/Linux/2012-11/73680.htm This is the configuration of the plot
Here I will write about some of the problems I have encountered.
1. Nagios, clearly password files and configuration files are written in the right, the password is extremely simple, is not into, and finally found that there may be PHP is not installed in Yum-y install PHP, restart httpd and Nagios can enter,
2.An error is detected which prevented the loading of this page. If This is problem persists, please contact the website administrator.
/usr/local/pnp4nagios/lib/kohana/system/libraries/session.php [160]:
Session_Start (): Open (/var/lib/php5/sess_d1suf0cpph46v95efp1b7l0cbtt0q7nr, O_RDWR) Failed:permission denied (13)
Hold a mistake, see this blog, but I did not modify the permissions, just modify the group, it succeeded.
The default PHP is the Apache group, and my httpd.conf httpd service to Nagios users and groups
So the Nagios can be unearthed.