pnp4nagios offline status not work
Posted: Thu Sep 05, 2013 2:03 pm
Hi to all, I'm going crazy to configure pnp4nagio (last version) under CentOS.
Even if Nagio working fine and register all Ping Packets Lost, pnp4nagio show in the graphics timeline always Uptime status
This is the Nagio Right status This is the pnp4nagios Wrong status As you can see in the second img, there are no critical status nor discontinued interval in the offline host status time
these are my configuration:
/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/objects
Please help me to track downtime in the chart, thanks in advance.
Even if Nagio working fine and register all Ping Packets Lost, pnp4nagio show in the graphics timeline always Uptime status
This is the Nagio Right status This is the pnp4nagios Wrong status As you can see in the second img, there are no critical status nor discontinued interval in the offline host status time
these are my configuration:
/usr/local/nagios/etc/nagios.cfg
Code: Select all
process_performance_data=1
service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file
host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file
Code: Select all
define host {
name host-pnp
action_url /pnp4nagios/index.php/graph?host=$HOSTNAME$&srv=_HOST_
register 0
}
define command{
command_name process-host-perfdata-file
command_line /usr/local/pnp4nagios/libexec/process_perfdata.pl --bulk=/usr/local/pnp4nagios/var/host-perfdata
}
define host{
use generic-server
host_name clientt1
alias clientt1
address x.y.z.k
}
define host{
name generic-host
use host-pnp
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
notification_period 24x7
register 0
}
define host{
name generic-server
use generic-host
check_period 24x7
check_interval 5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,u,r
register 0
}
define command{
command_name check-host-alive
command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}