X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mailtest-check;h=363401780546c8849ded6acedf7242cd0adfbaec;hb=935d88c091765b6aafdfc9f3d62d0dc377e5ff93;hp=3d4d8a4cee7d86ef7af0e02e7b45fcbb38969236;hpb=1f92f5f3fc715cc3fd55cf8aefacce9d130331de;p=distro-setup diff --git a/mailtest-check b/mailtest-check index 3d4d8a4..3634017 100755 --- a/mailtest-check +++ b/mailtest-check @@ -96,9 +96,12 @@ pr() { cat >>/var/lib/prometheus/node-exporter/mailtest-check.prom.$$ fi } -pr </var/lib/prometheus/node-exporter/mailtest-check.prom.$$ < 0 )) EOF +fi e spamdpid: $spamdpid if [[ ! $spamdpid ]]; then echo $HOSTNAME mailtest spamd pid not found. systemctl status spamassassin: @@ -212,7 +215,7 @@ for folder in ${folders[@]}; do fi # if $slow fi # if [[ $latest ]] - now=$(date +%s) + now=$EPOCHSECONDS limit=$(( now - 60 * min_limit )) age_sec=$(( now - last_sec )) e $((age_sec / 60)):$(( age_sec % 60 )) ago. to:$to from:$from $latest