<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-flowed"
style="font-family: -moz-fixed; font-size: 14px;" lang="x-western">Hello
Jeremy
<br>
<br>
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.
<br>
<br>
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:
<br>
<br>
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).
<br>
<br>
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!
<br>
<br>
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).
<br>
<br>
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.
<br>
<br>
I hope that helps you!
<br>
<br>
Cheers,
<br>
Rafael Costa
<br>
<a class="moz-txt-link-abbreviated" href="mailto:rafaelc@vegait.com.br">rafaelc@vegait.com.br</a>
<br>
Curitiba / PR / Brasil
<br>
<br>
<br>
Pavleck, Jeremy D. escreveu:
<br>
<br>
<blockquote type="cite">Greetings,
<br>
If I setup an nrpe.cfg check of something like check_procs -w $ARG1$ -c
<br>
$ARG2$ -a $ARG3$ $ARG4$ and don't supply an $ARG4$, will it error or
<br>
simple just carry on with the check? I'm trying to make some overly
<br>
generic remote checks here, and something like this would be great.
<br>
Thanks.
<br>
<br>
Jeremy D. Pavleck
<br>
Network Engineer
<br>
System Management
<br>
<br>
Direct Line: 612-977-5881
<br>
Toll Free: 1-888-CAPELLA ext. 5881
<br>
Fax: 612-977-5060
<br>
E-mail: <a class="moz-txt-link-abbreviated"
href="mailto:jeremy.pavleck@capella.edu">jeremy.pavleck@capella.edu</a>
<br>
<br>
Capella University
<br>
225 South 6th Street, 9th Floor
<br>
Minneapolis, MN 55402
<br>
<br>
<a class="moz-txt-link-abbreviated" href="http://www.capella.edu">www.capella.edu</a>
<br>
</blockquote>
</div>
</body>
</html>