Hi guys,
I’m having a problem showing graphs associated with performance data. I wrote a script that’s returning passive checks with performance data output. The service check name and the performance data match, I can see the rrd databases are being updated but I cannot see the “perform extra service action” icon.
I tried to delete the rrd and xml files assiocated with the service check and restarting Nagios but no joy. Other perf data works perfectly fine.
Here is an example of the perfdata debug file:
2011-06-02 12:25:31 [24316] [2] Using Config File /usr/local/nagios/etc/pnp/process_perfdata.cfg parameters
2011-06-02 12:25:31 [24316] [1] process_perfdata.pl-0.4.14 starting in DEFAULT Mode
2011-06-02 12:25:31 [24316] [2] Datatype set to 'SERVICEPERFDATA’
2011-06-02 12:25:31 [24316] [1] Found Performance Data for Telestroke / LongestCallWaiting (‘LongestCallWaiting’=1156s;60;120;0;3600)
2011-06-02 12:25:31 [24316] [2] No Custom Template found for passive (/usr/local/nagios/etc/pnp//check_commands/passive.cfg)
2011-06-02 12:25:31 [24316] [2] RRD Datatype is GAUGE
2011-06-02 12:25:31 [24316] [2] Template is passive.php
2011-06-02 12:25:31 [24316] [2] data2rrd called
2011-06-02 12:25:31 [24316] [2] RRDs::update /usr/local/nagios/share/perfdata/Telestroke/LongestCallWaiting.rrd 1307013931:1156
2011-06-02 12:25:31 [24316] [2] /usr/local/nagios/share/perfdata/Telestroke/LongestCallWaiting.rrd updated
2011-06-02 12:25:31 [24316] [1] PNP exiting (runtime 0.002117s) …
When I check the .rrd files they are being updated 2-3 times per minute.
Both hostname and service name match exactly the values passed on to the rrd tool (Telestroke - LongestCallWaiting)
Here is the entry in the nagios.log file:
[1307013921] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;Telestroke;LongestCallWaiting;2; Longest call waiting:1156 | ‘LongestCallWaiting’=1156s;60;120;0;3600
[1307013931] PASSIVE SERVICE CHECK: Telestroke;LongestCallWaiting;2;Longest call waiting:1156
I cannot figure out why there is no association between the service check and the perfdata database …
Any help would be much appreciated.
Cheers,