Hello Jeremy

   There is no problem about it... I have my checkcommands.cfg's check_nrpe configured like check_nrpe -t 30 -H $HOSTADDRESS$ -c $ARG1$ -a $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ $ARG10$ $ARG11$, just in case I need lots of arguments.

   The only point you have to pay attention is passing no arguments at all... There may be - as far as I'm concerned - two problems:

1. Passing no arguments at service configuration will cause a blank -a execution of check_nrpe, causing and error (check_nrpe: option requires and argument -- a).

In this case, you can use just a dummy argument, like check_command check_nrpe!check_cpu!1. No real function to the "1" argument, but solves your problem!

2. If the NRPE host was not compiled with --enable-command-args, you will receive an unkown status with the message "CHECK_NRPE output error" (or something like that).

For both cases, another way to solve those problems would be creating two different check commands, i.e. check_nrpe_args and check_nrpe_noargs.

   I hope that helps you!

Cheers,
Rafael Costa
[EMAIL PROTECTED]
Curitiba / PR / Brasil


Pavleck, Jeremy D. escreveu:

Greetings,
If I setup an nrpe.cfg check of something like check_procs -w $ARG1$ -c
$ARG2$ -a $ARG3$ $ARG4$ and don't supply an $ARG4$, will it error or
simple just carry on with the check? I'm trying to make some overly
generic remote checks here, and something like this would be great.
Thanks.

Jeremy D. Pavleck
Network Engineer
System Management
    
Direct Line: 612-977-5881
Toll Free: 1-888-CAPELLA ext. 5881
Fax: 612-977-5060
E-mail: [EMAIL PROTECTED]
    
Capella University
225 South 6th Street, 9th Floor
Minneapolis, MN 55402

www.capella.edu

Reply via email to