$HOSTGROUPNAME$ macro
Posted: Thu Apr 21, 2016 3:40 am
Hello
I am trying to construct notes_url in host and service template definition by using macros.
for host hostname/$HOSTGROUPNAME$:$HOSTNAME$
for service hostname/$HOSTGROUPNAME$:$HOSTNAME$:$SERVICEDESC$
Macros $HOSTNAME$ and $SERVICEDESC$ are getting their values, but $HOSTGROUPNAME$ are not .
the documentation says
$HOSTGROUPNAME$ The short name of the hostgroup that this host belongs to. This value is taken from the hostgroup_name directive in the hostgroup definition. If the host belongs to more than one hostgroup this macro will contain the name of just one of them.
But whan I use this macro in hostgroup notes_url definition it works fine, I cannot understand why.
The question is - Can I use $HOSTGROUPNAME$ in host/ service template definition? Or is there any lists of macros where I can find out which macros where to use ?
I am trying to construct notes_url in host and service template definition by using macros.
for host hostname/$HOSTGROUPNAME$:$HOSTNAME$
for service hostname/$HOSTGROUPNAME$:$HOSTNAME$:$SERVICEDESC$
Macros $HOSTNAME$ and $SERVICEDESC$ are getting their values, but $HOSTGROUPNAME$ are not .
the documentation says
$HOSTGROUPNAME$ The short name of the hostgroup that this host belongs to. This value is taken from the hostgroup_name directive in the hostgroup definition. If the host belongs to more than one hostgroup this macro will contain the name of just one of them.
But whan I use this macro in hostgroup notes_url definition it works fine, I cannot understand why.
The question is - Can I use $HOSTGROUPNAME$ in host/ service template definition? Or is there any lists of macros where I can find out which macros where to use ?