Bug#499492: paniclog warning sent to admin should containt paniclog

Marc 'HE' Brockschmidt he at debian.org
Fri Sep 19 07:04:51 UTC 2008


Package: exim4
Version: 4.69-5
Severity: wishlist
Tags: patch

Heya,

When exim4 is sending mail about a non-empty paniclog, it should include
the last few lines from the log, so that the mailadmin knows if actual
panic is needed or getting coffee first is an option.

Too lazy to attach a real unified diff, but try this in cron.daily/exim4-base:
if ! printf "Subject: exim paniclog on %s has non-zero size\nTo: root\n\nexim paniclog /var/log/exim4/paniclog on %s has non-zero size, mail system might be broken:\n%s\n(last 10 lines)" "$(hostname --fqdn)" "$(hostname --fqdn)" "$(tail -n 10 /var/log/exim4/paniclog)"; ...

Thanks (this is annoying me so much that I would grant a freeze
exception for this),
Marc





More information about the Pkg-exim4-maintainers mailing list