Skip to content

Commit 984b941

Browse files
committed
by default megacli is generating a MegaSAS.log file which grows further with
every cron execution. The logfile can be disabled by using -NoLog
1 parent 87b3ba1 commit 984b941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/lib/classes/cron.d/100-monitor_raid.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ public function onRunJob() {
283283
if($retval === 0 || $retval64 === 0) {
284284
$binary=@($retval === 0)?'megacli':'megacli64';
285285
$state = 'ok';
286-
$data['output'] = shell_exec($binary.' -LDInfo -Lall -aAll');
286+
$data['output'] = shell_exec($binary.' -LDInfo -Lall -aAll -NoLog');
287287
if (strpos($data['output'], 'Optimal') !== false) {
288288
$this->_tools->_setState($state, 'ok');
289289
} else if (strpos($data['output'], 'Degraded') !== false) {

0 commit comments

Comments
 (0)