Ad Widget

Collapse

Change Host Tag value based on Item result in Zabbix 7.0.17

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew_PT
    Junior Member
    • May 2025
    • 7

    #1

    Change Host Tag value based on Item result in Zabbix 7.0.17

    Hi
    We have a Zabbix 7.0.17 LTS single server running on Ubuntu 24.04.2 using local MYSQL.
    Most of our monitored hosts are Windows servers, some of them are managed by a third party.
    I have a Template which has an Item showing if the OS is managed by us or the third party.
    This item updates the Inventory with this value.
    I would like to have Dashboard widgets filtering based on this management but I have not been able to feed / update into the Host tags as yet.
    I know I can script it but would prefer it to be done within Zabbix it's self.
    is there a way to update a Host Tag?
    I have found references to using a macro like {ITEM.VALUE<N>} but so far these have not worked.
    Thank you for any help and have a good day
    Andrew
  • Brambo
    Senior Member
    • Jul 2023
    • 245

    #2
    Make sure that the template which you use for third party has the tag set on it's items / problems (in the template)
    Then the items / problems created by the template can easily filtered out by using Tag x does / doesn't exists.
    This setup allow you even to have 1 host be split into multiple scenario's
    Option 2 route of a virtual host, in the zabbix conf you setup a second (or third etc) hostname and only on that specific hostname you attach the template for other support parties. This virtual host can be set a in a different host group and that allows you to filter as well.

    Items setting tags on host level isn't within the zabbix logic, tags arrive from: Template and/or Host >+> item tags >+> trigger tags and all of these are in the available in a problem. And as you can see, displaying a item value cannot be filtered on a problem tag.

    Comment

    Working...