From 94310cb95852cc2474cdbe3d828f07262422ebbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Fri, 6 Jun 2014 13:09:58 +0200 Subject: [PATCH] Print the command that failed if an error occurs --- check_lsi_raid | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/check_lsi_raid b/check_lsi_raid index 0eca5b4..e94e200 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -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); } }