Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Module to limit email floods?by hbm (Hermit) |
on Oct 14, 2010 at 20:55 UTC ( [id://865350]=note: print w/replies, xml ) | Need Help?? |
I assume it is your script, and it is cron'd? I used to monitor roughly like this:
Thus, I'd get paged only if a problem persisted. With reliable "fixIt" and detection methods, and an appropriate cron schedule, that served me well. If your condition isn't programmatically fixable, I'd change that around to perhaps this:
Thus, you'd only get paged initially. Or you might also page yourself when the error is cleared; or check the timestamp of the indicator and page every hour; or whatever. (I remember a similar bill when first testing such scripts, despite "unlimited" texts on my pager...)
Update: The best way to limit alerts is to limit alert conditions...
In Section
Seekers of Perl Wisdom
|
|