2 # Copyright (C) 2019 Ian Kelling
3 # SPDX-License-Identifier: AGPL-3.0-or-later
5 if [ -z "$BASH_VERSION" ]; then echo "error: shell is not bash" >&2; exit 1; fi
7 source /a
/bin
/errhandle
/err
13 for h
in tp.b8.nz vpn1 x2 x3.b8.nz frodo.b8.nz kd.b8.nz kw
; do
14 if [[ $HOSTNAME == "${h%%.*}" ]]; then
17 if c
=$
(timeout
1 ssh $h /usr
/sbin
/exiqgrep
-o 60 -c -b 2>/dev
/null |
awk '{print $1}' ) && [[ $c && $c != 0 ]]; then