Ad Widget

Collapse

Two Trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • korayak88
    Junior Member
    • Oct 2020
    • 19

    #1

    Two Trigger

    Hello Community
    I am monitoring disk usage with zabbix in my linux server.
    I have got a 2 triggers.
    If the usage > 80 and usage >90
    For example disk usage yesterday %81 and trigger running its okay >80
    Today disk usage %92 and the trigger >90 okay
    but i just want to display only one trigger >90 how can i close the other trigger (>80) if the disk usage grather than %90 ?
    That's mean the %80 trigger automaticly clossing when the the disk usaged >%90. And the zabbix display only one trigger %90.

  • vitS
    Member
    • Apr 2021
    • 43

    #2
    Hi

    Something like this:

    Trigge: {Server:vfs.fs.size[/,pfree].last(0)}<10 and {Server:vfs.fs.size[/,pfree].last()}>5 ( Just play with numbers in this case: free space left between 10 and 5 percent )

    Maybe it will help You

    Comment

    • korayak88
      Junior Member
      • Oct 2020
      • 19

      #3
      Hello Thanks for your return.
      I have fixed this like.

      Attached Files

      Comment

      • korayak88
        Junior Member
        • Oct 2020
        • 19

        #4
        Hello Thanks for your return
        Actually i have tested
        for example the disk usage equal 100 the trigger number 3 is running
        after i removed %1 something the trigger 3 recoveryed is succes and closed the trigger 3 and after the disk usage = 99, the trigger 2 is started running.
        Attached Files

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          Your recovery expressions are useless there.. They would only make difference, if you would set recovery to different (lower) values from the trigger activation level.
          Like that Disaster trigger.. it activates if value is over 99. So recovery being at same level is useless. Trigger will deactivate anyway, if value drops below 99..Setting recovery to 95 for example, will delay deactivation, until that value drops below 95...

          Comment

          • cyber
            Senior Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Dec 2006
            • 4807

            #6
            Yes, that is correct, but all that will work without those recovery expressions also.. Recovery expression is "additional condition to satisfy for resolving a trigger"... So both problem and recovery expressions have to be satisfied. Your trigger condition turns false when values drop below 99, so you don't have to add secondary (recovery) condition, that this has to fall below 99..

            Comment

            Working...