Page 3 of 4

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 1:43 pm
by bolson
Please run the commands exactly as shown, including the closing bracket.

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 1:53 pm
by taandrews
This command find a few things but of what you are concerned about, see below:

In /etc

command[check_mem_foo]=/usr/lib64/nagios/plugins/check_mem -f -w 12 -c 10
command[check_mem]=/usr/lib64/nagios/plugins/check_mem -f -w 12 -c 10

in cd ../usr

lib64/nagios/plugins/check_mem.pl

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 2:02 pm
by bolson
Please tell me the name of the file that the line

command[check_mem]=/usr/lib64/nagios/plugins/check_mem -f -w 12 -c 10

appears in. Also, look for a directive "include_dir" in your nrpe.cfg file and tell me what that entire line says.

Thank you.

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 2:10 pm
by taandrews
The output for both
command[check_mem_foo]=/usr/lib64/nagios/plugins/check_mem -f -w 12 -c 10
command[check_mem]=/usr/lib64/nagios/plugins/check_mem -f -w 12 -c 10
was found in /etc/nagios/nrpe.cfg

There is no "include_dir" in the nrpe.cfg file

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 2:23 pm
by bolson
Please post the output of

Code: Select all

ls -l /usr/lib64/nagios/plugins/check_mem

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 2:38 pm
by taandrews
-rwxr-xr-x. 1 nagios nagios 15154 Mar 9 14:32 /usr/lib64/nagios/plugins/check_mem

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 4:14 pm
by bolson
At this point, I think re-installing nrpe on the affected hosts will probably be much less time consuming than continuing to try an troubleshoot your issue. Particularly if you are unable to send a profile or tar up your directory stricture.

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 4:16 pm
by taandrews
I will recommend doing so to my customer.

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 4:18 pm
by bolson
Thank you. Sorry I couldn't be of more help. Yours is a very bizarre issue. May I close the topic?

Re: NRPE: Command 'check_mem" not defined

Posted: Tue Jul 25, 2017 4:20 pm
by taandrews
You have 2 guys working on this who are well versed in Nagios and couldnt figure this out. We were trying not to reinstall but it seems that is the only choice. Thank you for you help. Yes please close this out.

Thx