Module: check_mk
Branch: master
Commit: 02f06fbbaf62c721a62b6571d07c5cf859a8a52d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02f06fbbaf62c7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Dec 3 11:37:55 2014 +0100
#1590 FIX printer_supply_ricoh: Fixed broken check
---
.werks/1590 | 9 +++++++++
ChangeLog | 1 +
checks/printer_supply_ricoh | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/1590 b/.werks/1590
new file mode 100644
index 0000000..fc5e80e
--- /dev/null
+++ b/.werks/1590
@@ -0,0 +1,9 @@
+Title: printer_supply_ricoh: Fixed broken check
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.5i7
+Date: 1417603065
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index cf8be8c..567efd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -55,6 +55,7 @@
* 1572 FIX: Sample configs, plugins etc. for windows agent use windows linebreaks
now...
* 1575 FIX: vSphere Monitoring works with RedHat 5.x now...
* 1584 FIX: winperf_if: Fixed checks of interfaces with equal names but one with
index...
+ * 1590 FIX: printer_supply_ricoh: Fixed broken check
Multisite:
* 1508 Allow input of plugin output and perfdata when faking check results...
diff --git a/checks/printer_supply_ricoh b/checks/printer_supply_ricoh
index d90510d..f7384f1 100644
--- a/checks/printer_supply_ricoh
+++ b/checks/printer_supply_ricoh
@@ -40,7 +40,7 @@ def check_printer_supply_ricoh(item, params, info):
state = 2
elif level < warn:
state = 1
- message = "Remaining: %s%%%s (levels at %d%%/%d%%) " % (level,
label, warn, crit)
+ message = "Remaining: %s%% (levels at %d%%/%d%%) " % (level, warn,
crit)
perfdata = [ ("level", level, warn, crit, 0, 100)]
return (state, message, perfdata)
return(3, "Supply information not found")