Commit 558bf785 authored by tbrehm's avatar tbrehm

Fixed a issue in raid monitoring. Failed harddrives in software raid5 are not detected correctly.

parent 10ec1b92
...@@ -88,7 +88,7 @@ class cronjob_monitor_raid extends cronjob { ...@@ -88,7 +88,7 @@ class cronjob_monitor_raid extends cronjob {
/* fetch the next line */ /* fetch the next line */
$line = $tmp[$i]; $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. /* One Disk is not working.
* if the next line starts with "[>" or "[=" then * if the next line starts with "[>" or "[=" then
* recovery (resync) is in state and the state is * recovery (resync) is in state and the state is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment