NRPE compiling

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

NRPE compiling

Post 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?
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: NRPE compiling

Post 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.
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: NRPE compiling

Post 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?
sappjt
Posts: 59
Joined: Thu Nov 18, 2010 12:52 pm

Re: NRPE compiling

Post 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?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NRPE compiling

Post 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' 
Locked