Page 1 of 1

memory check

Posted: Thu Mar 10, 2011 5:25 pm
by sappjt
I have been trying to check the memory on a redhat server with the nrpe agent. There wasn't a plugin so I grabbed the custom_check_mem script from the centos machine that I have, and copied it to the server. It will do the check, but when the memory is ok it gives a warning. When I switch the -gt -lt on the warnings in the script my nagios server says its ok. It won't pull the percentage into nagios, but it does give me the information. When I run the script locally it does everything correct. Do you know what could be causing the problem or if there is a better check to use? Thanks.

Re: memory check

Posted: Thu Mar 10, 2011 10:07 pm
by tonyyarusso
I honestly have no idea what that particular plugin does. Personally I prefer the one I've attached here. To troubleshoot either one you should show both the command definition you're using on the Nagios server and in the NRPE configuration, along with the output.