Re: [Zope] Capturing Site Errors
Edmund Goppelt wrote I would like to receive an email everytime there is a Site Error, with the error, the offending URL and query string etc. How do you do this?
A standard_error_message that uses dtml-sendmail will do the trick. Anthony
I wouldnt do this - I got nailed by the NIMDA worm. 1000's of computers that caught it after sept. 11th were each accessing something like 11 wierd paths, which of course didn't exists, so my admin account was flooded with over 100K emails within a couple of days. I would recommend doing a little extra work and make it a form which has to be submitted by the user. Otherwise, just check the log files.
From: Anthony Baxter <anthony@interlink.com.au> Reply-To: Anthony Baxter <anthony@interlink.com.au> Date: Fri, 04 Jan 2002 14:22:26 +1100 To: Edmund Goppelt <goppelt@goppelt.net> Cc: zope@zope.org Subject: Re: [Zope] Capturing Site Errors
Edmund Goppelt wrote I would like to receive an email everytime there is a Site Error, with the error, the offending URL and query string etc. How do you do this?
A standard_error_message that uses dtml-sendmail will do the trick.
Anthony
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
marc lindahl wrote:
I wouldnt do this - I got nailed by the NIMDA worm. 1000's of computers that caught it after sept. 11th were each accessing something like 11 wierd paths, which of course didn't exists, so my admin account was flooded with over 100K emails within a couple of days.
I just tweaked Zope so it didn't barf on these ;-) cheers, Chris
On Fri, Jan 04, 2002 at 01:40:56AM -0500, marc lindahl wrote:
I wouldnt do this - I got nailed by the NIMDA worm. 1000's of computers that caught it after sept. 11th were each accessing something like 11 wierd paths, which of course didn't exists, so my admin account was flooded with over 100K emails within a couple of days.
Procmail filtering is a big help! Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
the low-tech solution that i put in place consisted of simply *commenting out* the dtml-sendmail piece in my standard_html_error page for a little while until the storm had passed... i personally always do the email upon "NotFound" because if you put the HTTP_REFERER info into the email you can locate stale links to your site and advise the webmaster of the remote site about it. the worm before that (don't remember the name, there's just way too many IIS exploits to ever keep track of...) used to look for default.ida only. for that i put an empty DTML method named default.ida in my site root. (well, it's not exactly empty, it contains an expletive, hoping some *&^% will read the default.ida file contents that were found by the worm...) jens On Friday, January 4, 2002, at 08:48 , Oleg Broytmann wrote:
On Fri, Jan 04, 2002 at 01:40:56AM -0500, marc lindahl wrote:
I wouldnt do this - I got nailed by the NIMDA worm. 1000's of computers that caught it after sept. 11th were each accessing something like 11 wierd paths, which of course didn't exists, so my admin account was flooded with over 100K emails within a couple of days.
Procmail filtering is a big help!
Oleg. -- Oleg Broytmann http://www.zope.org/Members/phd/ phd@phd.pp.ru Programmers don't die, they just GOSUB without RETURN.
On Fri, Jan 04, 2002 at 02:22:26PM +1100, Anthony Baxter wrote:
Edmund Goppelt wrote I would like to receive an email everytime there is a Site Error, with the error, the offending URL and query string etc. How do you do this?
A standard_error_message that uses dtml-sendmail will do the trick.
Works like a charm. Thank you. Is there a way of getting the traceback info. as well? -- Ed Goppelt
participants (6)
-
Anthony Baxter -
Chris Withers -
Edmund Goppelt -
Jens Vagelpohl -
marc lindahl -
Oleg Broytmann