w A4 and color A4/A3 counters
Message-ID: <551ac034.5Ok5sQgXmA7aP1c8%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: c37debf39bfb7142258a2a96cd738b9238686f7e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c37debf39bfb71…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 31 17:41:34 2015 +0200
#2185 canon_pages: added support for b/w A4 and color A4/A3 counters
---
.werks/2185 | 9 +++++++++
ChangeLog | 1 +
checks/canon_pages | 4 ++++
3 files changed, 14 insertions(+)
diff --git a/.werks/2185 b/.werks/2185
new file mode 100644
index 0000000..bf685a9
--- /dev/null
+++ b/.werks/2185
@@ -0,0 +1,9 @@
+Title: canon_pages: added support for b/w A4 and color A4/A3 counters
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i1
+Date: 1427816462
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index 5f1fcd4..537c6a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -152,6 +152,7 @@
* 2183 ps: allow levels of used RAM in percentage of total RAM of host...
* 2184 statgrab_mem: converted to the same logic as the other memory checks...
NOTE: Please refer to the migration notes!
+ * 2185 canon_pages: added support for b/w A4 and color A4/A3 counters
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/checks/canon_pages b/checks/canon_pages
index d323ecb..1783cd0 100644
--- a/checks/canon_pages
+++ b/checks/canon_pages
@@ -34,6 +34,10 @@ canon_pages_map = {
'color A4' : '123',
'print total' : '301',
'scan' : '501',
+
+ # These counters might be customer specific. This is a test:
+ 'color A4/A3' : '106',
+ 'b/W A4' : '109',
}
def inventory_canon_pages(info):