Module: check_mk
Branch: master
Commit: b566b32c54dc864a9828f69dac8bd7dd74b6d84d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b566b32c54dc86…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Nov 12 17:24:52 2018 +0100
6635 FIX printer_alerts: Fix handling for Sleep state
Some printers report states not defined in the MIB. A
reasonably common case appears to be the printer going
to sleep, which should be treated as OK instead
of UNKNOWN.
Change-Id: I40d7f84557db9f386b4fd66c9818ceb772fe6ca7
---
.werks/6635 | 14 ++++++++++++++
checks/printer_alerts | 1 +
2 files changed, 15 insertions(+)
diff --git a/.werks/6635 b/.werks/6635
new file mode 100644
index 0000000..0be137a
--- /dev/null
+++ b/.werks/6635
@@ -0,0 +1,14 @@
+Title: printer_alerts: Fix handling for Sleep state
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1542039777
+
+Some printers report states not defined in the MIB. A
+reasonably common case appears to be the printer going
+to sleep, which should be treated as OK instead
+of UNKNOWN.
diff --git a/checks/printer_alerts b/checks/printer_alerts
index b9988b6..5062a2e 100644
--- a/checks/printer_alerts
+++ b/checks/printer_alerts
@@ -175,6 +175,7 @@ printer_code_map = {
printer_alerts_text_map = {
'Energiesparen' : 0,
+ 'Sleep' : 0,
}
def inventory_printer_alerts(info):