Build precise queries to find exactly what you need
Press ESC to close
@bmerouze
Favorites0
Views
Projects0
I tried this plugin with LSIUtil-1.63. That worked well after doing 2 small fixes: @@ -40,7 +40,7 @@ $output = `$lsiutil -p 0 -a 0`; for (split /^/, $output) { - if ( m|^s*(d+)..*/proc/mpt/ioc| ) { + if ( m|^s*(d+)..*ioc| ) { push @controllers, $1; } } @@ -63,7 +63,7 @@ push @volumes, "No volume found"; } else { foreach my $volume_status ( @volumes ) { - $status = $ERRORS{'CRITICAL'} unless ( $volume_status =~ /^Volume d+ State: optimal, enabled$/ ); + $status = $ERRORS{'CRITICAL'} unless ( $volume_status =~ /Volume d+ State: optimal, enabled/ ); } } print "Ctrl $controller: ".join (' / ', @volumes)."n"; For info, the server I use is a Dell PowerEdge R310, with PERC H200 RAID controler
Reviewed 13 years ago