Discussion:
[Supervisor-users] mail notifications
Marcos Cano
2014-01-25 03:19:29 UTC
Permalink
hello is there anyway to tell supervisor to send an email on an event. (for
instance when a certain process (under supervisor) crashes or can not be
started )
Chris Watts
2014-01-25 13:49:14 UTC
Permalink
You can write event handlers that will fire on a variety of state events
and will include identifying information for the process that is
responsible for the event.

http://supervisord.org/events.html

within those handlers you can just use python to send emails, below is one
example.

http://www.nixtutor.com/linux/send-mail-through-gmail-with-python/
Post by Marcos Cano
hello is there anyway to tell supervisor to send an email on an event.
(for instance when a certain process (under supervisor) crashes or can not
be started )
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
Loading...