1 |
vip-ire |
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>) { |