NRPE compiling
NRPE compiling
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?
-
tonyyarusso
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
- Contact:
Re: NRPE compiling
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
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
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
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.
Check commands on the nrpe client machine must match up with the service definitions.
NRPE Client Definition
Accepted Nagios check command:
OR using argument:
NRPE Client Definition
Nagios server check command
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=1Check 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 10Code: Select all
check_nrpe -H <hostaddress> -c check_usersNRPE Client Definition
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users $ARG1$ Code: Select all
check_nrpe -H <hostaddress> -c check_users -a '-w 5 -c 10'