Where are the $ARGn$ macros will come from??

Subhendu Ghosh sghosh at sghosh.org
Tue Feb 15 00:20:00 CET 2005


On Mon, 14 Feb 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.
>

In the service definition's check command, all items demarcated by "!" 
(bang) following the command name are the ARGn macro values

check_squid!3128

$ARG1$ == 3128

-- 

-sg


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