1 |
--- smeserver-megaraidmon-0.1/root/usr/bin/megaraidmon.disable_megacli_log 2008-11-25 11:59:43.000000000 +0100 |
2 |
+++ smeserver-megaraidmon-0.1/root/usr/bin/megaraidmon 2010-05-04 09:38:10.000000000 +0200 |
3 |
@@ -23,11 +23,11 @@ |
4 |
foreach my $lv (@logicals){ |
5 |
next unless $lv =~ /:/; |
6 |
my ($controler,$volume) = split(/:/,$lv); |
7 |
- my $state = `$megacli -LDInfo -L$volume -a$controler | /bin/grep State`; |
8 |
+ my $state = `$megacli -LDInfo -L$volume -a$controler -NoLog | /bin/grep State`; |
9 |
if ($state !~ m/Optimal/){ |
10 |
my $msg = "A degraded event has been found on the logical volume $lv\n"; |
11 |
$msg .= "Here's the complete message reported by MegaCLI:\n"; |
12 |
- $msg .= `$megacli -LDInfo -L$volume -a$controler`; |
13 |
+ $msg .= `$megacli -LDInfo -L$volume -a$controler -NoLog`; |
14 |
sendwarning($msg); |
15 |
} |
16 |
} |