NRPE: Command 'check_mem" not defined
Re: NRPE: Command 'check_mem" not defined
Per my customer, no such file on his server
-
bolson
Re: NRPE: Command 'check_mem" not defined
Hello Taandrews. Which file(s) does your customer indicate that they don't have?
Re: NRPE: Command 'check_mem" not defined
There is no common.cfg on his box.
-
bolson
Re: NRPE: Command 'check_mem" not defined
I perhaps might have asked this sooner... Do other check_nrpe commands run successfully on the XI server against this client?
Re: NRPE: Command 'check_mem" not defined
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
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.
Re: NRPE: Command 'check_mem" not defined
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
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
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$"
Re: NRPE: Command 'check_mem" not defined
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
/etc/nagios/nrpe/cfg
This true for all 10 machines
-
bolson
Re: NRPE: Command 'check_mem" not defined
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:
And post the results
Run the following on an affected remote host:
Code: Select all
cd /etc
grep -nr 'check_mem]'
cd ../usr
grep -nr 'check_mem]'