NRPE: Command 'check_mem" not defined

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

Per my customer, no such file on his server
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Hello Taandrews. Which file(s) does your customer indicate that they don't have?
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

There is no common.cfg on his box.
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

I perhaps might have asked this sooner... Do other check_nrpe commands run successfully on the XI server against this client?
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

Yes. My customer has about 10 servers with about 10 things being monitored on each. 4/10 have the check_mem issue only. All other checks work on these servers. Its very strange.
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Thanks for the info... Based on the fact that check_nrpe!check_mem works correctly for 6 of your 10 clients, we can safely conclude that the issue is on the remote machines. The challenge... and where we will ultimately solve the issue, is in determining what differences exist between the 6 that are working and the 4 that aren't. Are they all running the same OS? Was NRPE installed by the same method on all 10? Is nrpe running as a daemon or from the xinetd service? Once these questions are answered I'll be able to come up with some additional troubleshooting steps.
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

I have confirmed the following:
1. All are on CentOS 6
2. All have the same version of NRPE installed the same way and used the nrpe service not xinetd
3. All are patched to the same level
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

Without having access to your profile, it's difficult to troubleshoot this issue. Can you tell me the name of the file where the command definition for check_mem is on one of the remote hosts that isn't working? Also, the exact syntax of the command definition. It should be "command[check_mem]=/usr/local/nagios/libexec/custom_check_mem -n $ARG1$"
taandrews
Posts: 93
Joined: Thu Mar 10, 2016 1:55 pm

Re: NRPE: Command 'check_mem" not defined

Post by taandrews »

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

/etc/nagios/nrpe/cfg

This true for all 10 machines
bolson

Re: NRPE: Command 'check_mem" not defined

Post by bolson »

I'm not sure you're looking at the correct command definition. This is the definition for "check_mem_foo". We're looking for a definition for "check_mem"

Run the following on an affected remote host:

Code: Select all

cd /etc
grep -nr 'check_mem]'
cd ../usr
grep -nr 'check_mem]'
And post the results
Locked