Page 1 of 1
NRPE Error
Posted: Mon Aug 06, 2012 8:12 am
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
Re: NRPE Error
Posted: Mon Aug 06, 2012 9:15 am
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.
Re: NRPE Error
Posted: Mon Aug 06, 2012 9:31 am
by noodle48
And where to I define this command? Under the check_nrpe file or under xientd.d/nrpe ?
Re: NRPE Error
Posted: Mon Aug 06, 2012 12:20 pm
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
Re: NRPE Error
Posted: Mon Aug 06, 2012 12:32 pm
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?
Re: NRPE Error
Posted: Mon Aug 06, 2012 3:19 pm
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.
Re: NRPE Error
Posted: Thu Aug 09, 2012 6:52 am
by noodle48
This option still didn't help my problem. Any other ideas?