nrpe arguments
Posted: Tue Aug 31, 2010 9:49 am
Hello,
i have a problem on committing arguments to nrpe.
what i am trying to do:
on the shell i execute this::
on the remote host this is configured (nrpe.cnf):
but the "-u" argument is being placed wrong, i get this output (debug on the remote host):
but if i change the order and put the "-u root" to the front, it works:
i have tried setting " and ' in the nrpe.cnf and on the shell, but it didn't work
thank you in advance
i have a problem on committing arguments to nrpe.
what i am trying to do:
on the shell i execute this::
Code: Select all
libexec/check_nrpe -H my.host.com -c check_cert_proc -a 1: 1:10 'postfix/master' -u rootCode: Select all
command[check_cert_proc]=/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$ $ARG4$ $ARG5$Code: Select all
Host is asking for command 'check_cert_proc' to be run...
Aug 30 09:59:27 src@kevin nrpe[10436]: Running command: /usr/local/nagios/libexec/check_procs -w 1: -c -u -a 1:10 postfix/master rootbut if i change the order and put the "-u root" to the front, it works:
Code: Select all
command[check_cert_proc]=/usr/local/nagios/libexec/check_procs $ARG1$ $ARG2$ -w $ARG3$ -c $ARG4$ -a $ARG5$i have tried setting " and ' in the nrpe.cnf and on the shell, but it didn't work
thank you in advance