/[smecontribs]/rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent-0.1-disable_megaraid_log.patch
ViewVC logotype

Annotation of /rpms/smeserver-zabbix-agent/contribs10/smeserver-zabbix-agent-0.1-disable_megaraid_log.patch

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


Revision 1.2 - (hide annotations) (download)
Thu Apr 1 15:11:49 2021 UTC (3 years, 7 months ago) by jpp
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
last fws version

1 brianr 1.1 --- smeserver-zabbix-agent-0.1/root/var/lib/zabbix/bin/megaraid-parser.pl.disable_megaraid_log 2010-05-03 18:19:42.000000000 +0200
2     +++ smeserver-zabbix-agent-0.1/root/var/lib/zabbix/bin/megaraid-parser.pl 2010-05-03 18:23:34.000000000 +0200
3     @@ -99,7 +99,7 @@
4     }
5    
6     # Get the number of RAID controllers we have
7     -open (ADPCOUNT, "$megacli -adpCount |")
8     +open (ADPCOUNT, "$megacli -adpCount -NoLog |")
9     || die "error: Could not execute MegaCli -adpCount";
10    
11     while (<ADPCOUNT>) {
12     @@ -112,7 +112,7 @@
13    
14     ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) {
15     # Get the number of logical drives on this adapter
16     - open (LDGETNUM, "$megacli -LdGetNum -a$adp |")
17     + open (LDGETNUM, "$megacli -LdGetNum -a$adp -NoLog |")
18     || die "error: Could not execute $megacli -LdGetNum -a$adp";
19    
20     my ($ldnum);
21     @@ -126,8 +126,8 @@
22    
23     LDISK: for ( my $ld = 0; $ld < $ldnum; $ld++ ) {
24     # Get info on this particular logical drive
25     - open (LDINFO, "$megacli -LdInfo -L$ld -a$adp |")
26     - || die "error: Could not execute $megacli -LdInfo -L$ld -a$adp";
27     + open (LDINFO, "$megacli -LdInfo -L$ld -a$adp -NoLog |")
28     + || die "error: Could not execute $megacli -LdInfo -L$ld -a$adp -NoLog";
29    
30     my ($size, $unit, $raidlevel, $ldpdcount, $spandepth, $state);
31     while (<LDINFO>) {
32     @@ -161,8 +161,8 @@
33     close LDINFO;
34    
35     # Get info on physical disks for this adapter
36     - open (PDLIST, "$megacli -PdList -a$adp |")
37     - || die "error: Could not execute $megacli -PdList -a$adp";
38     + open (PDLIST, "$megacli -PdList -a$adp -NoLog |")
39     + || die "error: Could not execute $megacli -PdList -a$adp -NoLog";
40    
41     my ($slotnumber,$fwstate);
42     PDISKS: while (<PDLIST>) {

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