[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [afnog] [Mailer-Daemon at mantse.gh.com: Mail delivery failed:returning message to sender]



On Fri, Oct 10, 2003 at 09:32:32PM +0100,
 Brian Candler <B.Candler at pobox.com> wrote 
 a message of 126 lines which said:

> Run it from cron every 10 minutes. 

VERY bad idea, IMHO. It will fill up your disk even faster. The
problem is that cron has no memory of the previous run. If cron
launches the script every ten minutes and the problem lasts two hours
during the lunch, you get twelve messages for nothing.

Instead, you should use a proper scheduler like mon
<URL:http://wwwkernel.org/sofwtare/mon/> which can:

* trigger the alarm only after N failures,
* only send the alarm every M minutes even when you monitor every N
  minutes (with M >> N),
* stop sending the alarms after N attempts (sort of automatically shut
  down the alarm).   

__________________________________________________
This is the Africa Network Operators' Group(AfNOG) 
technical discussion list.
The AfNOG website is: <http://www.afnog.org>