-
Problem report
-
Resolution: Unresolved
-
Trivial
-
None
-
None
-
None
Steps to reproduce:
The Chassis by IPMI template, found at
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.