mostly t11 fixes
[distro-setup] / check-stale-alerts
1 #!/bin/bash
2
3
4 if [[ ! -e /dev/shm/iank-status ]]; then
5 exit 0
6 fi
7 eval $(< /dev/shm/iank-status)
8
9 out=$(find /var/local/cron-errors /home/iank/cron-errors /sysd-mail-once-state -type f)
10 if [[ $out ]]; then
11 echo HOSTNAME: $HOSTNAME
12 printf "%s\n" "$out"
13 fi
14 if [[ $HOSTNAME != "$MAIL_HOST" ]]; then
15 exit 0
16 fi
17 for h in {li,bk,je}.b8.nz; do
18 out=$(ssh $h find /m/md/bounces/new /var/local/cron-errors /home/iank/cron-errors /sysd-mail-once-state -type f)
19 if [[ $out ]]; then
20 echo $h:
21 printf "%s\n" "$out"
22 fi
23 done