xxxxxxxxxx
#告警脚本绝对路径(若配置脚本,无论是否配置过邮件,都会执行该脚本),可以为空,参考模板:server/template/sendMsg.sh
warnScript: /home/weixin.sh
xxxxxxxxxx
# -*- coding: utf-8 -*-
###SCRIPT_NAME:weixin.sh###
###send message from weixin for monitoring###
content=$1
content=${content//\ /}
time3=$(date "+%H:%M:%S")
content="$time3,$content"
echo "告警信息----$content------"
#告警信息其他处理1
/home/other.sh $content
#告警信息其他处理2
python /python/pythonWarn.py $content