Packed Linux The executable under :https://download.csdn.net/download/zxstrive/13191648
One 、Python catalogue
- main.py python Main program or script , Cycle test ;
- property.py For reading configuration files , And put it into the properties of the class ;
- smtp.py It is used to send e-mail after the problem is detected and the command is executed or the problem is recovered ;
- handle.py Use requests Configured in the request attribute url Normal access , If it cannot be accessed, the restart command will be executed according to the configuration ;
- conf Properties profile .
Two 、 Introduction to attribute configuration file
[operations]
operate[0] = http://172.26.104.170:8380/rdsp-data-recv, docker restart rdsp-data-recv-8380, [email protected], timeout, 10
operate[1] = http://172.26.104.170:8381/rdsp-data-recv, docker restart rdsp-data-recv-8381, [email protected], timeout, 10
operate[2] =