Ad Widget

Collapse

Reference Item Value in Action email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jokes54321
    Junior Member
    • Jan 2013
    • 6

    #1

    Reference Item Value in Action email

    Hello,

    We've been running Zabbix 2.0.5 for a while now and it's been working great.

    I'm starting to use the Discovery feature and am stumped on a particular spot.

    The template I created with discovery correctly created my items and the corresponding triggers and this works well.

    One item this discovery template creates gets the description (ifAlias) entered for a particular interface. Another discovery created item gets the value of the interfaces operational status and also creates a corresponding trigger, so if the interface goes down it raises an alert. This works perfectly.

    The issue I am getting suck on is with the Action email. While the default action email correctly displays the value of the item the trigger evaluated (operational status), I cannot figure out how to reference the value of the other item for the description (ifAlias)

    Basically whenever a trigger is raised on an Interface, whether it's a router interface or switchport, I want the email to include the interface description (ifAlias).

    Is this possible without this item being in the trigger?

    Thank you,

    Denny
  • Alberto Freire
    Junior Member
    • Jul 2014
    • 24

    #2
    You can use to macro {HOST.NAME} or {TRIGGER.NAME} on action...

    See more macros in:



    And:

    Comment

    • jokes54321
      Junior Member
      • Jan 2013
      • 6

      #3
      Hello,

      I looked through the macro links you posted and I'm still not understanding.

      If the Item ifAlias was part of the trigger evaluation, I understand how I can reference the value with a macro, but I'm still not seeing how I can grab the value from an item that wasn't part of the trigger that fired the action.

      So, I have the following trigger item

      {LAX2801:IfOperStatus["15"].last(0)}#1


      If this triggers an alert, I want the value another item included in the action email

      ifAlias["15"]

      Denny

      Comment

      • jokes54321
        Junior Member
        • Jan 2013
        • 6

        #4
        Guess the short answer is, unless the value is included in the trigger evaluation expression, it cannot be referenced.

        This link explains how to work around the issue.

         In a previous post [1] , I explained how to solve a very fustrating thing about Zabbix : "How add network interface's description in your ...

        Comment

        Working...