X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-remote-mailqs;fp=check-remote-mailqs;h=6e9cf7c2cebbd1cfde4df4fe0d971dd9b1802055;hb=40dd151ec6ba75633c74568da59e35a45351f194;hp=3caaa61be67db995ba291b24038937cd299e7c8b;hpb=7e673f2615101982a17ffa0e23cb10b5b3803f07;p=distro-setup diff --git a/check-remote-mailqs b/check-remote-mailqs index 3caaa61..6e9cf7c 100755 --- a/check-remote-mailqs +++ b/check-remote-mailqs @@ -27,8 +27,8 @@ for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do if [[ -s $statefile ]]; then logsec=$(date +%s -d "$(head -n1 $statefile | awk '{print $1,$2}')") nowsec=$(date +%s) - if (( logsec < nowsec - 60*60*48 )); then - echo $0: host $h ssh /usr/local/bin/check-mailq fail for over 48 hours + if (( logsec < nowsec - 60*60*20 )); then + echo $0: host $h ssh /usr/local/bin/check-mailq fail for over 20 hours fi fi printf "%s\n" "$c" | ts "%F %T" >> $statefile