Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-27158

Trigger activates immediately instead of after 5 minutes when UPS switches to battery mode

XMLWordPrintable

    • Icon: Patch request Patch request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • None
    • None

      We are using the APC UPS by SNMP template to monitor our UPS device.
      The item we use is:
      Name: Output status  
      Type: SNMP agent  
      Key: output.status[upsBasicOutputStatus]  
      OID: 1.3.6.1.4.1.318.1.1.1.4.1.1.0  
      Update interval: 1m  

      The value mapping corresponds to the PowerNet-MIB, where:

      • 2 = On line
      • 3 = On battery

      We want the trigger to activate only if the UPS remains on battery for 5 minutes continuously (to avoid false alerts during short power flickers).

      We have tried the following trigger expressions:
      min(/APC UPS by SNMP/output.status[upsBasicOutputStatus],5m)=3

      min(/APC UPS by SNMP/output.status[upsBasicOutputStatus],{$SNMP.TIMEOUT})=3

      However, in both cases, the trigger is activated after only 30–40 seconds following a power outage, instead of after 5 minutes as expected.

      Our item update interval is 1 minute, so we expected Zabbix to evaluate the trigger condition only after five consecutive polls reporting the value 3.

      Question / Expected behavior:
      How can we correctly configure a trigger expression that will activate only if the UPS status remains 3 (on battery) for the entire 5 minutes?

            pzakrzewski Piotr Zakrzewski
            arsen_abrahamyan Arsen Abrahamyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: