From: Alexander Barton Date: Fri, 10 Aug 2012 08:52:19 +0000 (+0200) Subject: Enhance output of "nagcollecttest" script X-Git-Url: https://arthur.barton.de/gitweb/?p=nagcollect.git;a=commitdiff_plain;h=d4f0ca11d8410517c49670082588c51648763f1b Enhance output of "nagcollecttest" script Now it displays "NO result" when the test script didn't produce any output and the nagcollect client wouldn't send anything to the server. --- diff --git a/client/bin/nagcollecttest b/client/bin/nagcollecttest index e31644f..4bcba08 100755 --- a/client/bin/nagcollecttest +++ b/client/bin/nagcollecttest @@ -34,6 +34,9 @@ fi SERVICE=""; STATUS=""; TEXT="" echo "Checking \"$tst\" ..." . "$tst" -echo "RESULT: $SERVICE=$STATUS \"$TEXT\"" + +[ -n "$STATUS" -o -n "$TEXT" ] \ + && echo "RESULT: $SERVICE=$STATUS \"$TEXT\"" \ + || echo "NO result ..." # -eof-