Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
5e205c44
Commit
5e205c44
authored
Nov 29, 2015
by
Florian Schaal
Browse files
FS#3837 - Adaptec-RAID in ISPConfig-Monitor (code) (wemaflo)
parent
d7f1c84e
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/cron.d/100-monitor_raid.inc.php
View file @
5e205c44
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment