I'm seeing some strangeness with the Gauge Dashlets in cases where the perfdata has lower boundaries.
For example, a UPS check includes battery_capacity, load, battemp, and remaining_minutes perfdata.
The battery_capacity and remaining_minutes use lower boundaries and the gauge value and displayed
thresholds seem to be fubar. Perhaps I misread the plugins perfdata guidelines, but everything else seems
to be working as it should (alerts, notifications, etc...)
Note: I added battery_capacity after the fact, which confused rrd to no end so I had to delete the .rrd file for the check
to get the regular graphs to display correctly, but I don't know much about the gauges and I didn't notice if they were
all working correctly before the addition.
<blah><blah><blah>|'battery_capacity'=100%;65:;35:;0; 'load'=29%;70;80;; 'battemp'=34C;36;40;; 'remaining_minutes'=59min;;5:;0;
Gauge Dashlet and perfdata thresholds
Gauge Dashlet and perfdata thresholds
You do not have the required permissions to view the files attached to this post.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Gauge Dashlet and perfdata thresholds
I believe, but will have to check to be sure, that the gauges use the plugins warning and critical limits for what 100% is, if that is not available I would expect it to use the highest value found that is available. Are these checks that should return a higher than threshold value to be an OK state? Much like when checking free disk space, where you might warn if less than 15% is free but 30% is just fine?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Gauge Dashlet and perfdata thresholds
Yes, in the case of battery_capacity, it should range from 0-100% (not absolutely sure it *can't'* go over 100%) and we want warnings at 35-65% and critical at 0-35%. I didn't put the max scale in the check since the normal graphs seem to autorange. I do notice that the warning/critical thresholds are not marked on the regular graphs in the case of lower boundaries either. Neither case is particularly critical to us, I just wanted to point it out in case it was an easy fix.
Last edited by jwelch on Mon Jul 28, 2014 2:48 pm, edited 1 time in total.
Re: Gauge Dashlet and perfdata thresholds
Changing the perfdata from:
'battery_capacity'=100%;65:;35:;0;
to:
'battery_capacity'=100%;65:;35:;0;100
*does* cause the gauge to show the correct scale (0-100), but the thresholds are still inverted. It thinks anything above 35% is critical.
(not properly parsing the ':' in the threshold definition...assuming I'm using it correctly)
In the case of minutes_remaining, there is no fixed upper limit, it varies with the UPS load (typically from 40-120min), so forcing a range isn't a good option.
'battery_capacity'=100%;65:;35:;0;
to:
'battery_capacity'=100%;65:;35:;0;100
*does* cause the gauge to show the correct scale (0-100), but the thresholds are still inverted. It thinks anything above 35% is critical.
(not properly parsing the ':' in the threshold definition...assuming I'm using it correctly)
In the case of minutes_remaining, there is no fixed upper limit, it varies with the UPS load (typically from 40-120min), so forcing a range isn't a good option.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Gauge Dashlet and perfdata thresholds
OK I thought that would be the case, refering to the inversion of warn\crit thresholds within it. I will open a bug report and we will see what can be done.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: Gauge Dashlet and perfdata thresholds
Devs are still working on this, updates to come.
Former Nagios employee
Re: Gauge Dashlet and perfdata thresholds
I have added the ability to specify ranges in the gauges dashlet which should fix the issue you are having. I've attached version 1.1.0 of the dashlet which will be in the next version of Nagios XI. It hasn't been fully tested yet but if there are issues please don't hesitate to let me know!
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Gauge Dashlet and perfdata thresholds
I installed the new gauges.zip and for the UPS perfdata I have, it works very well.
Thanks for the chance to test this fix!
<Jim>
Thanks for the chance to test this fix!
<Jim>
Re: Gauge Dashlet and perfdata thresholds
Glad that fix worked for you. That fix will be incorporated into the next release. We'll go ahead and close the thread. Thanks.