Page 1 of 1

2 performance data issues

Posted: Tue Jan 14, 2014 9:33 am
by BanditBBS
This is for one of my custom scripts, so I can make any test changes desired :) I wrote a script to monitor a bunch of different data via SNMP of Cisco Telepresence equipment.

Issue #1:
All of the checks that should be graphing data, except 1, are graphing. There is one check that for some reason just will not graph

Code: Select all

[clarkj@svwdcnetmg02 libexec]$ ./check_cisco_tp_test.pl -H 10.7.252.20 -C xxxxxxx -2 -m jitter -w 90 -c 99
OK: Jitter normal! | Video1=8,Video2=8,Video3=8,Audio1=4,Audio2=4,Audio3=4
I have zero clue as to why that isn't working when all the others are formatted the exact same!

Issue #2:
When clicking on the performance graph tab, not all grpahs are shown, some show as broken images. If looking at it using graph explorer, all the data seems to be there.

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 11:03 am
by slansing
Hmm, so graph explorer is working, but PNP is giving you issues. Can you check Admin > Graphing Templates, and see if there is a template for your plugin there? Can you show the output of:

Code: Select all

 ll /usr/local/nagios/share/perfdata/"FillInHostnameHere"/

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 11:06 am
by BanditBBS
No template, do I need to create one?!?!

Output requested:

Code: Select all

[clarkj@svwdcnagios02 ~]$ ll /usr/local/nagios/share/perfdata/10.8.252.20/
total 17680
-rwxrwxr-x 1 nagios nagios 3451128 Jan 14 11:02 Anomolies.rrd
-rw-rw-rw- 1 nagios nagios    7530 Jan 14 11:02 Anomolies.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 14 11:05 Bitrate.rrd
-rw-rw-rw- 1 nagios nagios    2105 Jan 14 11:05 Bitrate.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 14 11:02 Duration_of_Current_Last_Call.rrd
-rw-rw-rw- 1 nagios nagios    2181 Jan 14 11:02 Duration_of_Current_Last_Call.xml
-rwxrwxr-x 1 nagios nagios 2301312 Jan 14 11:03 FPS.rrd
-rw-rw-rw- 1 nagios nagios    5541 Jan 14 11:03 FPS.xml
-rwxrwxr-x 1 nagios nagios  768224 Jan 14 11:01 _HOST_.rrd
-rw-rw-rw- 1 nagios nagios    4000 Jan 14 11:01 _HOST_.xml
-rw-rw-rw- 1 nagios nagios 2301312 Jan 14 11:05 Packet_Loss.rrd
-rw-rw-rw- 1 nagios nagios    5568 Jan 14 11:05 Packet_Loss.xml
-rwxrwxr-x 1 nagios nagios 3067856 Jan 13 16:42 RX_FPS.rrd
-rwxrwxr-x 1 nagios nagios    6849 Jan 13 16:42 RX_FPS.xml
-rwxrwxr-x 1 nagios nagios 1151496 Jan 14 10:27 RX_Packet_Loss.rrd
-rwxrwxr-x 1 nagios nagios    3487 Jan 14 10:27 RX_Packet_Loss.xml
-rwxrwxr-x 1 nagios nagios 3067856 Jan 13 16:40 TX_FPS.rrd
-rwxrwxr-x 1 nagios nagios    6881 Jan 13 16:40 TX_FPS.xml
-rwxrwxr-x 1 nagios nagios 1151496 Jan 14 10:28 TX_Packet_Loss.rrd
-rwxrwxr-x 1 nagios nagios    3493 Jan 14 10:28 TX_Packet_Loss.xml

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 11:33 am
by slansing
Well, since it is a custom plugin it is probably just using the default template, so you should not have to create one specifically for it. Can you hop back into the XI GUI and try to access the Performance Graphs section of your service while running a tail on the apache error log, and then share the output here?

Though I am sure you already know :):

Code: Select all

tail -f /var/log/httpd/error_log

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 11:38 am
by BanditBBS
0 errors show in the apache log. :?

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 1:30 pm
by BanditBBS
Just so you guys can test on your end to try and reproduce:

Code: Select all

[clarkj@svwdcnetmg02 libexec]$ ./check_cisco_tp_test.pl -H 10.8.252.20 -C xxxxxx -2 -m ploss -w .5 -c 1
CRITICAL: Packet Loss exists! | TXLoss1_percent=11.24%,TXLoss2_percent=2.08%,TXLoss3_percent=10.71%,RXLoss1_percent=0.00%,RXLoss2_percent=0.00%,RXLoss3_percent=0.00%
Write a quick check that just returns that line. The only one that graphs on the perf graph tab is the last one. Everything looks fine in graph explorer though. And of course, the one example in my OP doesnt graph at all....HELP! LOL

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 4:27 pm
by scottwilkerson
Your performance data points should be separated by spaces not commas
e.g.

Code: Select all

CRITICAL: Packet Loss exists! | TXLoss1_percent=11.24% TXLoss2_percent=2.08% TXLoss3_percent=10.71% RXLoss1_percent=0.00% RXLoss2_percent=0.00% RXLoss3_percent=0.00%
http://www.nagios-plugins.org/doc/guidelines.html

Re: 2 performance data issues

Posted: Tue Jan 14, 2014 5:50 pm
by BanditBBS
OMG! Scott!

1.) I'm going to repeatedly smack my toe with a hammer as punishment, especially since I read that page about 10 times!
2.) #1 only happens if you do the same to Sam for missing it too, LOL!

I'll test in a few minutes, if I don't reply in the next hour, consider this issue closed!

EDIT: Script changed and tested...working fine...god I hate myself right now! I'll update it on the exchange once I make another code change tonight/tomorrow