PNP is a small open-source software package. It is based on PHP and PERL and uses rrdtool to plot data collected by Nagios into charts. If you want to install Nagios pnp, the detailed Nagios pnp configuration is provided here for you to refer to the configuration of Nagios pnp after installing all the software.
1. Modify the pnp configuration file for Nagios PNP configuration and enable logging
The default path is/usr/local/nagios/var/process_perfdata.cfg.
LOG_FILE =/usr/local/nagios/var/perfdata. log
#
# Loglevel 0 = silent 1 = normal 2 = debug
#
LOG_LEVEL = 0 # Set this example to 2 and use the debug mode
2. Modify the Nagios configuration file in Nagios pnp Configuration
Reference Official Website: http://www.pnp4nagios.org/pnp/webfe
In this example, when the sun icon is added
Add the red part in the/usr/local/nagios/etc/objects/templates. cfg server option and local option.
Define service
{
Name generic-service
Action_url/nagios/pnp/index. php? Host = $ HOSTNAME $ & srv = $ SERVICEDESC $
Process_perf_data 1