2 performance data issues

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

2 performance data issues

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: 2 performance data issues

Post 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"/
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: 2 performance data issues

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: 2 performance data issues

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: 2 performance data issues

Post by BanditBBS »

0 errors show in the apache log. :?
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: 2 performance data issues

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: 2 performance data issues

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: 2 performance data issues

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked