diff --git a/check_lsi_raid b/check_lsi_raid index 60eaa30..9a48587 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -1245,7 +1245,9 @@ MAIN: { print "Error: cannot find sudo executable.\n"; exit(STATE_UNKNOWN); } - $storcli = $sudo.' '.$storcli; + if($> != 0){ + $storcli = $sudo.' '.$storcli; + } } } # Print storcli version if available