It took two days. Monitoring the server with nagios4x lasts about 3-4 months. I originally wanted to monitor a plot when I set up it, but I never got it out. Later
It took two days. Monitoring the server with nagios 4.x lasts for about 3-4 months. I originally wanted to monitor a plot when I set up it, but I never got it out. Later, it was put on hold. A while ago, due to the performance issues of the server, I wanted to analyze it, so I had this kind of requirement. After two days of hard work, nagios was finally shown. Record it here by the way.
First. I don't know if it is a version Issue. after a lot of experiments and modifications to the configuration file, I accidentally found a post, the figure below shows that nagios 4.x cannot be used with other versions, but nagios 3.2.3 + nagios plugins 1.4.15 + pnp4nagios 0.6.7 is used. I think it has nothing to do with the system version, plug-in version, pnp4nagios version, and rrdtool version. it is only related to the nagios version. With a try-on mentality, I tried it and finally made a picture.
I read a lot of information on the internet and found that configuring pnp4nagios makes it not very complicated to plot nagios. why do I still need to modify it and I still cannot find it.
Install and configure nagios + nagios plugins + nrpe + pnp4nagios. Here I will give you an example that I think is easier to understand.
Http://www.linuxidc.com/linux/2012-11/73681.htmthis is the configuration of Nagios and the configuration of the client.
Http://www.linuxidc.com/linux/2012-11/73680.htmthis is the output configuration.
Here I will write down some of my problems.
1. nagios cannot get in. it is clear that the password file and the configuration file are correct, and the password is extremely simple, that is, the password cannot be entered. The final result is that php is not installed, in yum-y install php, restart httpd and nagios to enter,
2. An error was detected which prevented the loading of this page. If this 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)
With an error, I saw this blog, but I didn't have the permission to modify it. I just modified the group and it was successful.
The default php is an apache group, and my httpd. conf changes the httpd service to a nagios user and group.
In this way, nagios can be unearthed. Bytes