From 5fd87d85c0bc0120fac042886e804835c82c0c58 Mon Sep 17 00:00:00 2001 From: halliday Date: Wed, 31 Jan 2024 09:21:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{SendCheckJobReport.py => SendEmail.py} | 0 检查作业成功率/check_job_sucessful.sh | 11 ++++++++--- 检查作业成功率/readme.txt | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) rename 检查作业成功率/{SendCheckJobReport.py => SendEmail.py} (100%) diff --git a/检查作业成功率/SendCheckJobReport.py b/检查作业成功率/SendEmail.py similarity index 100% rename from 检查作业成功率/SendCheckJobReport.py rename to 检查作业成功率/SendEmail.py diff --git a/检查作业成功率/check_job_sucessful.sh b/检查作业成功率/check_job_sucessful.sh index 714205f..ede9cd5 100644 --- a/检查作业成功率/check_job_sucessful.sh +++ b/检查作业成功率/check_job_sucessful.sh @@ -85,16 +85,22 @@ echo "-----------" >>$ROOT_DIR/check_report.txt # 需要检查的代理 # mh -check_sucessful "6.9长期mh_MySQL定时备份_13.167" "811da1a9258bb690d58aaef5aa958027" "长期任务-mysql物理多通道" +echo "===========mh================" >>$ROOT_DIR/check_report.txt +#check_sucessful "6.9长期mh_MySQL定时备份_13.167" "811da1a9258bb690d58aaef5aa958027" "长期任务-mysql物理多通道" +check_sucessful "6.9长期mh_MySQL定时备份_13.167" "124f3e5397ec196ae43f71d188450845" "长期任务-mysql物理多通道" check_sucessful "6.9长期mh_OraclePhysical定时备份_29.41" "effbff8590c4c69a33151fa4d4fff2e1" "长期Oracle多通道" check_sucessful "6.9长期mh_系统定时备份_29.33" "bd22ea57feecb5a7f96e67035c204e02" "长期系统" # ypy + +echo -e "\n===========ypy===============" >>$ROOT_DIR/check_report.txt check_sucessful "6.9长期MySQLCDM_linux_29.48_ypy" "50061b4e4f80fa802067209eb18a232f" "长期" check_sucessful "6.9长期OracleCDM备份_linux_29.40_ypy" "46117564f229b9b7f407b21aa5d7fa1c" "长期" check_sucessful "6.9长期分区_WIN_29.47_ypy" "d9f991a83017a2b4ad9161044f5fca8f" "长期" +check_sucessful "6.9长期OracleCLP备份_rac_ypy" "2737975f-15c3-4716-968a-fc8ab2e9f1fc" "长期" #zry +echo -e "\n===========zry===============" >>$ROOT_DIR/check_report.txt check_sucessful "6.9长期定时文件29.49_zry" "b1b4c1d1b276265ae78914f350e29f96" "多通道" check_sucessful "6.9长期定时文件29.49_zry" "b1b4c1d1b276265ae78914f350e29f96" "普通" check_sucessful "6.9长期副本文件CDM备份29.42_zry" "55037758a2f200826bff0061d6dbdb91" "文件CDM" @@ -102,9 +108,8 @@ check_sucessful "6.9长期副本文件CDM备份29.42_zry" "55037758a2f200826bf check_sucessful "6.9长期VMware备份_zry" "11BBF49B7B6E4CD4A079CD33BDB5F29F" "VMware长期" check_sucessful "6.9长期openstack备份" "76CAB9108D8747548805A209D77A9370" "长期" - echo "开始发送邮件" -python $ROOT_DIR/SendCheckJobReport.py +python $ROOT_DIR/SendEmail.py diff --git a/检查作业成功率/readme.txt b/检查作业成功率/readme.txt index 520b33e..a5e3849 100644 --- a/检查作业成功率/readme.txt +++ b/检查作业成功率/readme.txt @@ -9,9 +9,9 @@ 例如: check_sucessful "6.9长期mh_MySQL定时备份_13.167" "811da1a9258bb690d58aaef5aa958027" "长期任务-mysql物理多通道" -2. 修改SendCheckJobReport.py,指定收发件人的邮件地址 +2. 修改SendEmail.py,指定收发件人的邮件地址 -3. 将check_job_sucessful.sh和SendCheckJobReport.py上传到服务器 +3. 将check_job_sucessful.sh和SendEmail.py上传到服务器 4. 试运行一下脚本,看是否能正常运行 bash check_job_sucessful.sh