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

Errors in zabbix template - Chassis by IPMI

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • None
    • Templates (T)
    • None

      Steps to reproduce:

      The Chassis by IPMI template, found at

      https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/server/chassis_ipmi/template_server_chassis_ipmi.yaml

      is buggy.

       

      It generates 6 triggers based upon IPMI threshold values, but it is using the wrong function in half (three) of  the trigger prototypes.

      Specifcially the triggers named

      • IPMI: {#SENSOR_ID} value is below critical low (less than {#SENSOR_LO_CRIT} for 5m)
      • IPMI: {#SENSOR_ID} value is below non-critical low (less than {#SENSOR_LO_WARN} for 5m)
      • IPMI: {#SENSOR_ID} value is below non-recoverable low (less than {#SENSOR_LO_DISAST} for 5m)

      According to those names they should only be firing when the sensor has been beloow the critical range for the last 5 minutes, bbut because they are defined using the min() function, they will fire when ANY value in the 5 minutes exceeds that threshold.

      The fix is to switch to using the max function in those trigger prototypes.

      • {{ {min(5m)}<{#SENSOR_LO_CRIT}}}
        * {{{min(5m)}

        <{#SENSOR_LO_WARN}}}

      • {{ {min(5m)}

        <{#SENSOR_LO_DISAST}}}

      should become

      • {{ {max(5m)}<{#SENSOR_LO_CRIT}}}
        * {{{max(5m)}

        <{#SENSOR_LO_WARN}}}

      • {{ {max(5m)}

        <{#SENSOR_LO_DISAST}}}

      This way it requires that ALL the values from the last 5 minutes are below those thresholds.

       

            zit Zabbix Integration Team
            Callie Calliope Clarke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: