Zabbix报警 老是当成垃圾 收不到邮件 很郁闷
[root@yunwei-ceshi process_sh]# pwd
/usr/local/zabbix/etc/process_sh
[root@yunwei-ceshi process_sh]# vim jumpserver.sh
ps -ef | grep docker-pr | grep 2222 |wc -l
服务端
[root@zabbix alertscripts]# pwd
/usr/local/zabbix/alertscripts
[root@zabbix alertscripts]# vim SendEmail.sh
usr/local/bin/sendEmail -f suhao@126.com -t "3203054@qq.com" -s smtp.126.com -u "跳板机出问题了哈哈哈哈哈哈快上线啊" -o message-content-type=html -o message-charset=utf8 -xu suhao@126.com -xp jiaxin2 -m "$body"
/usr/local/bin/sendEmail -f suhao@126.com -t "gji@eatoys.com" -s smtp.126.com -u "跳板机出问题了哈哈哈哈哈哈快上线啊" -o message-content-type=html -o message-charset=utf8 -xu suhao@126.com -xp jiaxin2 -m "$body