Module: check_mk
Branch: master
Commit: a816d2f3db1ee6e069d2d68a947ce948fed08109
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a816d2f3db1ee6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jul 5 14:04:26 2013 +0200
FIX: Fixed label color of black toner perfometers when fuel is low
---
ChangeLog | 1 +
web/plugins/perfometer/check_mk.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2b49c8e..1bc80bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -247,6 +247,7 @@
* FIX: LDAP: Disabling use of referrals in active directory configuration
* FIX: Fixed missing roles in auth.php (in some cases) which resulted in
non visible pnp graphs and missing nagvis permissions
+ * FIX: Fixed label color of black toner perfometers when fuel is low
WATO:
* FIX: fix layout of Auxiliary tags table
diff --git a/web/plugins/perfometer/check_mk.py b/web/plugins/perfometer/check_mk.py
index db4eac7..706d5f4 100644
--- a/web/plugins/perfometer/check_mk.py
+++ b/web/plugins/perfometer/check_mk.py
@@ -500,7 +500,8 @@ def perfometer_check_mk_printer_supply(row, check_command,
perf_data):
fg_color = '#000000'
if 'black' in s or s[-1] == 'k':
colors = [ '#000000', '#6E6F00', '#6F0000' ]
- fg_color = '#ffffff'
+ if left >= 60:
+ fg_color = '#ffffff'
elif 'magenta' in s or s[-1] == 'm':
colors = [ '#fc00ff', '#FC7FFF', '#FEDFFF' ]
elif 'yellow' in s or s[-1] == 'y':