Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-23784

Trigger Link to Latest Data does not work correctly because hostgroup is set

XMLWordPrintable

      Steps to reproduce:

      In the following Trigger URL to "Latest data" the macro {HOSTGROUP.ID} is not resolved:

      {$ZABBIX_URL}/zabbix.php?action=latest.view&name=deadlock%20detection&show_tags=3&hostids%5B%5D={HOST.ID}&groupids%5B%5D={HOSTGROUP.ID}

      This id OK according to the documentation:

      https://www.zabbix.com/documentation/current/en/manual/appendix/macros/supported_by_location#host-groups

      But the following Trigger URL will show an empty result:

      {$ZABBIX_URL}/zabbix.php?action=latest.view&name=open&show_tags=3&hostids%5B%5D={HOST.ID}

      Because the hostgroup is preset by a previous lookup and not erased in this case. So the host with the wrong hostgroup is search which leads to no result.

      Expected:

      • Either resolve hostgroup.id Macro in trigger URL or
      • do not inherit hostgroup from previous lookup in Latest Data view. (if hostgroup is not set in url then set hostgroup to NULL)

            mbuz Maksym Buz
            shinguz Oli Sennhauser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: