Performance Graph not polling properly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Performance Graph not polling properly

Post 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,
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graph not polling properly

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Performance Graph not polling properly

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graph not polling properly

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Performance Graph not polling properly

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graph not polling properly

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Performance Graph not polling properly

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graph not polling properly

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Re: Performance Graph not polling properly

Post 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
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graph not polling properly

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked