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
NRPE Error
Re: NRPE Error
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.
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
Former Nagios employee
Re: NRPE Error
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
You would add to to commands in the commands.cfg file, that is found at:
Code: Select all
/usr/local/nagios/etc/objects/commands.cfgRe: NRPE Error
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?
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
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:
However, these are probably uncommented. You'll need to tag an 2>&- onto all of them, this reroutes stderr to nothing:
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.
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
Code: Select all
command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 2>&-
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: NRPE Error
This option still didn't help my problem. Any other ideas?