[checkmk-commits] smart agent plugin: Added some debug output

Lars Michelsen lm at mathias-kettner.de
Thu Sep 29 12:12:56 CEST 2016


Module: check_mk
Branch: master
Commit: b42751ccce8083570270ab2039c43b65b4d5480e
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b42751ccce8083570270ab2039c43b65b4d5480e

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Thu Sep 29 09:51:13 2016 +0200

smart agent plugin: Added some debug output

---

 agents/plugins/smart | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/agents/plugins/smart b/agents/plugins/smart
index e8141e7..404403f 100755
--- a/agents/plugins/smart
+++ b/agents/plugins/smart
@@ -93,6 +93,8 @@ if which smartctl > /dev/null 2>&1 ; then
 	    serial=AMCC_${serial}00000000000
 	    echo "$serial=$twaminor"
         done`
+    else:
+        echo "tw_cli not found" >&2
     fi
 
     echo '<<<smart>>>'
@@ -172,6 +174,7 @@ if which smartctl > /dev/null 2>&1 ; then
     if [ "$MegaCli_bin" != "unknown" ]; then
         megaraid_info "$MegaCli_bin"
     fi
-
+else
+    echo "ERROR: smartctl not found" >&2
 fi
 



More information about the checkmk-commits mailing list