Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
bmerouze
bybmerouze, May 1, 2012
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
@@ -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