Page 1 of 1

Windows memory usage only physical

Posted: Wed Feb 03, 2016 12:55 pm
by jonathan.cruz
Hi everyone,

I am try monitoring a windows memory usage with the check_nt command.

I am using the below command

/usr/local/nagios/libexec/check_nt -H hostname -s "" -p 12489 -v MEMUSE -w 80 -c 90 ShowAll type=physical

But i recive a reponse with full memory Physical+Pagefile.

OUTPUT: Memory usage: total:12285.86 MB - used: 8473.68 MB (69%) - free: 3812.19 MB (31%) | 'Memory usage'=8473.68MB;9828.69;11057.28;0.00;12285.86

Re: Windows memory usage only physical

Posted: Wed Feb 03, 2016 3:29 pm
by rkennedy
This is expected - I don't think check_nt has an option to change how the MEMUSE functions. You may be able to use check_nrpe though, and alter the alias it uses. See this post - https://support.nagios.com/forum/viewto ... 091#p23800

Can you post your NSClient++ configuration?

Re: Windows memory usage only physical

Posted: Thu Feb 04, 2016 7:11 am
by jonathan.cruz
Follow my nsc config

Re: Windows memory usage only physical

Posted: Thu Feb 04, 2016 11:43 am
by rkennedy
As I stated, this will not work with check_nt. After reviewing your config, you will need to enable NRPE to accomplish this. You will also need to change this line to make it physical memory only.

Change this -

Code: Select all

alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page
to -

Code: Select all

alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical