[Tutor] Help - server health check reporter

Russell Smith savtech138 at gmail.com
Fri Oct 1 01:26:16 CEST 2010


Hey guys,



I’m trying to put together a script using urllib2, smtplib and
stripogram/html2text which will use a healthcheck url, read the response
after loading it and then email me the results without any unwanted html
tags. I was able to do that but, when I get a timeout on one of the servers
the script breaks with an error response. I’m very new to python and I don’t
know how to take that error and have it sent as well, instead of breaking
the script. Any advice or links I can check out that might be helpful? I
appreciate it.


I can include the python code if needed though at this point I'm sure it is
not very "pythonic". {smile}


Regards,

-russ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100930/3ead3a26/attachment.html>


More information about the Tutor mailing list