File pnp4nagios-pnp4nagios.cfg of Package pnp4nagios

# Default mode
define command {
       command_name    process-service-perfdata
       command_line    $USER1$/process_perfdata.pl
}

define command {
       command_name    process-host-perfdata
       command_line    $USER1$/process_perfdata.pl -d HOSTPERFDATA
}

# Bulk mode
define command {
        command_name    perfdata-service-pnp-bulk
        command_line    $USER1$/process_perfdata.pl --bulk=/var/spool/pnp4nagios/service-perfdata
# If you are using npcd to process perfdata, disable the line above
# and enable the command_line line below. 
#
# NPCD monitors the spool directory and passes the file names to
# process_perfdata.pl. This way processing of performance data is completely
# decoupled from nagios. 
#        command_line /bin/mv /var/spool/pnp4nagios/service-perfdata /var/spool/pnp4nagios/service-perfdata.$TIMET$
}

define command {
        command_name    perfdata-host-pnp-bulk
        command_line    $USER1$/process_perfdata.pl --bulk=/var/spool/pnp4nagios/host-perfdata
# If you are using npcd to process perfdata, disable the line above
# and enable the command_line line below. 
#
# NPCD monitors the spool directory and passes the file names to
# process_perfdata.pl. This way processing of performance data is completely
# decoupled from nagios. 
#        command_line /bin/mv /var/spool/pnp4nagios/host-perfdata /var/spool/pnp4nagios/host-perfdata.$TIMET$
}