nrpe-server args not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
reincarne
Posts: 146
Joined: Wed Jun 26, 2013 4:39 am

nrpe-server args not working

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nrpe-server args not working

Post 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
Former Nagios employee
Locked