X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;ds=sidebyside;f=check-stale-alerts;h=88fa0962823fab41b9dd16757c8cfb6dc7be3cd6;hb=f5fe5af7aec9c23412c9c349e21c42f6c2208582;hp=1ecb58bf761aed1cacb9140ac845792d03c46163;hpb=d7551546ac323c5d4b49370c885646bcf96e959f;p=distro-setup diff --git a/check-stale-alerts b/check-stale-alerts index 1ecb58b..88fa096 100755 --- a/check-stale-alerts +++ b/check-stale-alerts @@ -21,3 +21,8 @@ for h in {li,bk,je}.b8.nz; do printf "%s\n" "$out" fi done + +# for .prom.$PID files, they will naturally exist when +# scripts like system-status get killed on reboot. +# Just clean them up here. +find /var/lib/prometheus/node-exporter -name '*[0-9]' -type f -mtime 9 -delete