X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=mailtest-check;h=d5d30aa6ae2f275654ed391053bbaa1bafb87657;hb=9b27633e83a47256664df11f6b85e3aae887aa5c;hp=036aeff1a2faf981367d7ff69f9ebb98cff26a58;hpb=d6def754cd241538c61456536b52ee51cbd85b42;p=distro-setup diff --git a/mailtest-check b/mailtest-check index 036aeff..d5d30aa 100755 --- a/mailtest-check +++ b/mailtest-check @@ -28,11 +28,6 @@ getspamdpid() { done fi } -pr() { - if $doprom && [[ -e /var/lib/prometheus/node-exporter ]]; then - cat >>/var/lib/prometheus/node-exporter/mailtest-check.prom.$$ - fi -} #### begin arg processing #### @@ -81,6 +76,7 @@ esac main() { + local -a p_unexpected_spamd_results p_missing_dnswl p_last_usec case $HOSTNAME in bk) folders=(/m/md/{expertpathologyreview.com,amnimal.ninja}/testignore) @@ -291,8 +287,10 @@ EOF ;; esac done - pr <>$path + done + for l in "${p_missing_dnswl[@]}"; do + printf "%s\n" "$l" >>$path + done + for l in "${p_last_usec[@]}"; do + printf "%s\n" "$l" >>$path + done + mv $path $dir/mailtest-check.prom # note: node_textfile_mtime_seconds will tell us when this last happened. useful for debugging. fi }