Page 1 of 1

Performance Graph not polling properly

Posted: Tue Nov 19, 2019 1:30 am
by mejokj
Hi Team,

We have created one custom plugin for channel bandwidth and for few days everything looks. But from last week onwards the performance graph is not showing any data (Getting values but not graph ) and when I removed rrd file the performance graph again start polling. It is happening intermittently . The custom plugin generate more than 6 performance data in a single graph. Kindly suggest us on this issue.

I have attached the custom script and graph screenshot.

Thanks,

Re: Performance Graph not polling properly

Posted: Tue Nov 19, 2019 8:35 am
by scottwilkerson
Is there a possibility that this script will return different quantity of performance data when it is run at different times?

I ask because the way the RRD file work, they require that the number of performace metrics never change, and if they do, they will stop updating. This is because RRD files are a fixed size on creation depending on how many metrics are being recorded.

Re: Performance Graph not polling properly

Posted: Wed Nov 20, 2019 3:18 am
by mejokj
Hello,

The number of performance data is always fixed. It's not changing according to the time. In the previous post, I have attached the script, you can verify it.
The problem is the customer is losing historical data every time delete rrd file.
Is there any limit in performance data for a single plugin?

Re: Performance Graph not polling properly

Posted: Wed Nov 20, 2019 1:01 pm
by scottwilkerson
mejokj wrote:Is there any limit in performance data for a single plugin?
No there isn't.

Can you show the performance data show in the advanced tab of the Service Detail page for this service?

Also, you will want to make sure it conforms to this format
https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: Performance Graph not polling properly

Posted: Thu Nov 21, 2019 5:50 am
by mejokj
Hello,

Below is my plugin output. Also, I have attached the performance graph.

Seems The format is the same as you mentioned in the link


[[email protected] ~]$ /usr/local/nagios/libexec/check_ASIPort_Bandwidth.sh 10.0.01 0 testASI

IFILM ARABIC=2.94182Mbps,ETIHAD TV=1.98227Mbps,AL THAQALAYN TV=2.40038Mbps,HodHod TV=1.98227Mbps,Thaqalayn TV Test=2.40038Mbps,IMAM ALI TV=4.02621Mbps,ALBAEENAH IRAQ=1.9913Mbps,AL ESHRAQ TV=2.50266Mbps,DUA CHANNEL=1.36563Mbps,NABA TV=2.40038Mbps,AL QAMAR=2.91174Mbps,AL ALAM SYRIA TV=2.40189Mbps,AL SAHAT=2.39888Mbps,IMAM ALI RADIO=0.139872Mbps,PRESS TV=6.36192Mbps,ALNAEEM TV=3.01251Mbps,AL AMAL=0.138368Mbps | IFILM ARABIC=2.94182Mbps,ETIHAD TV=1.98227Mbps,AL THAQALAYN TV=2.40038Mbps,HodHod TV=1.98227Mbps,Thaqalayn TV Test=2.40038Mbps,IMAM ALI TV=4.02621Mbps,ALBAEENAH IRAQ=1.9913Mbps,AL ESHRAQ TV=2.50266Mbps,DUA CHANNEL=1.36563Mbps,NABA TV=2.40038Mbps,AL QAMAR=2.91174Mbps,AL ALAM SYRIA TV=2.40189Mbps,AL SAHAT=2.39888Mbps,IMAM ALI RADIO=0.139872Mbps,PRESS TV=6.36192Mbps,ALNAEEM TV=3.01251Mbps,AL AMAL=0.138368Mbps

Re: Performance Graph not polling properly

Posted: Thu Nov 21, 2019 8:18 am
by scottwilkerson
Ok, your performance data after the | is not formatted properly

Code: Select all

| IFILM ARABIC=2.94182Mbps,ETIHAD TV=1.98227Mbps,AL THAQALAYN TV=2.40038Mbps,HodHod TV=1.98227Mbps,Thaqalayn TV Test=2.40038Mbps,IMAM ALI TV=4.02621Mbps,ALBAEENAH IRAQ=1.9913Mbps,AL ESHRAQ TV=2.50266Mbps,DUA CHANNEL=1.36563Mbps,NABA TV=2.40038Mbps,AL QAMAR=2.91174Mbps,AL ALAM SYRIA TV=2.40189Mbps,AL SAHAT=2.39888Mbps,IMAM ALI RADIO=0.139872Mbps,PRESS TV=6.36192Mbps,ALNAEEM TV=3.01251Mbps,AL AMAL=0.138368Mbps
Per the guideline here the labels should have single quotes around them, and also you have several data points that are seperated by commas not spaces like they should be, properly formatted it would look like this

Code: Select all

|'IFILM ARABIC'=2.94182Mbps 'ETIHAD TV'=1.98227Mbps 'AL THAQALAYN TV'=2.40038Mbps 'HodHod TV'=1.98227Mbps 'Thaqalayn TV Test'=2.40038Mbps 'IMAM ALI TV'=4.02621Mbps 'ALBAEENAH IRAQ'=1.9913Mbps 'AL ESHRAQ TV'=2.50266Mbps 'DUA CHANNEL'=1.36563Mbps 'NABA TV'=2.40038Mbps 'AL QAMAR'=2.91174Mbps 'AL ALAM SYRIA TV'=2.40189Mbps 'AL SAHAT'=2.39888Mbps 'IMAM ALI RADIO'=0.139872Mbps 'PRESS TV'=6.36192Mbps 'ALNAEEM TV'=3.01251Mbps,'AL AMAL'=0.138368Mbps
https://nagios-plugins.org/doc/guidelines.html#AEN200

Re: Performance Graph not polling properly

Posted: Wed Dec 18, 2019 4:00 am
by mejokj
Hi Team,

We have changed the script as per the suggestion below. Will monitor the performance graph for sometime and let you the updates.

Thanks

Re: Performance Graph not polling properly

Posted: Wed Dec 18, 2019 7:20 am
by scottwilkerson
mejokj wrote:Hi Team,

We have changed the script as per the suggestion below. Will monitor the performance graph for sometime and let you the updates.

Thanks
Sounds good

Re: Performance Graph not polling properly

Posted: Mon Dec 23, 2019 2:10 am
by mejokj
Hi,

Still the issue is persisting as we made changes in script as well.

We could see that rrd files are not updating as xml. Please see below the dates in which both files updated.

[root@nagios LDN-TNS546-20]# ls -l ASI__4_555_Channel_Bandwidth.rrd
-rw-rw-r-- 1 nagios nagios 8816936 Dec 22 13:14 ASI__4_555_Channel_Bandwidth.rrd

[root@nagios LDN-TNS546-20]# ls -l ASI__4_555_Channel_Bandwidth.xml
-rw-rw-r-- 1 nagios nagios 19612 Dec 23 10:00 ASI__4_555_Channel_Bandwidth.xml
[root@nagios LDN-TNS546-20]#

As mentioned earlier every time we need to delete the rrd file to fix the issue.

kindly check and help us to fix the issue

Attached screenshot for reference.

Thanks

Re: Performance Graph not polling properly

Posted: Mon Dec 23, 2019 7:56 am
by scottwilkerson
Are you positive the number of datasources isn't changing? Can you count them in the XML and compare to the graph when it isn't updating?