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

Errors in zabbix template - Chassis by IPMI

    XMLWordPrintable

Details

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

    Description

      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.

       

      Attachments

        Activity

          People

            igorbach Igor Gorbach
            Callie Calliope Clarke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: