Error notification on plone 4

I just want to receive an email notification when an error is reported in plone 4.

Any product ideas or any “instructions”?

thanks

+8
zope plone
source share
4 answers

You can easily customize the built-in email notification for Zope, but we found that adding the mailinglogger package makes emails a lot more manageable.

The package adds:

  • customizable and dynamic themes for sent messages
  • emails sent with custom headers for easy filtering
  • flood protection to ensure that the number of messages sent is not excessive.
  • authentication support for SMTP servers
  • configurable log entry filtering

The build recipe plone.recipe.zope2instance supports a mailbox out of the box; just define the mailinglogger variable in your [instance] and include the mailbox egg:

 [instance] recipe = plone.recipe.zope2instance eggs += mailinglogger # Other options go here mailinglogger = <mailing-logger> level warning flood-level 100000 smtp-server localhost from logger@example.com to error-receiver@example.com subject [ServerName Error] [%(hostname)s] %(levelname)s - %(line)s </mailing-logger> 

The package was invaluable to us in large clusters, where we configure additional variables for one instance to be included in the topic; we can see in which case the problem arose directly in the topic.

+11
source share

The configuration of the mail logger is documented at http://pypi.python.org/pypi/plone.recipe.zope2instance , but I think the email log notification is built into the latest releases of Zope2, so now you must add the following [instance] sections:

 event-log-custom = <email-notifier> from server@here.com to kdie@localhost subject "anything goes here" smtp-server 127.0.0.1 </email-notifier> 

(example from http://myzope.kedai.com.my/blogs/kedai/44 )

+5
source share
+3
source share

You need to add an email alert to your event log in the buildout.cfg file. Unfortunately, there is no way to add it to an existing logging configuration, but the following will mimic what plone.recipe.zope2instance does for the event log anyway

 event-log-custom = <logfile> path ${buildout:directory}/var/log/${:_buildout_section_name_}.log level INFO </logfile> <email-notifier> from server@here.com to admin@company.com subject "[Zope alert - ${:_buildout_section_name_}]" smtp-server localhost level error </email-notifier> 
+2
source share

All Articles