X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=check-remote-mailqs;h=edf63880bb4febd1a795d7ff6388796a48e3ebec;hp=1b3a0297a3f0586ef0c2ad0ef2a6d178233a4113;hb=79b274fcd8bfa556133ab13270e84b40aebe8468;hpb=c578efcab3f35b96b1b3e4e7248f0fa24d815594 diff --git a/check-remote-mailqs b/check-remote-mailqs index 1b3a029..edf6388 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; 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