Check_Memory in amount free

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
iaburky02
Posts: 1
Joined: Sat Apr 11, 2020 12:03 pm

Check_Memory in amount free

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Check_Memory in amount free

Post 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'
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked