[Distributed cross-platform monitoring system] linux, windows next sentence email-python script application

I spent some time learning python a while ago, and recently completed a project to monitor the basic information of the server, all to satisfy everyone’s desire for monitoring, a distributed system with special logs and alarms, the single server collection granularity is 1 time/1 Minutes, about 1440 entries a day, currently monitoring more than 20 servers, about 31,680 logs a day, now the single-point monitoring center server is more than enough in performance, it would be nice to have more servers to test, it is estimated that it can support up to 100 The level of server monitoring above.

 

Now I encounter a need to send messages to relevant personnel in real time when an alarm is discovered. Because the company's SMS gateway only bought Shanghai Telecom users without Shanghai Telecom's number, sweat one, so I had to send an email to implement it.

 

Support sending GB18030 encoded text content, any encoded attachments, and you can make appropriate modifications to support group sending.

 

 

Under windows xp:

example

 linux ubuntu , suse 下 :

1

Results received:

2

Guess you like

Origin blog.csdn.net/jrckkyy/article/details/5456462