Ad Widget

Collapse

Trigger after 3 attempts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andvsilva
    Member
    • Aug 2020
    • 39

    #1

    Trigger after 3 attempts

    HI,

    I have one problem with my trigger I read the doc: 1 Supported trigger functions [Zabbix Documentation 5.0] but I don't get why doesn't work.

    So I'm using Zabbix 5.0 and Host is the Switch DELL.

    I have the script to check the FANs, so after the script SH run, the return will be:

    When is OK = OK: All fans are OK.
    When is NOT OK = will be different of OK.

    Then I create a trigger like this:

    Code:
    {BemobiBemobi - TimBR - Switch PowerConnect:Check_PowerConnectSwitch["{$HOST_IP}","{$SNMP_COMMUNITY}","fans"].count(#3,"^(?!OK).+","regexp")}=3
    I tried change to:

    Code:
    {BemobiBemobi - TimBR - Switch PowerConnect:Check_PowerConnectSwitch["{$HOST_IP}","{$SNMP_COMMUNITY}","fans"].count(15m,"^(?!OK).+","regexp")}=3
    My item runs every 5 min, then I want to trigger after 3 attempts. The first one I understand that will trigger after 3 attempts and second will trigger after 15min or 3 attempts.

    Thanks a lot.
Working...