]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Make sure that we always print something to standard output, since right
authorRuss Allbery <rra@stanford.edu>
Wed, 5 May 2004 22:39:36 +0000 (22:39 +0000)
committerRuss Allbery <rra@stanford.edu>
Wed, 5 May 2004 22:39:36 +0000 (22:39 +0000)
now this check is periodically failing saying that no output was returned.

check_bos

index 867ccf003b5879ef538bf0b3b38d64945c7088a3..210cc79e2be0f06608a2de303da6a7f629fa0060 100755 (executable)
--- a/check_bos
+++ b/check_bos
@@ -77,6 +77,7 @@ if ($help) {
     exit 0;
 }
 if (@ARGV) {
+    print "Usage: $0 [-hv] [-t <timeout>] -H <host>\n";
     warn "Usage: $0 [-hv] [-t <timeout>] -H <host>\n";
     exit 3;
 }
@@ -90,7 +91,7 @@ alarm ($TIMEOUT);
 
 # Collect the bos output into a variable.
 unless (open (BOS, "$BOS status $host -noauth -long 2>&1 |")) {
-    warn "$0: cannot run rxdebug\n";
+    print "BOS UNKNOWN: cannot run bos\n";
     exit 3;
 }
 my @bos = <BOS>;