CHECK_NRPE: Error receiving data from daemon.

Kapil Bajaj kapil-rsFDdOkmKnLQT0dZR+AlfA at public.gmane.org
Tue May 24 14:43:24 CEST 2005


Hi, 

I am trying to create nagios plugin (perl script: check_test) to
run on remote machine using nrpe. I am able to setup nrpe and 
execute plugins (default plugins) on remote machine. But the custom
plugin error out on nagios machine. Surprisingly, it works fine
on the remote machine and also locally on nagios server. Telnet to
port 5666 also works fine. I am not able to figure where the problem
exists. Tried to debug and found that nrpe deamon is sending it 
properly to check_nrpe.But somehow nagios server receives this error
code from SSL:
     SSL_get_error=1
     ERR_get_error=336130315
     error:00000001:lib(0):func(0):reason(1)

Following commands are executed on nagios server:
==================================================
[root at nagios libexec]# ./check_nrpe -H <remote IP> -c check_disk1
DISK OK - free space: / 401 MB (4%);| /=9443MB;9644;9744;0;9844

[root at nagios libexec]# ./check_nrpe -H <remote IP> -c check_test
*CHECK_NRPE: Error receiving data from daemon.*
================================================


Following commands are executed on remote server:
==================================================
[root at remote root]# grep check_disk1 /etc/nrpe.cfg
command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 200 -c 100 -p /dev/sda2

[root at remote root]# grep check_test /etc/nrpe.cfg
command[check_test]=/root/check_test

[root at remote root]# cat /root/check_test
#!/usr/bin/perl

print ("TEST WARNING - search report:  working (2%);| /=9870MB;9876;9976;0;10076\n");
exit 1

[root at rcdut4 root]# /root/check_test
TEST WARNING - search report:  working (2%);| /=9870MB;9876;9976;0;10076
===================================================

This script works fine if I run it from nagios machine locally and
GUI also display the state properly based on the exit (return) code.
Both check_nrpe and nrpe are of same version.

-- 
Thanks,
Kapil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050524/9fec9c8c/attachment.html>


More information about the Users mailing list