Ad Widget

Collapse

Trigger with count() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ADonecky
    Junior Member
    • Dec 2021
    • 8

    #1

    Trigger with count() function

    Not sure if it is a bug, that's why posting here

    Configured a trigger with expression
    Code:
    {192.168.1.1:trap.wrt.count(10s,Alarm)}>0
    and recovery expression
    Code:
    {192.168.1.1:trap.wrt.count(10m,Alarm)}=0
    trap.wrt is a zabbix trapper item.

    Got last trap with text "Alarm" at 16:31:46. As I understand, about 16:42 this event should have been resolved automatically (because of recovery expression). But it wasn't.

    Is this a bug or I am doing something wrong?

    Attaching screenshots of event details ant received trap list.

    Click image for larger version

Name:	sc2.png
Views:	308
Size:	21.4 KB
ID:	439064

    Click image for larger version

Name:	sc3.png
Views:	282
Size:	12.6 KB
ID:	439065 Click image for larger version

Name:	sc1.png
Views:	285
Size:	91.7 KB
ID:	439066
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Recovery expression is additional condition, which is taken to account after your problem expression has turned to False.
    It is not the way to close your event after 10m. It may be a way to keep it open for longer time than problem expression declares...
    Your problem expression cannot return to False, as you have not given new values to it, probably. (Docs) "Trigger status (the expression) is recalculated every time Zabbix server receives a new value that is part of the expression.". So you need to give some values here, which can make that expression false. Then maybe your recovery will even work...

    Comment

    • ADonecky
      Junior Member
      • Dec 2021
      • 8

      #3
      Thank you for your reply, problem solved.

      Comment

      Working...