Page 1 of 1
NRPE compiling
Posted: Wed Feb 16, 2011 5:19 pm
by sappjt
I went to install the nrpe agent on a redhat 5 server. It wants gcc to compile, but we don't have that installed on the servers for vulnarability issues. Can I pull the binaries from another compiled machine and have them work? Do you, or will you have another way of installing... maybe an rpm or something to that extent?
Re: NRPE compiling
Posted: Wed Feb 16, 2011 6:06 pm
by tonyyarusso
Yes, compiling on another machine of the same OS & architecture and then moving the binaries over should work. Additionally, while we do not have an RPM of our own, NRPE is present in the EPEL repositories for CentOS & Red Hat if you're interested in using those.
Re: NRPE compiling
Posted: Mon Mar 07, 2011 12:10 pm
by sappjt
I want to use the epel repository for nrpe as this will allow ease of installing and updating. What specifice packages do I need (nrpe and or nsca)? I tried to get it working already, but I got a ssl handshake error. Are there any extra configurations to do?
Re: NRPE compiling
Posted: Mon Mar 07, 2011 2:10 pm
by sappjt
I think I have things correct now, but I still get "Unable to read output" except for the check_nrpe -H xxx.xxx.xxx.xxx, which returns the version of nrpe. Any ideas?
Re: NRPE compiling
Posted: Tue Mar 08, 2011 10:37 am
by mguthrie
Two things you'll want to check.
If you're sending arguments with your check commands, make sure you check the following setting in your nrpe.cfg file on the client machine.
Code: Select all
# Values: 0=do not allow arguments, 1=allow command arguments
dont_blame_nrpe=1
Check commands on the nrpe client machine must match up with the service definitions.
NRPE Client Definition
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
Accepted Nagios check command:
Code: Select all
check_nrpe -H <hostaddress> -c check_users
OR using argument:
NRPE Client Definition
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$
Nagios server check command
Code: Select all
check_nrpe -H <hostaddress> -c check_users -a '-w 5 -c 10'