Where in the docs...

Andy Shellam andy-lists at networkmail.eu
Thu Dec 4 21:48:18 CET 2008


Hi David,

This explains how macros work:  
http://nagios.sourceforge.net/docs/3_0/macros.html
This is the list of macros available:  
http://nagios.sourceforge.net/docs/3_0/macrolist.html

I assume you're using Nagios 3.0 - replace 3_0 as appropriate in the URL 
if you're not.

Hope this helps,
Andy

David Dyer-Bennet wrote:
> ...could I find information on macro definition and substitution? 
> Comments in various places describe "$HOSTADDRESS$" as some kind of macro
> substitution, and other examples show multiple sets of parameters in
> somewhat strange syntax in service invocations (and refer to $ARG1$ and
> such), but I haven't found where these things are actually documented or
> explained at all.
>
> I've been able to write a number of new service, command, and a couple of
> host definitions, even some that use parameters, and they work, which is
> nice (and even useful, already), but I need to understand macros more; are
> they pre-coded, which ones exist, and so forth.  I'm sure the way I'm
> doing things now is repeating things a lot more than is necessary (yes,
> I've looked at the tip for multiple hosts with the same services, etc.,
> and I do understand at least some of them).
>
>   


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.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





More information about the Users mailing list