iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix
[distro-setup]
/
check-stale-alerts
diff --git
a/check-stale-alerts
b/check-stale-alerts
index 1ecb58bf761aed1cacb9140ac845792d03c46163..88fa0962823fab41b9dd16757c8cfb6dc7be3cd6 100755
(executable)
--- 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