We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7f1c84 commit 5e205c4Copy full SHA for 5e205c4
server/lib/classes/cron.d/100-monitor_raid.inc.php
@@ -295,6 +295,25 @@ public function onRunJob() {
295
}
296
297
298
+ /*
299
+ * Adaptec-RAID
300
+ */
301
+ system('which arcconf', $retval);
302
+ if($retval === 0) {
303
+ $state = 'ok';
304
+ $data['output'] = shell_exec('arcconf GETCONFIG 1 LD');
305
+ if(is_array($data['output'])) {
306
+ foreach ($data['output'] as $item) {
307
+ if (strpos($item, 'Logical device name : RAID') !== false) {
308
+ if (strpos($item, 'Optimal') !== false) {
309
+ $this->_tools->_setState($state, 'ok');
310
+ } else {
311
+ $this->_tools->_setState($state, 'critical');
312
+ }
313
314
315
316
317
318
$res = array();
319
$res['server_id'] = $server_id;
0 commit comments