X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-remote-mailqs;h=527780964b520a68947f25f3c0a2d64779e2d368;hb=77917a8fbf2032a8b2634a1b3de0879ec45cf213;hp=1b3a0297a3f0586ef0c2ad0ef2a6d178233a4113;hpb=c578efcab3f35b96b1b3e4e7248f0fa24d815594;p=distro-setup diff --git a/check-remote-mailqs b/check-remote-mailqs index 1b3a029..5277809 100755 --- a/check-remote-mailqs +++ b/check-remote-mailqs @@ -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 l2.b8.nz; 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