Decimals

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Decimals

Post 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?
Nagios XI 5.8.1
https://outsideit.net
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Decimals

Post 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?
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.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Decimals

Post 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
You do not have the required permissions to view the files attached to this post.
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Decimals

Post 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>
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Decimals

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Decimals

Post 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
Nagios XI 5.8.1
https://outsideit.net
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Decimals

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Decimals

Post by WillemDH »

Thanks Andy.

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

Thread can be closed.

Willem
Nagios XI 5.8.1
https://outsideit.net
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Decimals

Post by cmerchant »

Closing thread. Next release will have a ton a fixes. But this feature request will probably not make the next release. Thanks.
Locked