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 ?
HOSTGROUPMEMBERS
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: HOSTGROUPMEMBERS
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.
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.