Query regarding CheckMEM performance data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Query regarding CheckMEM performance data

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Query regarding CheckMEM performance data

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
bsivavani
Posts: 339
Joined: Tue Oct 06, 2015 9:17 am

Re: Query regarding CheckMEM performance data

Post 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 ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Query regarding CheckMEM performance data

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked