Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
icinga
:
production
>
nagios-plugins-lsi
> check_megaraid_sas.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File check_megaraid_sas.diff of Package nagios-plugins-lsi
--- check_megaraid_sas.orig 2008-11-28 14:40:30.000000000 +0100 +++ check_megaraid_sas 2012-09-09 19:53:01.835615281 +0200 @@ -44,7 +44,7 @@ exit; } -my $megacli = 'sudo /usr/sbin/MegaCli'; +my $megacli = '/usr/sbin/MegaCli'; my ($adapters); @@ -78,7 +78,7 @@ } # Get the number of RAID controllers we have -open (ADPCOUNT, "$megacli -adpCount |") +open (ADPCOUNT, "$megacli -adpCount -NoLog |") || die "error: Could not execute MegaCli -adpCount"; while (<ADPCOUNT>) { @@ -91,7 +91,7 @@ ADAPTER: for ( my $adp = 0; $adp < $adapters; $adp++ ) { # Get the number of logical drives on this adapter - open (LDGETNUM, "$megacli -LdGetNum -a$adp |") + open (LDGETNUM, "$megacli -LdGetNum -a$adp -NoLog |") || die "error: Could not execute $megacli -LdGetNum -a$adp"; my ($ldnum); @@ -105,7 +105,7 @@ LDISK: for ( my $ld = 0; $ld < $ldnum; $ld++ ) { # Get info on this particular logical drive - open (LDINFO, "$megacli -LdInfo -L$ld -a$adp |") + open (LDINFO, "$megacli -LdInfo -L$ld -a$adp -NoLog |") || die "error: Could not execute $megacli -LdInfo -L$ld -a$adp"; my ($size, $unit, $raidlevel, $ldpdcount, $state); @@ -137,7 +137,7 @@ close LDINFO; # Get info on physical disks for this adapter - open (PDLIST, "$megacli -PdList -a$adp |") + open (PDLIST, "$megacli -PdList -a$adp -NoLog |") || die "error: Could not execute $megacli -PdList -a$adp"; my ($slotnumber,$fwstate);