Undocumented features in on demand macro code
Ethan Galstad
nagios at nagios.org
Sun Feb 10 20:25:32 CET 2008
Matthias Eble wrote:
> Hi All,
>
> when looking to the macro code I found out that passing a group name
> instead of a host name in the first argument is valid, too. But I
> couldn't find any documentation about it unfortunately.
>
> In this case syntax is following:
> $SERVICEMACRO:SERVICEGROUP_NAME:DELIMITER$ or
> $HOSTMACRO:HOSTGROUP_NAME:DELIMITER$
>
> thus:
> $SERVICESTATEID:svc_grp:,$
> returns a comma separated list of all the state IDs in the service group.
>
> The output can then for example be passed to check_cluster reporting the
> overall status of eg. a service group - great.
>
> This is definitely worthh being mentioned in the docs if you ask me.
>
> Matthias
>
Duly noted. I'll get this in the docs. Thanks!
Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web: www.nagios.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
More information about the Developers
mailing list