X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=blobdiff_plain;f=check-remote-mailqs;h=df67a041544c7e049642462c4ac9bc39757c7d05;hp=d37ec7aa7b368ee9a0b85a2445cb419ddaa07199;hb=6cc73025405b7a540eec371d1d8f7d9d13d8e019;hpb=56c55d8e02cdd6ec67d2fe53cc03785d8876442e diff --git a/check-remote-mailqs b/check-remote-mailqs index d37ec7a..df67a04 100755 --- a/check-remote-mailqs +++ b/check-remote-mailqs @@ -26,8 +26,16 @@ for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do else if [[ -s $statefile ]]; then logsec=$(date +%s -d "$(head -n1 $statefile | awk '{print $1,$2}')") - if (( logsec < EPOCHSECONDS - 60*60*20 )); then - echo $0: host $h ssh /usr/local/bin/check-mailq fail for over 20 hours + case h in + frodo) + hours=200 + ;; + *) + hours=20 + ;; + esac + if (( logsec < EPOCHSECONDS - 60*60*hours )); then + echo $0: host $h ssh /usr/local/bin/check-mailq fail for over $hours hours fi fi printf "%s\n" "$c" | ts "%F %T" >> $statefile