Ad Widget

Collapse

Item that caused the trigger?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DSon
    Member
    • Sep 2009
    • 44

    #1

    Item that caused the trigger?

    Hello all,

    Hopefully this is a an easy one (I've not managed to find the answer in the documentation / on the forum unfortunately).

    I have a trigger which looks at 3 items, creating a notification if any of them "fail". The specific trigger isn't important, for this question anyway.

    My question is: is there a macro that can be used to get Zabbix to report (within a notification message) precisely which of the 3 items caused the trigger to fail?

    The closest thing I can find within the documentation is:

    {HOSTNAME}:{TRIGGER.KEY}.last(#1-9)

    The problem with this macro is that I can't see any way of notifying the support team what the exact item (or items) that caused the trigger event in the first place.

    As a workaround to this problem, I currently have my notification messages setup as follows:

    {ITEM.NAME1} = {ITEM.VALUE1}
    {ITEM.NAME2} = {ITEM.VALUE2}
    {ITEM.NAME3} = {ITEM.VALUE3}
    ..etc

    - this works, but looks ugly sometimes because each trigger has a different number of items, and where there are only 1/2 items in the trigger, my notification message displays:

    *UNKNOWN*
    *UNKNOWN*

    ..for the other item values.

    Does anyone on here know if there is a notification macro that records exactly which item(s) within a trigger caused the trigger event? I only want to display the problem item(s) in my notification messages, if possible.

    Also, while I remember, there is another question!

    If a use a trigger with 11 or more items (I monitor servers with many drive partitions), is there a way of displaying (within a notification message) the values for the extra items? As far as I can tell, the above macro {ITEM.VALUE(1-9)} only permits up to 9 items? This would not be needed as much IF there is a macro to display the exact item that "failed" (see above question).

    Thanks for reading this post, and if you have any ideas please share!



    Danny.
  • DSon
    Member
    • Sep 2009
    • 44

    #2
    Bump

    Sorry to go on about this, but can anyone help with this question (see first post)?

    Danny.

    Comment

    • hsamayoa
      Junior Member
      • Mar 2011
      • 1

      #3
      Same issue

      I'm having the same issue. Anybody ever figure this out?

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by DSon
        My question is: is there a macro that can be used to get Zabbix to report (within a notification message) precisely which of the 3 items caused the trigger to fail?
        It is impossible to figure out in many cases.

        Suppose you have a trigger expression like A & B & C with complex functions like min/max/avg/etc.
        In this case we cannot say what exactly value caused the trigger to fail, because al A,B and C are evaluated as true.

        I like the idea in general, however I see no nice solution here.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        Working...