nrpe arguments

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
bobapple
Posts: 1
Joined: Tue Aug 31, 2010 9:45 am

nrpe arguments

Post by bobapple »

Hello,

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 root
on the remote host this is configured (nrpe.cnf):

Code: Select all

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):

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 root

but 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
Locked