Ad Widget

Collapse

Trigger for multiple severity levels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doub
    Junior Member
    • Jan 2014
    • 12

    #1

    Trigger for multiple severity levels

    Hi,

    I would like to implement a generic trigger for a file system size item.
    It should be generic in a way that by receiving a value of less than 10% a Warning should be generated and in case of a value less than 5% an Average. I cloned the 10% Trigger in -Trigger prototypes of Mounted filesystem discovery- and changed it to 5% but this does not work out well as I receive two alerts. One for 10% and one for 5% but I would like to have it changed generically from 10% to 5% so it is visible in the Dashboard view just once.

    Any help is appreciated.
  • zillions
    Junior Member
    • Jan 2013
    • 22

    #2
    This should be possible. Basically you want to setup a trigger depency between your two triggers. You want to make it so that the 10% trigger is dependent on the 5% trigger. This way, if the 5% trigger is tripped, the 10% won't fire, because the dependency isn't met.

    Look at the documentation here, as it explains how it works:

    The example at the end makes it a bit easier to grasp.

    Comment

    • chojin
      Member
      Zabbix Certified Specialist
      • Jul 2011
      • 64

      #3
      When using trigger prototypes used in low level discovery, you can't make them dependent on each other (ZBXNEXT-1229) and will have to integrate the dependency logic inside your trigger expression:

      Trigger for 10%:
      Code:
      ( item.last<10 || item.last()=10 ) && item.last()>5
      Trigger for 5%:
      Code:
      item.last()<5 || item.last()=5

      Comment

      • doub
        Junior Member
        • Jan 2014
        • 12

        #4
        @chojin:
        Thanks, that's what I meant - the dependencies tab is not available for trigger prototypes. I will try the trigger expressions as described by you.

        Comment

        Working...