X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=check-stale-alerts;h=88fa0962823fab41b9dd16757c8cfb6dc7be3cd6;hb=e7c18f24afd8fdad2ba56030a3b4f83ab8926391;hp=1ecb58bf761aed1cacb9140ac845792d03c46163;hpb=0d806cf660d0fce3fcddb024c68dc098401714f2;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