[Nagiosplug-help] nrpe plugin argument on wrong place

Blerim Sheqa bshp at netzmarkt.de
Tue Aug 31 08:32:42 CEST 2010


  Hello,

i have a problem on committing arguments to nrpe.

what i am trying to do:

on the shell i execute this::
libexec/check_nrpe -H my.host.com -c check_cert_proc -a 1: 1:10 
'postfix/master' -u root

on the remote host this is configured (nrpe.cnf):
command[check_cert_proc]=/usr/local/nagios/libexec/check_procs -w $ARG1$ 
-c $ARG2$ -a $ARG3$ $ARG4$ $ARG5$

but the "-u" argument is being placed wrong, i get this output (debug on 
the remote host):
Host is asking for command 'check_cert_proc' to be run...
Aug 30 09:59:27 src at kevin nrpe[10436]: Running command: 
/usr/local/nagios/libexec/check_procs -w 1: -c -u -a 1:10 postfix/master 
root


but if i change the order and put the "-u root" to the front, it works:
command[check_cert_proc]=/usr/local/nagios/libexec/check_procs $ARG1$ 
$ARG2$ -w $ARG3$ -c $ARG4$ -a $ARG5$



thank you in advance





More information about the Help mailing list