Page 1 of 1

check_nt_memuse

Posted: Fri May 24, 2019 9:59 am
by emartine
I have been using this check for windows 2012 memory usage:
/usr/local/nagios/libexec/check_nt -H $HOSTNAME -p 1248 -v MEMUSE -w 85 -c 95

The Server is a VM and has 10G of memory allocated to it.
It originally showed a total of 11839.04 MB when the check_nt check above was run.

But after someone installed wireshark and accidentally left it running on a production server for 2 days... the total amount of memory reported by nagios became 22592.91 MB which is taking into account the page file. This made the threshold more than the expected usage making Nagios not notify on the physical amount of memory used. The server performance affected the application and now I have to go and explain why nagios is now showing 22592.91 MB while the other 3 identical servers that were built from the same image with the same amount of mem only show 11839.04 MB. I understand it is taking into account the page file but why would nagios start reporting total mem + page file?

Any help on explaining this would be greatly appreciated.

Re: check_nt_memuse

Posted: Fri May 24, 2019 1:44 pm
by npolovenko
Hello, @emartine. Would you be able to use the check_nrpe command instead?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H $HOSTNAME -c check_memory  -a 'warn=used>85%' 'crit=used>95%'
As far as I know, check_nt will include the page file by default and there is no way to exclude it. NRPE based check has an option of just showing the physical memory.