Skip to content
Snippets Groups Projects
Commit abc09ddb authored by vogelor's avatar vogelor
Browse files

improvement of the RAID-State

parent a5c833b5
No related branches found
No related tags found
No related merge requests found
......@@ -636,6 +636,22 @@ class monitor_core_module {
/* both Disk are not working */
$state = $this->_setState($state, 'error');
}
if (strpos($line, '[UU]') !== false)
{
/* The disks are OK.
* if the next line starts with "[>" or "[=" then
* recovery (resync) is in state and the state is
* information instead of ok
*/
$nextLine = $tmp[$i+1];
if ((strpos($nextLine, '[>') === false) && (strpos($nextLine, '[=') === false)) {
$state = $this->_setState($state, 'ok');
}
else
{
$state = $this->_setState($state, 'info');
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment