diff --git a/check_lsi_raid b/check_lsi_raid index abc2f54..2cc1899 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -481,7 +481,7 @@ sub getPhysicalDevices{ my @output = `$command`; my @foundDevs; - if(checkCommandStatus(\@output)) { + if(checkCommandStatus(\@output)){ if($action eq "all") { my $currBlock; my $line_ref; @@ -555,6 +555,10 @@ sub getPhysicalDevices{ } } } + else { + print "Invalid StorCLI command! ($command)\n"; + exit(STATE_UNKNOWN); + } return \@foundDevs; }