Skip to content
Snippets Groups Projects
Commit 5e205c44 authored by Florian Schaal's avatar Florian Schaal
Browse files

FS#3837 - Adaptec-RAID in ISPConfig-Monitor (code) (wemaflo)

parent d7f1c84e
No related branches found
No related tags found
No related merge requests found
......@@ -295,6 +295,25 @@ class cronjob_monitor_raid extends cronjob {
}
}
/*
* Adaptec-RAID
*/
system('which arcconf', $retval);
if($retval === 0) {
$state = 'ok';
$data['output'] = shell_exec('arcconf GETCONFIG 1 LD');
if(is_array($data['output'])) {
foreach ($data['output'] as $item) {
if (strpos($item, 'Logical device name : RAID') !== false) {
if (strpos($item, 'Optimal') !== false) {
$this->_tools->_setState($state, 'ok');
} else {
$this->_tools->_setState($state, 'critical');
}
}
}
}
}
$res = array();
$res['server_id'] = $server_id;
......
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