minor bug fix
[distro-setup] / check-remote-mailqs
index 1b3a0297a3f0586ef0c2ad0ef2a6d178233a4113..edf63880bb4febd1a795d7ff6388796a48e3ebec 100755 (executable)
@@ -10,11 +10,11 @@ shopt -s nullglob
 shopt -s dotglob
 
 
-for h in tp.b8.nz vpn1 x2 x3.b8.nz frodo.b8.nz kd.b8.nz kw; do
+for h in tp.b8.nz vpn1 x2 x3.b8.nz frodo.b8.nz kd.b8.nz kw iankelling.org; do
   if [[ $HOSTNAME == "${h%%.*}" ]]; then
     continue
   fi
-  if c=$(timeout 1 ssh $h /usr/sbin/exiqgrep -o 60 -c -b 2>/dev/null | awk '{print $1}' ) && [[ $c && $c != 0 ]]; then
+  if c=$(timeout 1 ssh root@$h /b/ds/check-mailq 2>/dev/null ) && [[ $c ]]; then
     echo q:$h=$c
   fi
 done