NRPE Error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
noodle48
Posts: 21
Joined: Thu Mar 08, 2012 11:45 am

NRPE Error

Post by noodle48 »

I have an AIX client using NRPE daemon and a Nagios server on Redhat 6.3.

I install the nrpe daemon on AIX server and I issue the check_nrpe -H nagios server and get the version info back but when I issue the same check_npre -H AIX host I get this error:
CHECK_NRPE: Response packet had invalid CRC32.

Has anyone seen this before and if so how do I fix it.

Thanks
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: NRPE Error

Post by nscott »

I found this post:

http://osdir.com/ml/network.nagios.deve ... 00004.html

Perhaps defining your NRPE commands to pipe STDERR to /dev/null/ might be a fix.
Nicholas Scott
Former Nagios employee
noodle48
Posts: 21
Joined: Thu Mar 08, 2012 11:45 am

Re: NRPE Error

Post by noodle48 »

And where to I define this command? Under the check_nrpe file or under xientd.d/nrpe ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE Error

Post by slansing »

You would add to to commands in the commands.cfg file, that is found at:

Code: Select all

/usr/local/nagios/etc/objects/commands.cfg
noodle48
Posts: 21
Joined: Thu Mar 08, 2012 11:45 am

Re: NRPE Error

Post by noodle48 »

Okay....

define command{
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}

Current config, do I need to add > /dev/null or is there a certain syntax I need to follow?
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: NRPE Error

Post by nscott »

The actual location of the file you need to edit depend on how you installed NRPE. The RPM installation has the nrpe.cfg (not the xinetd.d nrpe file) at /etc/nagios/nrpe.cfg, source installs will probably put it at /usr/local/nagios/etc/nrpe.cfg. Go to the very bottom of this file, and you should see something like this:

Code: Select all

# The following examples use hardcoded command arguments...

#command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10
#command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
#command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
#command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
#command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200
However, these are probably uncommented. You'll need to tag an 2>&- onto all of them, this reroutes stderr to nothing:

Code: Select all

command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 2>&-
The above changes the check_users only, so try that on check_users, or whatever check is giving your grief, and if it takes care of the CRC error, then apply it to all of them.
Nicholas Scott
Former Nagios employee
noodle48
Posts: 21
Joined: Thu Mar 08, 2012 11:45 am

Re: NRPE Error

Post by noodle48 »

This option still didn't help my problem. Any other ideas?
Locked