I’m sorry. I don’t get this check plugin. It’s full of weird code and pretends to define thresholds (even though they aren’t configurable via WATO) but that’s fake. Although the variable
smart_stats_default_levels = {
'realloc_events': (1, 1),
...
}
in the upper part of the check suggests there are thresholds for some values, that variable is never used.
A hint is even given in the check itself as a comment:
# TODO: Need to completely rework smart check. ...
So true. As it currently is, only two variables can trigger a CRIT: Available_Spare
and Reallocated_Event_Count
.
You may try the following: after this block:
if field == "Available_Spare":
state = 2 if value < ref_value else 0
hints = ["during discovery: %d (!!)" % ref_value] if value < ref_value else []
else:
state = 2 if value > ref_value else 0
hints = ["during discovery: %d (!!)" % ref_value] if value > ref_value else []
add the following code:
if field == "Helium_Level":
if value <= 30:
state = 2
elif value <= 50:
state = 1
else:
state = 0
I have no idea if that works and I don’t intend to re-write the check plugin to make it work and be configurable.