Page 1 of 1

[Nagios-devel] Undocumented features in on demand macro code

Posted: Mon Feb 04, 2008 1:59 am
by Guest
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












This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]