Linux---nagios monitoring diagram

Source: Internet
Author: User
Tags install php

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.