Skip to content
Snippets Groups Projects
Commit 984b941f authored by ms217's avatar ms217
Browse files

by default megacli is generating a MegaSAS.log file which grows further with

every cron execution. The logfile can be disabled by using -NoLog
parent 87b3ba14
Branches
Tags
No related merge requests found
......@@ -283,7 +283,7 @@ class cronjob_monitor_raid extends cronjob {
if($retval === 0 || $retval64 === 0) {
$binary=@($retval === 0)?'megacli':'megacli64';
$state = 'ok';
$data['output'] = shell_exec($binary.' -LDInfo -Lall -aAll');
$data['output'] = shell_exec($binary.' -LDInfo -Lall -aAll -NoLog');
if (strpos($data['output'], 'Optimal') !== false) {
$this->_tools->_setState($state, 'ok');
} else if (strpos($data['output'], 'Degraded') !== false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment