Ad Widget

Collapse

Action condition

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Davidus
    Senior Member
    • Dec 2010
    • 281

    #1

    Action condition

    Hello folks

    I have trigger which, sort of compares value of two items, and if difference between these two items is equal or grater than 10 it fires up.
    Now I’m trying to set up action which will send, email notification for instance, with last value of these items. In other words, I would like to display last value of both items in action.

    Any suggestions?
    Thanks in advance
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    {ITEM.LASTVALUE<1-9>} should do that.

    http://www.zabbix.com/documentation/.../config/macros

    Comment

    • Davidus
      Senior Member
      • Dec 2010
      • 281

      #3
      Unfortunately it wont work
      I tried

      {ITEM.LASTVALUE<1-9>}
      {ITEM.VALUE<1-9>}
      {TRIGGER.KEY<1-9>}

      Comment

      • Davidus
        Senior Member
        • Dec 2010
        • 281

        #4
        basically what i receive is

        (ITEM.LASTVALUE<1-9>)
        (ITEM.VALUE<1-9>)
        (TRIGGER.KEY<1-9>)

        Comment

        • ghoz
          Senior Member
          • May 2011
          • 204

          #5
          Just to make sure : the syntax is {ITEM.LASTVALUE1} for the first item in your trigger
          {ITEM.LASTVALUE2} for the second etc...

          Comment

          • Davidus
            Senior Member
            • Dec 2010
            • 281

            #6
            Solved

            Originally posted by ghoz
            Just to make sure : the syntax is {ITEM.LASTVALUE1} for the first item in your trigger
            {ITEM.LASTVALUE2} for the second etc...
            I did that differently.

            Have no idea why, but I’m not able to use some of the macros as action condition…
            My solution:
            Code:
            {MYHOST:item1.last(0)} {MYHOST:item2.last(0)}
            as a trigger comment. And have used {TRIGGER.COMMENT} as an action condition.

            Thanks everyone for attention and support!!!

            Comment

            Working...