Passing arguments to host check commands

Russell Scibetti russell at quadrix.com
Thu May 8 18:34:40 CEST 2003


Actually, I believe there is no argument passing for host checks in 
Nagios 1.*  I know I have seen it added to the code for the 2.0 line. 
 Someone correct me if I'm wrong.

Russell

chris at kive.net wrote:

>Patrick,
>
>Make sure you add an entry for check_host_cluster into your
>checkcommands.cfg file. Your '2' would become $ARG1$, your '4' would
>become $ARG2$, and your '/usr/local/nagios/etc/hostcluster.cfg' would
>become $ARG3$.
>
>I'm guessing that is where your problem lies - hope it helps!
>
>-Chris
>
>
>>I'm reading the docs on clusters and it seems to suggest that you can
>>pass arguments to host check commands:
>>
>>>check_host_cluster!2!4!/usr/local/nagios/etc/hostcluster.cfg
>>>
>>But when I try this I get errors from the pre-flight check stating that
>>the command is not found.
>>
>>I checked the source and effecetively there is no argument parsing
>>occuring for host commands (base/config.c:1477 vs base/config.c:1308)
>>
>>Is there a patch for this or something?
>>
>>Thanks,
>>
>>---------------------
>>Patrick LeBoutillier
>>Laval, Quebec, Canada
>>
>
>
>
>
>-------------------------------------------------------
>Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
>The only event dedicated to issues related to Linux enterprise solutions
>www.enterpriselinuxforum.com
>
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users
>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
>::: Messages without supporting info will risk being sent to /dev/null
>
>

-- 
Russell Scibetti
Quadrix Solutions, Inc.
http://www.quadrix.com
(732) 235-2335, ext. 7038


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030508/c6cb6de3/attachment.html>


More information about the Users mailing list