check_nrpe for memory - wrong ?
Posted: Tue Dec 09, 2014 9:41 am
Hi,
Lately I had an alert regarding a high memory on one of my Linux servers, I started looking for the cause but didn't find any.
I was using the check_nrpe plugin for Nagios XI with the "check_mem" argument.
./check_nrpe -H my_host -t 30 -c check_mem -a '-w 5 -c 3'
it turns out to be a wrong check as it takes the first line free memory output (1241) instead of the second (2296)
total used free shared buffers cached
Mem: 3034 1793 1241 0 194 861
-/+ buffers/cache: 737 2296
Swap: 1023 38 985
So now I'm using the check_mem plugin which is doing it alright - "http://exchange.nagios.org/directory/Pl ... em/details"
just wanted to let you know as I guess a lot of people are using it. please correct me if I got it all wrong as I still need to do some modifications in order to implement the new plugin for my other Linx's.
it's based on:
http://stackoverflow.com/questions/1761 ... p-does-not
http://www.linuxatemyram.com/
Thanks
Lately I had an alert regarding a high memory on one of my Linux servers, I started looking for the cause but didn't find any.
I was using the check_nrpe plugin for Nagios XI with the "check_mem" argument.
./check_nrpe -H my_host -t 30 -c check_mem -a '-w 5 -c 3'
it turns out to be a wrong check as it takes the first line free memory output (1241) instead of the second (2296)
total used free shared buffers cached
Mem: 3034 1793 1241 0 194 861
-/+ buffers/cache: 737 2296
Swap: 1023 38 985
So now I'm using the check_mem plugin which is doing it alright - "http://exchange.nagios.org/directory/Pl ... em/details"
just wanted to let you know as I guess a lot of people are using it. please correct me if I got it all wrong as I still need to do some modifications in order to implement the new plugin for my other Linx's.
it's based on:
http://stackoverflow.com/questions/1761 ... p-does-not
http://www.linuxatemyram.com/
Thanks