Page 1 of 1

Query regarding CheckMEM performance data

Posted: Thu Apr 18, 2019 12:47 pm
by bsivavani
Hi,

We are using CheckMEM to monitor Physical memory on Windows servers.

Below is command which we are using

COMMAND: /usr/local/nagios/libexec/check_nrpe -H XXXX -t 30 -c CheckMEM -a ShowAll type=physical MaxWarn=80% MaxCrit=90%
OUTPUT: physical: Total: 7.707GB - Used: 2.625GB (34%) - Free: 5.082GB (65%)|'physical'=2.62491GB;6.1653;6.93596;0;7.70663 'physical %'=34%;80;90;0;100

We would like to display performance data which is on GB but not the data in % in Capacity Planning Report.

Is it possible to remove performance data which is displaying in % to avoid extra report in Capacity Planning Report?

Kindly advice.

Re: Query regarding CheckMEM performance data

Posted: Thu Apr 18, 2019 3:49 pm
by tgriep
If you use the check_memory style command and add this option to it

Code: Select all

"perf-config=%(ignored:true)"
Like the example below

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H xxx.xxx.xxx.xxx -t 30 -c check_memory -a type=physical "perf-config=%(ignored:true)"
It will filter out the percentage output from the performance data.

Code: Select all

WARNING: physical = 25.708GB|'physical'=25.70807GB;25.5259;28.71663;0;31.90737
Try that to see if it works for you.

Re: Query regarding CheckMEM performance data

Posted: Tue Apr 23, 2019 6:34 am
by bsivavani
We would like to use CheckMEM command as shown below

/usr/local/nagios/libexec/check_nrpe -H XXXX -t 30 -c CheckMEM -a ShowAll type=physical MaxWarn=80% MaxCrit=90%

With this option is it possible to exclude % data in performance output ?

Re: Query regarding CheckMEM performance data

Posted: Tue Apr 23, 2019 10:58 am
by lmiltchev
It seems like the "perf-config" option is not available in checkmem (legacy version of check_mem). I don't see any option with this particular plugin that would help you accomplish your goal - see the usage here:

https://docs.nsclient.org/reference/win ... /#checkmem

You may need to change your command to check_memory as tgriep suggested.