Graphing large numbers

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
steliopappas
Posts: 13
Joined: Sun Mar 18, 2018 7:55 pm

Graphing large numbers

Post by steliopappas »

Hi everyone, I have experience in Nagios Core, but I'm new NagiosXI and check_wmi_plus.pl

When I run checkmem in check_wmi_plus.pl, it returns a very large number (bytes) in the performance data. Is there a way to make the performance data a little more human readable eg GBytes? The number currently has so many digits that it does not fit on the graph.

Here is my check with fake host and credentials:
/usr/local/nagios/libexec/check_wmi_plus.pl -H myHost -u myDomain/myUser-p myPassword-m checkmem

Here is my output data from a real host:
OK - Physical Memory: Total: 31.879GB - Used: 3.995GB (13%) - Free: 27.884GB (87%)|'Physical Memory Used'=4289769472Bytes; 'Physical Memory Utilisation'=13%;

I'm figuring that check_wmi_plus must have a way of specifying the output format, or perhaps there is a way to configure the appearance in some graph settings somewhere.

Ideally, I'd like to see the red number listed above as approximately 4GB or 4000MB.

Stel
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Graphing large numbers

Post by scottwilkerson »

I've never come across this or noticed this before, but it looks to be an oversight in the plugin design, not only does it not specify a valid UOM per the guidelines
https://nagios-plugins.org/doc/guidelines.html#AEN200
it also does not convert them into a higher denomination like you desire.

I am going to file a bug report and see if we can get this adjusted for a future release.

actually as I type this I see it is on the radar for version 1.64 of the plugin
http://www.edcint.co.nz/checkwmiplus/?q=Change%20Log
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked