From 424758edfcae1ed7c515c6a64450a766ae7737aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georg=20Sch=C3=B6nberger?= Date: Mon, 20 Oct 2014 13:09:41 +0200 Subject: [PATCH] Added example usage in help text --- check_lsi_raid | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check_lsi_raid b/check_lsi_raid index dfeb2dc..5e08ff0 100755 --- a/check_lsi_raid +++ b/check_lsi_raid @@ -154,7 +154,10 @@ user to your sudoers file (or create a new one in /etc/sudoers.d/).\n"; Please send an email to the tk-monitoring plugin-user mailing list: tk-monitoring-plugins-user\@lists.thomas-krenn.com if you have questions regarding use of this software, to submit patches, or -suggest improvements.\n"; +suggest improvements.\n +Example usage:\n +* check_lsi_raid -p /opt/MegaRAID/storcli/storcli64\n +* check_lsi_raid -p /opt/MegaRAID/storcli/storcli64\n -C 1"; exit(STATE_OK); } @@ -1227,6 +1230,7 @@ MAIN: { } if(!defined($storcli)){ print "Error: cannot find storcli executable.\n"; + print "Ensure storcli is in your path, or use the '-p ' switch!\n"; exit(STATE_UNKNOWN); } if($platform eq 'linux') {