[Nagiosplug-help] CHECK_NRPE: Error receiving data from daemon.

Kapil Bajaj kapil at gs-lab.com
Tue May 24 06:15:17 CEST 2005


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:

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

[root at remote root]# cat /root/check_test

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.


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

More information about the Help mailing list