add geekshed irc
[distro-setup] / check-remote-mailqs
index b47810162fa14f7d26aff69d294c0ae17576f953..6e9cf7c2cebbd1cfde4df4fe0d971dd9b1802055 100755 (executable)
@@ -9,7 +9,8 @@ source /a/bin/errhandle/err
 shopt -s nullglob
 shopt -s dotglob
 
-for h in bk je li frodo kwwg x3wg x2wg kdwg; do
+# this list duplicated in brc2 ralerts
+for h in bk je li frodo kwwg x3wg x2wg kdwg sywg; do
   statedir=/b/bash_unpublished/mailq-state
   statefile=$statedir/$h
   [[ -d $statedir ]] || continue
@@ -26,8 +27,8 @@ for h in bk je li frodo kwwg x3wg x2wg kdwg; 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