Decimals
Decimals
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
https://outsideit.net
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Decimals
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?
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.
Re: Decimals
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
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..
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
https://outsideit.net
Re: Decimals
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.
"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.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Decimals
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
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.
Re: Decimals
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:
Thanks for confirming.
Grtz
Willem
So, as Andy said:
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?The decimal is probably truncated for display reasons.
Thanks for confirming.
Grtz
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Decimals
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.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?
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.
"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.
Re: Decimals
Thanks Andy.
Made the feature request. I'm looking forward to next update.
Thread can be closed.
Willem
Made the feature request. I'm looking forward to next update.
Thread can be closed.
Willem
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Decimals
Closing thread. Next release will have a ton a fixes. But this feature request will probably not make the next release. Thanks.