Ad Widget

Collapse

how to get the name hostgroup in macro for custom link (context menu of host)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • micon
    Junior Member
    • Jun 2023
    • 3

    #1

    how to get the name hostgroup in macro for custom link (context menu of host)

    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


    Attached Files
Working...