nrpe 2.15 - nagios 3.5.1 problem -> wrong parameter list
Posted: Sun Dec 21, 2014 11:30 pm
I installed nagios 3.5.1 on ubuntu 14.04 (apt-get install nagios3, apt-get install nagios-nrpe-plugin). On a remote ubuntu 14.04 server, I installed nrpe-server (apt-get install nagios-nrpe-server). There seems to be a problem when not passing arguments. (Or maybe I'm missing something obvious)
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:
config on remote server:
From the command line, it works:
I turned on debug on the master and I see this in the nagios.debug log:
NOTE that there is a '-a' at the end of the output line. Why is that? When I cut and paste that to a command line, the check fails:
AND that is the problem. How do I stop nagios from putting "-a" at the end of the command when I'm not passing any parameters?
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'