Ad Widget

Collapse

Triggers Problems - last value count

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Claudio75Cre
    Junior Member
    • Mar 2020
    • 8

    #1

    Triggers Problems - last value count

    I'm monitoring a web scenario with related RespCode and RespTime items.

    I have create a trigger that checks the site is failure for a period of count.

    and I created the following alert:

    Code:
    {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#10)}<>200
    or
    {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#5)}>60​
    but on the first occurrence other than 200 or greater than 60 seconds, the system goes into alert.

    I searched on the internet and also in the forum and found the following ticket:​ https://www.zabbix.com/forum/zabbix-...fferent-from-x

    but the proposed solution does not work for me (at the first occurrence, the alert in problem state)

    Code:
    2022-12-19 15:27:47    200
    2022-12-19 15:26:47    200
    2022-12-19 15:25:47    200
    2022-12-19 15:24:46    200
    2022-12-19 15:23:45    200
    2022-12-19 15:22:45    200
    2022-12-19 15:21:45    200
    2022-12-19 15:20:45    200
    2022-12-19 15:19:44    200
    [B]2022-12-19 15:18:43    404[/B]
    2022-12-19 15:17:43    200
    2022-12-19 15:16:43    200
    2022-12-19 15:15:43    200
    2022-12-19 15:14:39    200
    2022-12-19 15:13:39    200
    2022-12-19 15:12:38    200
    2022-12-19 15:11:38    200​
    I want the control to verify that all 10 controls are in KO state (not 200 or greater than 60 seconds).

    Currently to solve this problem i created a multiple control:

    Code:
    ({WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#10)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#9)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#8)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#7)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#6)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#5)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#4)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#3)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#2)}<>200
     and {WebSite Zabbix:web.test.rspcode[Zabbix,Zabbix].last(#1)}<>200)
      or ( {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#5)}>60
     and {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#4)}>60
     and {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#3)}>60
     and {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#2)}>60
     and {WebSite Zabbix:web.test.time[Zabbix,Zabbix,resp].last(#1)}>60)​
    This Alert works perfectly, but I don't like it aesthetically, do you have any suggestions?

    I also tried the min or max function, but I always have the same problem
Working...