iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix race condition
[distro-setup]
/
check-remote-mailqs
diff --git
a/check-remote-mailqs
b/check-remote-mailqs
index 1b3a0297a3f0586ef0c2ad0ef2a6d178233a4113..edf63880bb4febd1a795d7ff6388796a48e3ebec 100755
(executable)
--- a/
check-remote-mailqs
+++ b/
check-remote-mailqs
@@
-10,11
+10,11
@@
shopt -s nullglob
shopt -s dotglob
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 [[ $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
echo q:$h=$c
fi
done