Ad Widget

Collapse

Refer to a item value in a trigger title?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmusbach
    Member
    • Sep 2013
    • 37

    #1

    Refer to a item value in a trigger title?

    Hello, we have a certain trigger where we want the title in the alerts to contain a item value for the affected node. Is it possible to refer to the value of a item that node is monitoring in the trigger title? If so, how? Thanks.
  • jan.garaj
    Senior Member
    Zabbix Certified Specialist
    • Jan 2010
    • 506

    #2
    Configure your Action:

    and add right macro supported in notification ({ITEM.VALUE1}) into Default subject:
    Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
    My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

    Comment

    • jmusbach
      Member
      • Sep 2013
      • 37

      #3
      Right I got that, that works well for getting the value of the item that triggered the trigger. However, is it possible for the trigger title to contain the value of another monitored item under the affected node even if that item wasn't the one who triggered the trigger? Thanks.

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        I'm not 100% sure, but try:
        {host:key.func(param)} e.g. {Zabbix server:agent.ping.last(0)}

        Or you can use workaround:
        create second (3rd, ...) condition with selected item, which will be (almost) always true e.g. ping<10000sec and then you can use again item macro in subject {ITEM.VALUE2},{ITEM.VALUE3}, ...
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • jmusbach
          Member
          • Sep 2013
          • 37

          #5
          Thanks, I'll have to give those suggestions a try.

          Comment

          Working...