Graphing large numbers
Posted: Wed Mar 28, 2018 5:12 pm
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
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