Page 1 of 1

nrpe-server args not working

Posted: Mon Mar 17, 2014 4:59 am
by reincarne
Hello
we are running nagiosxi 2002r2.8c on top of Centos 6.5, NRPE 2.12-4ubuntu
when using nrpe arguments looks like the args are not passing through to the command being executed :

we use these settings at the /etc/nagios/nrpe.cfg :
command[check_ntp_time]=/usr/lib/nagios/plugins/check_ntp_time $ARG2$

when the nrpe plugin is setup this way :
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ -a $ARG2$

ARG1 is our command -> check_ntp_time
ARG2 is '-w 0.02 -c 0.01'

The results show no usage of the arguments :
NTP OK: Offset -4.053115845e-06 secs|offset=-0.000004s;0.000000;120.000000;

Please advise

Re: nrpe-server args not working

Posted: Mon Mar 17, 2014 9:14 am
by tmcdonald
Did you set dont_blame_nrpe to 1 and compile with the proper "--enable-command-args" flag?

http://exchange.nagios.org/directory/Tu ... ts/details