/[smecontribs]/rpms/smeserver-megaraidmon/contribs7/smeserver-megaraidmon-0.1-disable_megacli_log.patch
ViewVC logotype

Contents of /rpms/smeserver-megaraidmon/contribs7/smeserver-megaraidmon-0.1-disable_megacli_log.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue May 4 07:40:23 2010 UTC (14 years, 7 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-megaraidmon-0_1-2_el4_sme, HEAD
Error occurred while calculating annotation data.
* Tue May 04 2010 Daniel B. <daniel@firewall-services.com> 0.1-2.sme
- disable MegaCli log

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 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed