mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
fix: fallback on smart_status for critical bit
This commit is contained in:
@@ -48,4 +48,7 @@ def normalize(smart):
|
|||||||
|
|
||||||
ret[target_name] = value
|
ret[target_name] = value
|
||||||
|
|
||||||
|
if ret["critical_warning"] == 0 and "smart_status" in smart:
|
||||||
|
ret["critical_warning"] = int(not smart["smart_status"]["passed"])
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|||||||
Reference in New Issue
Block a user