Awesome ideas. On Wed, Dec 8, 2010 at 11:24, Roger Hoover <[email protected]> wrote:
> I think that's a good idea and for what it's worth, that's what > crashmailbatch does, not only for the reason you mentioned but also > b/c forking a process per alert can be very CPU intensive. > > Cheers, > > Roger > > On Wed, Dec 8, 2010 at 9:22 AM, David Bronke <[email protected]> wrote: > > Also, I had another idea for an enhancement to crashmail... I don't > > generally install sendmail on any of my machines, because it tends to be > too > > much of a pain to set up. Instead, I coded a simple email notification > > module in Python a while ago using the smtplib module, and we've been > using > > it on all the servers at my company for about a year now. The meat of it > is > > only about 10 lines of code, and I could easily stick that into crashmail > as > > a default method of sending emails, while keeping support for custom > > sendmail commands for those who use them. Also, this would allow us to > > specify the 'from' address directly in crashmail instead of having to use > > sendmail's command line to do that. > > > > On Tue, Dec 7, 2010 at 17:37, Roger Hoover <[email protected]> > wrote: > >> > >> FYI, I recently added a program to superlance called crashmailbatch > >> which will batch up alerts during a time interval instead of sending > >> an email for each one. > >> > >> On Tue, Dec 7, 2010 at 3:10 PM, David Bronke <[email protected]> > wrote: > >> > Cool, thanks! I'm working on a patch for a few minor things in > crashmail > >> > (unused variables, incorrect references to the file being 'httpok', > and > >> > some > >> > other doc fixes) and to the README; I'll post it when I've completed > it. > >> > > >> > > >> > On Tue, Dec 7, 2010 at 16:08, Jason Koppe <[email protected]> wrote: > >> >> > >> >> Here's what I use. crashmail notifies notify-on-crash (-m) when any > >> >> child > >> >> process exits unexpectedly (-a) and adds the hostname to the subject > >> >> line > >> >> (-o). I set the from address with sendmail so it is consistent > across > >> >> all > >> >> of my environments and makes it through my mail provider. > >> >> > >> >> [eventlistener:crashmail] > >> >> command=/usr/bin/crashmail -o hostname -a -m > [email protected] > >> >> -s > >> >> '/usr/sbin/sendmail -t -i -f [email protected]' ; the > program > >> >> (relative uses PATH, can take args) > >> >> events=PROCESS_STATE ; event notif. types to subscribe to > >> >> (req'd) > >> >> > >> >> > >> >> > environment=SUPERVISOR_USERNAME='admin',SUPERVISOR_PASSWORD='password',SUPERVISOR_SERVER_URL=' > http://hostname:9001' > >> >> ; process environment additions > >> >> > >> >> > >> >> On Tue, Dec 7, 2010 at 15:53, David Bronke <[email protected]> > wrote: > >> >>> > >> >>> The documentation for crashmail seems to be nearly nonexistent, and > >> >>> I'm > >> >>> confused as to how to use it... The only docs I can find are in the > >> >>> script > >> >>> itself, but the command listed in the example supervisord config > >> >>> section is > >> >>> for paster, not crashmail. Is this actually the correct command to > >> >>> use? If > >> >>> so, what should the contents of 'myserve.ini' be? > >> >>> I'd like to figure out how to use all the superlance plugins so the > >> >>> current README.txt can be updated... once I've worked through all > the > >> >>> issues > >> >>> I find, I'll submit a patch. > >> >>> Thanks! > >> >>> _______________________________________________ > >> >>> Supervisor-users mailing list > >> >>> [email protected] > >> >>> http://lists.supervisord.org/mailman/listinfo/supervisor-users > >> >>> > >> >> > >> >> > >> >> > >> >> -- > >> >> Jason Koppe > >> >> [email protected] > >> >> (210) 445-8242 > >> > > >> > > >> > _______________________________________________ > >> > Supervisor-users mailing list > >> > [email protected] > >> > http://lists.supervisord.org/mailman/listinfo/supervisor-users > >> > > >> > > > > > > -- Jason Koppe [email protected] (210) 445-8242
_______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
