Page 1 of 1
check_nrpe!check_load command failed
Posted: Tue May 13, 2014 12:52 pm
by kmalden
I followed a previous post by mslansing (April 2012).
My client is on a SuSE 11 server. The check_nrpe is already in commands.cfg file, I didn't have to add it.
When I run /usr/local/nagios/libexec/check_nrpe -H <<remost host>> -c check_load -a '-w 15,10,5 -c 30,20,10', the error I get:
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
On my remote log:
Error: Request contained command arguments, but argument option is not enabled!
I'm not seeing any parameter for a temp location in nrpe.cfg file.
I changed the dont_blame_nrpe=0 line to a "1", then save the file and issued:
service xinetd restart
Still no change.
Re: check_nrpe!check_load command failed
Posted: Tue May 13, 2014 12:53 pm
by kmalden
It's 64 bit running on VMware 5.
Re: check_nrpe!check_load command failed
Posted: Tue May 13, 2014 1:08 pm
by kmalden
Some of the file locations are different on SuSE:
SuSE:
/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
/usr/lib/nagios/plugins/
CentOS:
/usr/local/nagios/libexec/check_nrpe -H REMOTEIP -c check_load -a '-w 15,10,5 -c 30,20,10'
/usr/local/nagios/libexec
Re: check_nrpe!check_load command failed
Posted: Tue May 13, 2014 3:04 pm
by kmalden
What I'm finding is that the command:
Doesn't work:
/usr/local/nagios/libexec/check_nrpe -H REMOTEIP -c check_load -a '-w 15,10,5 -c 30,20,10'
Does work:
/usr/local/nagios/libexec/check_nrpe -H REMOTEIP -c check_load
My remote server doesn't like the attached arguments. I have even tried matching the remote's hardcoded command with the command run on the monitor server side.
Re: check_nrpe!check_load command failed
Posted: Tue May 13, 2014 7:00 pm
by Box293
I think that you need to complile NRPE on the SuSE box with the --enable-command-args parameter:
I was playing around with NRPE on SuSE a few months ago and here are the notes I made:
Code: Select all
cd /var/tmp
sudo wget http://sourceforge.net/projects/nagios/files/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz
sudo tar zxvf nrpe-2.15.tar.gz
cd nrpe-2.15/
sudo ./configure --enable-command-args
sudo make all
sudo make install-plugin
sudo make install-daemon
Re: check_nrpe!check_load command failed
Posted: Wed May 14, 2014 10:35 am
by kmalden
Currently, the YAST download I have is NRPE v2.12. Will this work with this version or will I need to upgrade first.
It's very convenient to use YAST for this so I would like to keep this process, if possible.
Re: check_nrpe!check_load command failed
Posted: Wed May 14, 2014 1:17 pm
by abrist
I don't know enough about Yast to know if there is a way to rebuild the agent within the pkg management system. Lets test whether it supports command args currently - run a check against the server with command arguments declared in the check, and then on teh remote server check messages:
You are looking for any errors dealing with command args.
Re: check_nrpe!check_load command failed
Posted: Wed May 14, 2014 3:10 pm
by kmalden
I think I've figured out that it was an input mistake on the remote server for the commands. I've corrected that and now it works from the monitor server's command line.
Re: check_nrpe!check_load command failed
Posted: Wed May 14, 2014 3:24 pm
by tmcdonald
Good to hear. Closing thread.