mirror of
https://github.com/thomas-krenn/check_lsi_raid.git
synced 2026-02-27 14:18:41 +01:00
Print the command that failed if an error occurs
This commit is contained in:
@@ -348,7 +348,7 @@ sub getControllerStatus {
|
||||
}
|
||||
return ($status, $statusMessage);
|
||||
} else {
|
||||
print "Invalid StorCLI command!\n";
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
}
|
||||
@@ -440,7 +440,7 @@ sub getLogicalDeviceStatus {
|
||||
}
|
||||
return ($status, $statusMessage);
|
||||
} else {
|
||||
print "Invalid StorCLI command!\n";
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
}
|
||||
@@ -647,7 +647,7 @@ sub getPhysDeviceStatus {
|
||||
}
|
||||
return ($status, $statusMessage);
|
||||
} else {
|
||||
print "Invalid StorCLI command!\n";
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
}
|
||||
@@ -772,7 +772,7 @@ sub getBBUStatus {
|
||||
}
|
||||
return ($status, $statusMessage);
|
||||
} else {
|
||||
print "Invalid StorCLI command!\n";
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
}
|
||||
@@ -817,7 +817,7 @@ sub getCVStatus {
|
||||
}
|
||||
return ($status, $statusMessage);
|
||||
} else {
|
||||
print "Invalid StorCLI command!\n";
|
||||
print "Invalid StorCLI command! ($command)\n";
|
||||
exit(STATE_UNKNOWN);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user