NagiosGraph Reporting Incorrect Units - Mb instead of Gb

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
pshankland
Posts: 15
Joined: Thu Mar 01, 2012 7:21 am

NagiosGraph Reporting Incorrect Units - Mb instead of Gb

Post by pshankland »

Hi, I am using Nagios Core 3.5.0 and NagiosGraph 1.4.4. I am also using the 'Check NetApp NG' plugin to retrieve volume information.

When I run the check_netapp_ng.pl script from the CLI I get the correct values, for example:

Code: Select all

[root@nagios libexec]# perl check_netapp_ng.pl -H 10.10.10.10 -C public -T DISKUSED --vol /vol/Departments/
OK: DISKUSED 60% | /vol/Departments/=249850732k
The above equates to free space of 238.28Gb.

However, now that I have NagiosGraph installed it looks to change the units from Gb to Mb and also be slightly different in the values:

Image

Any ideas?

Thanks.
Pete.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagiosGraph Reporting Incorrect Units - Mb instead of Gb

Post by abrist »

pshankland wrote:238.28Gb.
pshankland wrote:249850732k
I would assume this is an issue of base 10 vs base 2 systems (1000MB vs 1024MB) and a bit of rounding thrown in for fun. And issues of graph labeling. Can we see the XML and templates for the broken graph?
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.
Locked