Page 1 of 1

Discrepancy in graph values

Posted: Sat Apr 16, 2016 11:36 am
by derekb
Hi there,
I was checking some performance graphs earlier today and noticed something that appeared odd to me...

I'm graphing number of simultaneous calls on an Asterisk server.

Please check out the first graph of 7-day activity:
[attachment=1]pbx1-asterisk-number_of_current_calls1.png[/attachment]
-Notice the MAX value of 63.3

Now lets do a 30-day activity check:
[attachment=0]pbx1-asterisk-number_of_current_calls2.png[/attachment]
-Notice the MAX value of 55.03.

In my mind, the MAX value should not ever change based on the number of days you're looking at. If i used 100 calls on April 15, and never hit that number again, my MAX value over any period of time should always be 100.

Now, I'm not sure if this is something in XI calculating the perf data in an odd way, or if this would be something with the coding of the plugin being used.

Where's the best place to start looking?


Nagios XI Installation Profile
System:
Nagios XI Version : 5.2.6
CentOS release 6.7 (Final)
Gnome is not installed
Apache Information
PHP Version: 5.3.3

Re: Discrepancy in graph values

Posted: Sat Apr 16, 2016 1:57 pm
by tmcdonald
Plugins have support for outputting min and max values:

https://nagios-plugins.org/doc/guidelines.html#AEN200

But I honestly would have to check in with the developers to see if we consider those in the graphs. It's the weekend so I'll make sure to ask when I get back in on Monday.

Re: Discrepancy in graph values

Posted: Mon Apr 18, 2016 1:23 pm
by tmcdonald
Had some time to look into this, and it appears the min/max is not respected in the Highcharts (newer-style) graphs. I did some experimentation on my own with a service that outputs Okay|value=50;60;70;20;80 (min of 20, max of 80) and it graphed with a max of 100. So either my syntax is off (can't make it any simpler) or our newer graphs do not respect those settings, which one of the devs seem to agree with.

This will likely need to go in as a feature request, I'll update this post once it has been made.

Re: Discrepancy in graph values

Posted: Wed Apr 27, 2016 3:03 pm
by bwallace
Filed feature request for this:
TASK ID 8396 created - Nagios XI Feature Request: Update our newer graphs (Highcharts) to respect min/max values

OP, did you have any other questions on this topic, or may we close this thread now?