Exit with warning if no storage is attached to controller

This commit is contained in:
Georg Schönberger
2016-04-12 08:21:51 +02:00
parent 08c962765b
commit 877027a0e1

View File

@ -561,6 +561,10 @@ sub getPhysicalDevices{
}
}
else {
if(grep { /No drive _found/i } @output){
print "Warning (CTR Warn) [No storage attached] ($command)\n";
exit(STATE_WARNING);
}
print "Invalid StorCLI command! ($command)\n";
exit(STATE_UNKNOWN);
}