Module: check_mk
Branch: master
Commit: b8d4ce64f99c72b0d215b795ac95bc079f7e68e5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b8d4ce64f99c72…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Tue Apr 2 12:01:32 2019 +0200
7388 FIX cisco_temperature: Non-functioning devices are now treated as CRIT instead of
UNKNOWN
CMK-1849
Change-Id: Idf3a290d232954bc668e36c8a54cee4041fbcfc7
---
.werks/7388 | 10 ++++++++++
checks/cisco_temperature | 4 +---
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/.werks/7388 b/.werks/7388
new file mode 100644
index 0000000..3b5870b
--- /dev/null
+++ b/.werks/7388
@@ -0,0 +1,10 @@
+Title: cisco_temperature: Non-functioning devices are now treated as CRIT instead of
UNKNOWN
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1554199236
+Class: fix
+
+
diff --git a/checks/cisco_temperature b/checks/cisco_temperature
index 4b5409f..67c7f8b 100644
--- a/checks/cisco_temperature
+++ b/checks/cisco_temperature
@@ -83,7 +83,7 @@ def parse_cisco_temperature(info):
'3': (2, "critical"),
'4': (2, "shutdown"),
'5': (3, "not present"),
- '6': (3, "not functioning"), # TODO: fix this to CRIT
+ '6': (2, "not functioning"),
}
description_info, state_info, levels_info, perfstuff = info
@@ -123,8 +123,6 @@ def parse_cisco_temperature(info):
'dev_state': map_states.get(sensorstate, (3, 'unknown[%s]' %
sensorstate))
}
- # TODO: entity_parsed contains sensors with status OK only and means sensors with
non-OK
- # status are not inventorized.
if sensorstate == '1':
scale = 10**int(magnitude)
scale *= 10**(-1 * cisco_entity_exponents[scalecode])