Module: check_mk
Branch: master
Commit: b0488c4cf3fe133af79c559290e90b42a846078f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b0488c4cf3fe13…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Thu Jun 8 14:14:15 2017 +0200
4799 FIX printer_input: Make check work with newer revisions of the Printer-MIB
An extension of the syntax for the capacity unit was previously not handled
by the check. This has been fixed.
Change-Id: I2051c5847c2abb1fb81f4e22a3cbaf86fa267add
---
.werks/4799 | 13 +++++++++++++
checks/printer_io.include | 1 +
2 files changed, 14 insertions(+)
diff --git a/.werks/4799 b/.werks/4799
new file mode 100644
index 0000000..726b2be
--- /dev/null
+++ b/.werks/4799
@@ -0,0 +1,13 @@
+Title: printer_input: Make check work with newer revisions of the Printer-MIB
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.5.0i1
+Date: 1496923932
+
+An extension of the syntax for the capacity unit was previously not handled
+by the check. This has been fixed.
+
diff --git a/checks/printer_io.include b/checks/printer_io.include
index dc8c487..7762b91 100644
--- a/checks/printer_io.include
+++ b/checks/printer_io.include
@@ -27,6 +27,7 @@
printer_io_units = {
'-1' : 'unknown',
'0' : 'unknown',
+ '2' : 'unknown', # defined by PrtCapacityUnitTC used in newer
revs.
'3' : '1/10000 in',
'4' : 'micrometers',
'8' : 'sheets',