Hi!
i try to get the current hostgroup name for a custom link in the context menu of my hosts
i need this because i want to link from the host to a grafana instance / dashboard
the needed parameters are "hostgroup" und "host" (i am using the zabbix-grafana template)
i use ALERTS -> SCRIPT -> type URL in order to "generate" the url for grafana
e.g.: https://grafana.test.internal/zabbix...var-hostgroup={TRIGGER.HOSTGROUP.NAME}&var-host={HOST.NAME}
the hostname is working - i can get it via {HOST.NAME} macro
but i did not find any way to get the name of the hostgroup with a macro
i already used {TRIGGER.HOSTGROUP.NAME} and {HOSTGROUP.ID} from the dokumentation but the values are not replaced with the corresponding hostgroupname the host is in
any help very much appreciated
i try to get the current hostgroup name for a custom link in the context menu of my hosts
i need this because i want to link from the host to a grafana instance / dashboard
the needed parameters are "hostgroup" und "host" (i am using the zabbix-grafana template)
i use ALERTS -> SCRIPT -> type URL in order to "generate" the url for grafana
e.g.: https://grafana.test.internal/zabbix...var-hostgroup={TRIGGER.HOSTGROUP.NAME}&var-host={HOST.NAME}
the hostname is working - i can get it via {HOST.NAME} macro
but i did not find any way to get the name of the hostgroup with a macro
i already used {TRIGGER.HOSTGROUP.NAME} and {HOSTGROUP.ID} from the dokumentation but the values are not replaced with the corresponding hostgroupname the host is in
any help very much appreciated