Ad Widget

Collapse

How to do LAST 5 values are all xxx

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oliverm
    Senior Member
    • May 2006
    • 155

    #1

    How to do LAST 5 values are all xxx

    Is there a way to create a trigger which fires if the last 5 values are all 3 ?

    I suppose i could create a trigger that checks if the last 5 values TOTAL 15 (thats 5x3), but while it would work, it would also fire if the last 5 values were 0,0,0,0,15 which isn't what i want.

    Any ideas ?

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

    #2
    Pseudo expression: min(#5)=max(#5) & min(#5)=3
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • oliverm
      Senior Member
      • May 2006
      • 155

      #3
      Ta Al, that works, but what's it saying (in laymens terms) ?

      The minimum for the last 5 is the same as the max for the last 5 and the minimum is also 3 ?

      Or something ?

      Comment

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

        #4
        Originally posted by oliverm
        The minimum for the last 5 is the same as the max for the last 5 and the minimum is also 3 ?
        In other words, all five values are the same and equal to 3.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • oliverm
          Senior Member
          • May 2006
          • 155

          #5
          Alex,

          Should this work ?

          {myserver:status.min(#2)}={myserver:status.max(#2) } & {myserver:status.min(#2)}=2

          to make sure the last two status results are 2 rather than just the last one ?

          Olly

          Comment

          Working...