Re: NRPE:Unable to read output
Posted: Thu Jul 24, 2014 12:44 pm
Found a really strange development. This is on my prod server, which I haven't changed anything on yet. All of the modifications in this thread have been in test. But I just happened to notice that I'm getting an "NRPE: Unable to read output" error on one of our service checks, but it shows up as unknown. So I ran 2 commands from the command line, one that is similar to the zone CPU check, and one that is using check_disk. Both come back with different exit codes.
Code: Select all
[root@nagiosXI1 tmp]# /usr/local/nagios/libexec/check_nrpe -p 5668 -H INCORRECTGLOBAL.snapon.com -c check_zone_cpu -a '-n ZONE -w 80 -c 90'
NRPE: Unable to read output
You have new mail in /var/spool/mail/root
[root@nagiosXI1 tmp]# echo $?
1
[root@nagiosXI1 tmp]# /usr/local/nagios/libexec/check_nrpe -p 5668 -H SERVER.snapon.com -c check_disk -a '-w 20% -c 10% -p /'
NRPE: Unable to read output
[root@nagiosXI1 tmp]# echo $?
3