Ad Widget

Collapse

Multiple Item Values in Trigger Name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GaryBarber
    Junior Member
    • Jan 2020
    • 13

    #1

    Multiple Item Values in Trigger Name

    I've set up some DB monitoring that tells me when the DB has moved from one cluster node to another. I want the trigger to tell me which node it has moved from and to. ITEM.VALUE resolves just fine to the name of the current node, but ITEM.VALUE2 doesn't return the previous value.

    What have I done wrong?

    Click image for larger version

Name:	db.JPG
Views:	2256
Size:	95.4 KB
ID:	416842
    Attached Files
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2


    This macro may be used with a numeric index e.g. {ITEM.VALUE<1-9>} to point to the first, second, third, etc. host in a trigger expression

    Comment

    • GaryBarber
      Junior Member
      • Jan 2020
      • 13

      #3
      Can you suggest how I might fix it?

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        You can create a calculated item that will store the previous value(last(#2) or prev functions).
        Then use this item in your trigger expression with any harmless function (.time>0) - then its value can be referenced as you planned.

        Comment

        Working...