From 35cae04a73655116f70e173b7a7345bd3cb22078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Wed, 26 Jun 2013 09:47:30 +0200 Subject: [PATCH] Added newlines to exit unknown error messages --- check_lsi_raid | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/check_lsi_raid b/check_lsi_raid index 9aecc1e..e4984eb 100644 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -324,7 +324,7 @@ sub getControllerStatus { } return ($status, $statusMessage); } else { - print "Invalid StorCLI command!"; + print "Invalid StorCLI command!\n"; exit(STATE_UNKNOWN); } } @@ -408,7 +408,7 @@ sub getLogicalDeviceStatus { } return ($status, $statusMessage); } else { - print "Invalid StorCLI command!"; + print "Invalid StorCLI command!\n"; exit(STATE_UNKNOWN); } } @@ -609,7 +609,7 @@ sub getPhysDeviceStatus { } return ($status, $statusMessage); } else { - print "Invalid StorCLI command!"; + print "Invalid StorCLI command!\n"; exit(STATE_UNKNOWN); } } @@ -734,7 +734,7 @@ sub getBBUStatus { } return ($status, $statusMessage); } else { - print "Invalid StorCLI command!"; + print "Invalid StorCLI command!\n"; exit(STATE_UNKNOWN); } } @@ -761,14 +761,14 @@ sub getThresholds { if($thresholds[0] =~ /^\@([0-9]*)\:([0-9]*)$/) { @thresholds = ("in", $1, $2); } else { - print "Invalid temperature parameter!"; + print "Invalid temperature parameter!\n"; exit(STATE_UNKNOWN); } } elsif(substr($thresholds[0], 0, 1) eq "~") { if($thresholds[0] =~ /^\~\:([0-9]*)$/) { @thresholds = ("out", -273, $1); } else { - print "Invalid temperature parameter!"; + print "Invalid temperature parameter!\n"; exit(STATE_UNKNOWN); } } elsif(index($thresholds[0], ":") ne -1) { @@ -777,7 +777,7 @@ sub getThresholds { } elsif($thresholds[0] =~ /^([0-9]*)\:$/) { @thresholds = ("in", -273, ($1 - 1)); } else { - print "Invalid temperature parameter!"; + print "Invalid temperature parameter!\n"; exit(STATE_UNKNOWN); } } else { @@ -786,7 +786,7 @@ sub getThresholds { if(($thresholds[1] =~ /^(-?[0-9]*)$/) && ($thresholds[2] =~ /^(-?[0-9]*)$/)) { return @thresholds; } else { - print "Invalid temperature parameter!"; + print "Invalid temperature parameter!\n"; exit(STATE_UNKNOWN); } } @@ -894,7 +894,7 @@ MAIN: { } } if($found eq 0) { - print "No battery backup unit found for controller $controller!"; + print "No battery backup unit found for controller $controller!\n"; exit(STATE_UNKNOWN); } }