This article describes the details of Nagios's pnp configuration and hopes to help you with Nagios's pnp usage. Here we provide detailed Nagios's pnp configuration. Let's take a look at its specific content.
Nagios pnp configuration environment:
Cetnos5apache2nagios3pnp-0.4.3
If Stone brother is referenced during installation:
1. compilephpwithzlibandgdoption;
2. configureandmakeinstallthepnp;
3. modifythenagios. registrandcommand. cfgwiththeprocess_perfdataandhost/service_dataoption;
4. renamePNP 'stemplates. distastemplates; this step is not required, but it is okay if it is changed)
5. renameallPNP 'scfg _ samplefiles_samplesuffix;
6. Action_url: action_url. In 2.x, it can only be done through serviceextinfo. In 3.x, templates can be used for inheritance. Therefore, in 3.x, the number of configurations is much less, especially when deployment is too large)
This article does not detail the Nagios pnp installation process: Read the official documentation.
[Url] http://www.pnp4nagios.org/pnp/install#/url]
If you are using centos5 like zlibgbrrdtool, you can directly use yum
Method Source: linuxtone.org [netseek brothers]
1. wget [url] URLs
2. rpm-ivhrpmforge-release-0.3.6-1.el5.rf.i386.rpm
3. yuminstall ****
After installing all the software, you need to make some configuration.
1. Modify the PNP configuration file and enable the default Log Path in:
/Usr/local/nagios/var/process_perfdata.cfg
LOG_FILE =/usr/local/nagios/var/perfdata. log
#
# Loglevel0 = silent1 = normal2 = debug
#
LOG_LEVEL = 0 # Set this example to 2 and use the debug mode