Where are the $ARGn$ macros will come from??
Andreas Ericsson
ae at op5.se
Mon Feb 14 10:08:08 CET 2005
matato at pregi.net wrote:
> Hi,
> I'm a little bit confuse about where the $ARGn$ macros will come from.
> for example, I have a service named squid and I used the check_tcp as its
> checkcommand.the actual command_line is:
> /usr/local/nagios/libexec/check_tcp -H $HOSTADDRESS$ -p $ARG1$
> Where $ARG1$ must be the port the service is listening on. In my case 3128.
>
> I know that the $HOSTADDRESS$ will automatically be the address of the
> host the service belongs to, but how about the $ARG1$. How will I tell
> nagios that, "hey, this number "3128" is the $ARG1$, this is the port you
> should check for tcp connection". Is it included in any configuration
> file?
> Any idea?? thanks.
>
check_command check_squid!arg1!arg2!arg3!arg4
I'm sure you get the idea, and I believe this is documented somewhere.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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
More information about the Users
mailing list