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

Contents of /rpms/smeserver-zabbix-agent/contribs7/smeserver-zabbix-agent-0.1-disable_megaraid_log.patch

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


Revision 1.1 - (show annotations) (download)
Mon May 3 16:42:06 2010 UTC (14 years ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-zabbix-agent-0_1-48_el4_sme, smeserver-zabbix-agent-0_1-43_el4_sme, smeserver-zabbix-agent-0_1-47_el4_sme, smeserver-zabbix-agent-0_1-46_el4_sme, smeserver-zabbix-agent-0_1-50_el4_sme, smeserver-zabbix-agent-0_1-45_el4_sme, smeserver-zabbix-agent-0_1-51_el4_sme, smeserver-zabbix-agent-0_1-44_el4_sme, smeserver-zabbix-agent-0_1-52_el4_sme, smeserver-zabbix-agent-0_1-42_el4_sme, smeserver-zabbix-agent-0_1-49_el4_sme, HEAD
* Mon May 03 2010 Daniel B. <daniel@firewall-services.com> 0.1-42
- disable MegaCli log (which can break monitoring if log file reaches 2GB)
- report CRITICAL if both CRITICAL and WARNING are found
- add Squid UserParameters (hit ratio, cache size, req per minute)

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