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

matato at pregi.net matato at pregi.net
Mon Feb 14 17:32:20 CET 2005


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.




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