/process-healthy-checker

check if the process is alive and notify with mail

Primary LanguagePython

process-healthy-checker

check if the process is alive and notify with mail

如何使用

  1. 新建并设置 data.py 文件
  2. 运行 python process-checker.py
#!/usr/bin/env python
#-*- coding: utf-8 -*-

# qq 账号
user_account = ''

# qq 的 stmp code
stmp_code = ''

# 要检查的 process 的名字
process_names = ["getReview.py", "test"]

# email 的内容,content 为内容,subject 为主题, to_mail 为收件的邮箱地址
content = "process {name} is dead, fix it right now"
subject = "Process Healthy Checker"
to_mail = 'xxxx@qq.com'

如何设置 QQ 邮箱支持发邮件📧

参考这里:https://disease.novogene.org/topic/62/python使用qq邮箱发送邮件