Ad Widget

Collapse

Trigger with two threshold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • respect
    Junior Member
    • Sep 2017
    • 13

    #1

    Trigger with two threshold

    Hello!
    I'm trying to make a trigger with two threshold but have a failure.
    The logic of work is
    1. when the item is above the first threshold we receive a warning message
    2. then when the item ia above the second threshold (which is higher than the first one) we receive a critical message
    3. when the item is decreasing and is below the second threshold but is above the first we receive a warning message
    4. and finally when the item is below the first threshold we receive OK message according our warning trigger

    How to realisi that ? Does Zabbix have neccessary tools? What do you think?
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    Originally posted by respect
    Hello!
    I'm trying to make a trigger with two threshold but have a failure.
    The logic of work is
    1. when the item is above the first threshold we receive a warning message
    2. then when the item ia above the second threshold (which is higher than the first one) we receive a critical message
    3. when the item is decreasing and is below the second threshold but is above the first we receive a warning message
    4. and finally when the item is below the first threshold we receive OK message according our warning trigger

    How to realisi that ? Does Zabbix have neccessary tools? What do you think?
    Try to read about "zabbix trigger dependencies".
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • respect
      Junior Member
      • Sep 2017
      • 13

      #3
      Originally posted by kloczek
      Try to read about "zabbix trigger dependencies".
      I've read about it but found ho help in my case.
      How can dependencies help me with second warning message after moving the item from critical zone to warning zone ? After I receive Ok for critical trigger and that's all.

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Originally posted by respect
        I've read about it but found ho help in my case.
        How can dependencies help me with second warning message after moving the item from critical zone to warning zone ? After I receive Ok for critical trigger and that's all.
        If you have threshold let's say 15% on trigger A and 5% on the trigger B on the same X[] item and current value of this metrics will be 35. if B trigger will have dependency on A in list of active triggers you will see only active one (B) trigger.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • respect
          Junior Member
          • Sep 2017
          • 13

          #5
          Originally posted by kloczek
          If you have threshold let's say 15% on trigger A and 5% on the trigger B on the same X[] item and current value of this metrics will be 35. if B trigger will have dependency on A in list of active triggers you will see only active one (B) trigger.
          No, I will see only trigger A.
          And that's ok.

          If then the metric goes to 12% I receive OK to trigger A. But I don't want to get it.Instead of it I want to get the message problem:trigger B. I want to see in messages how my metric moves.

          Comment

          • Semiadmin
            Senior Member
            • Oct 2014
            • 1625

            #6
            Just create 2 independent triggers
            trigger A: value >= 15%
            trigger B: value > 5% and value < 15%
            and you'll get all possible messages.

            Comment

            • respect
              Junior Member
              • Sep 2017
              • 13

              #7
              Originally posted by Semiadmin
              Just create 2 independent triggers
              trigger A: value >= 15%
              trigger B: value > 5% and value < 15%
              and you'll get all possible messages.
              In your case when the metric is 20% I'll get problem:trigger A and also OK:trigger B . I dont't want to receive that OK message) And I don't want to receive OK:trigger A when the metric is 10%. I want to get OK when everything is allright with the metric, when it is below 5%.

              Comment

              Working...