pnp4nagios Installation and Configuration


PNP is an addon for the Nagios Network Monitoring System. PNP provides easy to use, easy to configure RRDTools based performance charts feeded by the performance data output of the Nagios Plugins. To install this,

1. Download the latest version of pnp4nagios source from

2. Untar it and cd into the extracted directory.

3. Run ./configure –with-nagios-user=nagios –with-nagios-group=nagios

a. Some lines run across the screen after running this. The paths shown should be checked. If the displayed values aren’t correct you can change them calling ./configure with appropriate options( ./configure –help ).

NB:: Make sure that we have rrdtool and perl-rrdtool are installed on our server.

4. Run make; make install clean; make install-webconf; make install-config; make install-init;

Attention: After copying the configuration file for the web server you have to restart the web server (/etc/init.d/httpd restart).

A detailed installation documentation can be found at


We can configure pnp4nagios in three different modes, they are

Default Mode
Bulk Mode
Bulk Mode with NPCD

Among these, Default mode is less complicated and it will take less time to configure. To configure pnp4nagios in Default mode,

1. Enable processing of performance data in nagios.cfg. Please note that this directive might already exist in the config file. Default is “0�?.


2. Data processing has to be disabled in the definition of every host or service whose performance data should NOT be processed. By default it isn’t enabled for any definitions. Just make sure that the particular directive isn’t explicitly set to 1.

define service {

process_perf_data 0


3. Set enable_environment_macros to 1 in nagios.cfg

4. Additionally the command to process performance data is to be specified in nagios.cfg


5. Starting with Nagios 3.0 it may be useful to enable processing of performance data for hosts as well. Due to changed host check logic Nagios 3 now performs regularly scheduled host checks.


6. Define the following two commands from nconf

check command name – service_perfdata

check command line – /usr/bin/perl /usr/local/pnp4nagios/libexec/
check command name – host_perfdata

check command line – /usr/bin/perl /usr/local/pnp4nagios/libexec/ -d HOSTPERFDATA

7. Save the changes and run generate nagios configuration.
Read more details at

Facebook Comments