Page 1 of 1

HOSTGROUPMEMBERS

Posted: Tue Oct 06, 2015 2:52 am
by amprantino
Hello all,

I am trying to automate things using HOSTGROUPMEMBERS Macro.

Is it possible to get the $HOSTSTATEID$ of all $HOSTGROUPMEMBERS$ ??

I want to get the HoststateID of all member of a hostgroup.
So can I use: $HOSTSTATEID$:AP_GRP_1:$HOSTGROUPMEMBERS$ ??? Or something difefrent ?

Re: HOSTGROUPMEMBERS

Posted: Tue Oct 06, 2015 4:35 pm
by jdalrymple
Those macros are only available in the context of an activity such as a notification or check or event handler.

What you're trying to do is outside the scope of a normal Nagios process right? If that's the case probably the easiest route would be to create a query to grab that info from the database.