I see these error messages in the web gui - CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
config sample on master: my.server.cfg has this service defined:
Code: Select all
define service{
use generic-service ; Name of service template to use
host_name Server1
service_description Disk Space
check_command check_nrpe!check_disk1
}
Code: Select all
dont_blame_nrpe=0
command[check_disk1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
Code: Select all
$ /usr/lib/nagios/plugins/check_nrpe -H my.ip.add.ress -c check_disk1
DISK OK - free space: / 46920 MB (97% inode=97%);| /=1194MB;40208;45234;0;50260Code: Select all
**** BEGIN MACRO PROCESSING ***********
Processing: '/usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$'
Done. Final output: '/usr/lib/nagios/plugins/check_nrpe -H my.ip.add.ress -c check_disk1 -a '
**** END MACRO PROCESSING *************Code: Select all
$ /usr/lib/nagios/plugins/check_nrpe -H my.ip.add.ress -c check_disk1 -a
/usr/lib/nagios/plugins/check_nrpe: option requires an argument -- 'a'