Page 1 of 1

Decimals

Posted: Mon Nov 03, 2014 9:52 am
by WillemDH
Does Nagios XI cuts the decimals to three numbers after the comma in graphs? I'm working on a plugin to calculate link utilisation etc, but I notice the perfdata is sent correctly, but Highcharts seems to only show 3 numbers after the comma. Is this normal? Can it be changed?

Re: Decimals

Posted: Mon Nov 03, 2014 12:39 pm
by sreinhardt
This should work correctly, apparently it is not though. Off the top of my head, I would guess that it's actually either an issue with the pnp template assigned to your check, or rrdtool limiting the values provided(which I don't think is the case). Could you provide an example rrd we could test against and if it would be useful outside of your env a copy of the plugin to test against?

Edit: Also does switching to old style pnp graphs instead of highcharts change this behavior at all?

Re: Decimals

Posted: Mon Nov 03, 2014 4:00 pm
by WillemDH
Hey Spenser,

I did not release this plugin yet. You can find in on my GitHub page here https://github.com/willemdh/check_ms_win_network_load
I have never changed anything in any pnp template. You might recognise some parts of the code by the way.. :) You can see there is only three decimals in the highcharts and five in the detail view.

Grtz

Willem

Re: Decimals

Posted: Mon Nov 03, 2014 5:49 pm
by abrist
The decimal is probably truncated for display reasons. You could always dump the rrd in question to see if the granularity is there:

Code: Select all

rrdtool dump </path/to/rrd>

Re: Decimals

Posted: Mon Nov 03, 2014 7:02 pm
by Box293
If you don't using the rrdtool at the command line you could use this tool I created called the Perfomance Data Tool.

http://exchange.nagios.org/directory/Ad ... ol/details

Re: Decimals

Posted: Tue Nov 04, 2014 2:37 am
by WillemDH
Troy, Already had your tool installed, but didn't used it yet to browse the rrd's yet. Very nice interface interface by the way!

So, as Andy said:
The decimal is probably truncated for display reasons.
In the rrd dump view, I can see the values with 5 decimals after the comma, so the graphs showing only three is expected behaviour?

Thanks for confirming.

Grtz

Willem

Re: Decimals

Posted: Tue Nov 04, 2014 11:26 am
by abrist
WillemDH wrote:In the rrd dump view, I can see the values with 5 decimals after the comma, so the graphs showing only three is expected behaviour?
Yes. If you need the decimal precision, open a feature request on tracker - the devs are cleaning up tracker as we speak, so it will get exposure.

Re: Decimals

Posted: Tue Nov 04, 2014 1:16 pm
by WillemDH
Thanks Andy.

Made the feature request. I'm looking forward to next update. :)

Thread can be closed.

Willem

Re: Decimals

Posted: Tue Nov 04, 2014 1:46 pm
by cmerchant
Closing thread. Next release will have a ton a fixes. But this feature request will probably not make the next release. Thanks.