]> git.michaelhowe.org Git - packages/a/afs-monitor.git/commitdiff
Add -H opt, strip out for loop
authorQuanah Gibson-Mount <quanah@stanford.edu>
Fri, 12 Dec 2003 23:56:54 +0000 (23:56 +0000)
committerQuanah Gibson-Mount <quanah@stanford.edu>
Fri, 12 Dec 2003 23:56:54 +0000 (23:56 +0000)
check_rxdebug

index 2907708341f69c7932998fcfb973be484e16cef7..5ac6ad2d7ddd60ae3e623e567ef2d03c4449e145 100755 (executable)
@@ -3,25 +3,23 @@
 
 use Getopt::Std;
 
-getopts ("t:");
-$Timeout= $opt_t || 60;
+getopts ("H:");
+$server = $opt_H;
 
 $rxdebug = '/usr/local/bin/rxdebug';
 @failures=();
 $hiWaterMark=8;
 
-foreach $server (@ARGV) {
-  # Get the output of rxdebug $server -allconn -rxstats
-  open(RXDEBUG, "$rxdebug $server -allconn -rxstats|")
-    || die("Can't open rxdebug\n");
-  $blocked{$server} = 0;
-  while (<RXDEBUG>) {
-      if ( /waiting_for_process/ ) {
-         $blocked{$server}++;
-      }
-  }
-  close(RXDEBUG);
+# Get the output of rxdebug $server -allconn -rxstats
+open(RXDEBUG, "$rxdebug $server -allconn -rxstats|")
+  || die("Can't open rxdebug\n");
+$blocked{$server} = 0;
+while (<RXDEBUG>) {
+    if ( /waiting_for_process/ ) {
+      $blocked{$server}++;
+    }
 }
+close(RXDEBUG);
 
 foreach $server (sort keys %blocked) {
    $blocked=$blocked{$server};