Module: check_mk
Branch: master
Commit: c3e12c3b2253b26993cca8a341fd0e336b21ae91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c3e12c3b2253b2…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 22 19:07:19 2012 +0100
FIX: check_mk-hp_blade_psu.php: allow more than 4 power supplies
---
ChangeLog | 1 +
pnp-templates/check_mk-hp_blade_psu.php | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 4a06866..ef1fc26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -56,6 +56,7 @@
* ntp: do not check 'when' anymore since it can produce false
alarms.
* postfix_mailq: handle output with 'Total requests:' in last line
+ * FIX: check_mk-hp_blade_psu.php: allow more than 4 power supplies
Multisite:
* Added several missing localization strings
diff --git a/pnp-templates/check_mk-hp_blade_psu.php
b/pnp-templates/check_mk-hp_blade_psu.php
index 57a9d2d..ef5c11f 100644
--- a/pnp-templates/check_mk-hp_blade_psu.php
+++ b/pnp-templates/check_mk-hp_blade_psu.php
@@ -53,7 +53,7 @@ $def[0] = '';
$i = 0;
foreach($files AS $file) {
- $color = $colors[$i];
+ $color = $colors[$i % 4];
$name = str_replace('_', ' ', str_replace('.rrd', '',
$file));
$def[0] .= "DEF:var$i=$path/$file:$DS[1]:AVERAGE " ;