iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
improve alerts
[distro-setup]
/
system-status
diff --git
a/system-status
b/system-status
index a36240ca24c631296d5d944da3a6d2251ab02c87..f39f03176fdae290843d45ea851641ade5b21056 100755
(executable)
--- a/
system-status
+++ b/
system-status
@@
-14,6
+14,8
@@
status_file=/dev/shm/iank-status
shopt -s nullglob
shopt -s dotglob
shopt -s nullglob
shopt -s dotglob
+lo() { /usr/local/bin/log-once -1 "$@"; }
+
write-status() {
chars=()
write-status() {
chars=()
@@
-24,16
+26,19
@@
write-status() {
glob=(/m/md/bounces/new/*)
if [[ -e $glob ]]; then
chars+=("BOUNCE!")
glob=(/m/md/bounces/new/*)
if [[ -e $glob ]]; then
chars+=("BOUNCE!")
+ lo bounce "message in /m/md/bounces/new"
fi
fi
- glob=(/m/md/alerts/new/*)
+ glob=(/m/md/alerts/new/*
/m/md/alerts/cur/*
)
if [[ -e $glob ]]; then
chars+=("ALERT!")
fi
if [[ -e /nocow/user/mailtest-failure ]]; then
chars+=("MAILPING!")
if [[ -e $glob ]]; then
chars+=("ALERT!")
fi
if [[ -e /nocow/user/mailtest-failure ]]; then
chars+=("MAILPING!")
+ lo mailping "mailtest-check didnt see mail from send-test-forward"
fi
if [[ -s /var/log/exim4/paniclog ]]; then
chars+=("PANIC!")
fi
if [[ -s /var/log/exim4/paniclog ]]; then
chars+=("PANIC!")
+ tail /var/log/exim4/paniclog | lo paniclog
fi
source /a/bin/bash_unpublished/source-state
fi
source /a/bin/bash_unpublished/source-state