Ad Widget

Collapse

Auto close event with zabbix trapper item?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Carl Fortin
    Junior Member
    • Oct 2016
    • 9

    #1

    Auto close event with zabbix trapper item?

    Hi,

    I'm trying to auto close an event if no data is received within a period of time. My item type is a zabbix trapper. The trigger is working and I get an alert when receiving 1. I'd like to be able acknowledge the problem automatically when no data is received after 1 minute. Since I do not clear the event by sending 0, is there a way to auto close it so the next time I send 1 I still receive an alert?

    I send the following to zabbix:

    zabbix_sender -z 192.168.0.36 -s "192.168.0.3" -k HighTask -o 1


    My item:



    My trigger:



    I'm using zabbix 3.

    I have also tried the following without success:

    {206.167.100.36:HighTask.last()}=1 and
    {206.167.100.36:HighTask.nodata(60)}=1
    Last edited by Carl Fortin; 03-02-2017, 19:44.
  • cvee.it
    Member
    • Nov 2010
    • 45

    #2
    Try either putting in the main expression (not recovery) something like my example of a warmstart trigger:

    (({TP_SNMP_TRAP_Catchall:snmptrap.fallback.regexp( SNMPv2-MIB::warmStart)})<>0)=1 and {TP_SNMP_TRAP_Catchall:snmptrap.fallback.nodata(18 0)}=0


    or consider just putting the by itself in the recovery expression.In the above example that has worked for many of my legacy triggers i have yet to migrate to 3.x standards for sometime.

    {206.167.100.36:HighTask.nodata(60)}=1

    Maybe change the above line to =0

    One of those combinations should sort you out.

    Comment

    • Carl Fortin
      Junior Member
      • Oct 2016
      • 9

      #3
      Thanx a lot it is working with the following expression:

      {206.167.100.36:HighTask.last()}>0 and {206.167.100.36:HighTask.nodata(60)}=0

      I have removed the recovery message.

      Comment

      Working...