From 6b6719443e2fa859f61e2fc3cff054e927c59635 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Mon, 02 Sep 2013 09:42:54 -0400 Subject: [PATCH] Fixed a issue in raid monitoring. Failed harddrives in software raid5 are not detected correctly. --- server/lib/classes/monitor_tools.inc.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/lib/classes/monitor_tools.inc.php b/server/lib/classes/monitor_tools.inc.php index 74d00ba..0b1caa6 100644 --- a/server/lib/classes/monitor_tools.inc.php +++ b/server/lib/classes/monitor_tools.inc.php @@ -1061,7 +1061,7 @@ /* fetch the next line */ $line = $tmp[$i]; - if ((strpos($line, '[U_]') !== false) || (strpos($line, '[_U]') !== false)) { + if ((strpos($line, 'U_]') !== false) || (strpos($line, '[_U') !== false) || (strpos($line, 'U_U') !== false)) { /* One Disk is not working. * if the next line starts with "[>" or "[=" then * recovery (resync) is in state and the state is -- Gitblit v1.9.1