Check_mem not showing Critical

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Check_mem not showing Critical

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Check_mem not showing Critical

Post 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>
You do not have the required permissions to view the files attached to this post.
Nicholas Scott
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Check_mem not showing Critical

Post by BanditBBS »

That fixed it. Currently moving it to all the servers.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked