check_nrpe for memory - wrong ?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
oz123
Posts: 42
Joined: Thu Jun 09, 2011 10:21 am

check_nrpe for memory - wrong ?

Post by oz123 »

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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_nrpe for memory - wrong ?

Post by sreinhardt »

What plugin were you initially using instead, and what operating system/distro are you checking this on? Also if this is check_mem from nagios-plugins, what version are you running (./check_mem -h)
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked