morfin108
2016-10-18 23:12:59 UTC
Hi,
I installed superlance and configured crashsms. crashsms is running:
crashsms RUNNING pid 21683, uptime 0:10:06
This what I added in supervisord.conf:
[eventlistener:crashsms]
command=crashsms --toEmail="***@email_to_sms_gateway.com"
--subject="Testing" --smtpHost="smtp.mailgun.org" --userName="
***@x.com" --password="xxxxxxx" --fromEmail="***@x.com"
events=PROCESS_STATE
I killed the process with supervisorctl signal 9 worker-1000 and this is
the supervisord.log (Still not getting any email):
worker-1000:worker-1000 exited unexpectedly 2016-10-18 16:29:00,313
2016-10-18 16:29:00,326 DEBG event 5 sent to listener crashsms
2016-10-18 16:29:00,326 BLAT read event caused by (stdout)>
2016-10-18 16:29:00,326 DEBG 'crashsms' stdout output:
RESULT 2
OKREADY
2016-10-18 16:29:00,327 DEBG crashsms: event was processed
2016-10-18 16:29:00,327 DEBG crashsms: BUSY -> ACKNOWLEDGED
2016-10-18 16:29:00,327 DEBG crashsms: ACKNOWLEDGED -> READY
2016-10-18 16:29:01,329 INFO success: worker-1000 entered RUNNING state,
process has stayed up for > than 1 seconds (startsecs)
The Class ProcessStateEmailMonitor LINE 110 logs when the E-mail is getting
sent:
self.write_stderr("Sending notification email:\nTo: %(to)s\n\
But nothing is written to the log. I guess it doesn't even hit there.
What am I missing?
Thanks.
I installed superlance and configured crashsms. crashsms is running:
crashsms RUNNING pid 21683, uptime 0:10:06
This what I added in supervisord.conf:
[eventlistener:crashsms]
command=crashsms --toEmail="***@email_to_sms_gateway.com"
--subject="Testing" --smtpHost="smtp.mailgun.org" --userName="
***@x.com" --password="xxxxxxx" --fromEmail="***@x.com"
events=PROCESS_STATE
I killed the process with supervisorctl signal 9 worker-1000 and this is
the supervisord.log (Still not getting any email):
worker-1000:worker-1000 exited unexpectedly 2016-10-18 16:29:00,313
2016-10-18 16:29:00,326 DEBG event 5 sent to listener crashsms
2016-10-18 16:29:00,326 BLAT read event caused by (stdout)>
2016-10-18 16:29:00,326 DEBG 'crashsms' stdout output:
RESULT 2
OKREADY
2016-10-18 16:29:00,327 DEBG crashsms: event was processed
2016-10-18 16:29:00,327 DEBG crashsms: BUSY -> ACKNOWLEDGED
2016-10-18 16:29:00,327 DEBG crashsms: ACKNOWLEDGED -> READY
2016-10-18 16:29:01,329 INFO success: worker-1000 entered RUNNING state,
process has stayed up for > than 1 seconds (startsecs)
The Class ProcessStateEmailMonitor LINE 110 logs when the E-mail is getting
sent:
self.write_stderr("Sending notification email:\nTo: %(to)s\n\
But nothing is written to the log. I guess it doesn't even hit there.
What am I missing?
Thanks.