Page 1 of 1

Check_mem not showing Critical

Posted: Tue Oct 30, 2012 11:43 am
by BanditBBS
I do a test of the check_mem command and it reports back Warning, when in fact it should be Critical. This is happening qith about 6 of the 12 configured linux servers. The other servers have plenty of memory available and show OK as they should.

Code: Select all

Testing check from command line...

COMMAND: /usr/local/nagios/libexec/check_nrpe -H dtc-order-mgr.aeo.ae.com -t 30 -c check_mem -a '-w 20 -c 10'
OUTPUT: WARNING - 107 / 3953 MB (2%) Free Memory, Used: 3846 MB, Shared: 0 MB, Buffers: 212 MB, Cached: 1071 MB | total=3953MB free=107MB used=3846MB shared=0 buffers=212MB cached=1071MB

Re: Check_mem not showing Critical

Posted: Tue Oct 30, 2012 1:20 pm
by nscott
We took a look at the script and thing we might have spotted something that would inhibit a CRITICAL status.

Can you download the attached plugin, rename it to

custom_check_mem

And then place it in your /usr/local/nagios/libexec directory on the client machine(s) and then make sure its executable by Nagios/NRPE

chmod 775 <path to check_mem>
chown nagios.nagcmd <path to check_mem>

Re: Check_mem not showing Critical

Posted: Tue Oct 30, 2012 1:32 pm
by BanditBBS
That fixed it. Currently moving it to all the servers.