NRPE: Command 'check_mem" not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Please run the commands exactly as shown, including the closing bracket.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post 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
bolson

Re: NRPE: Command 'check_mem" not defined

Post 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.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post 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
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Please post the output of

Code: Select all

ls -l /usr/lib64/nagios/plugins/check_mem
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

-rwxr-xr-x. 1 nagios nagios 15154 Mar 9 14:32 /usr/lib64/nagios/plugins/check_mem
bolson

Re: NRPE: Command 'check_mem" not defined

Post 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.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

I will recommend doing so to my customer.
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Thank you. Sorry I couldn't be of more help. Yours is a very bizarre issue. May I close the topic?
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post 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
Locked