Page 1 of 1

Check_Memory in amount free

Posted: Sat Apr 11, 2020 12:08 pm
by iaburky02
I am monitoring a couple Windows MSSQL servers and by design I want them to use all but 8 GB of memory. The total amout of memory in these servers is 1TB so 8 GB is a very small percentage so warning on % free doesn't work for me.

I have tried
check_nrpe -H 10.1.2.41 -p 5666 -c check_memory -a MaxWarn<4G MaxCrit<2G type=physical
and
check_nrpe -H 10.1.2.41 -p 5666 -c check_memory -a MaxWarn=free<4G MaxCrit=free<2G type=physical

None of which work. Is there another way for nagios to report back on size available and not percentage?

Thanks,

Chris

Re: Check_Memory in amount free

Posted: Mon Apr 13, 2020 3:23 pm
by cdienger
Examples can be found at https://support.nagios.com/kb/article/m ... s-774.html and https://docs.nsclient.org/reference/win ... eck_memory. Try changing your command to look like:

Code: Select all

./check_nrpe -H 10.1.2.41 -p 5666 -c check_memory -a 'warn=free<4G' 'crit=free<2G'