zabbix 微信报警

时间:2020-12-09 12:00:40   收藏:0   阅读:12
zabbix 微信报警:

login https://work.weixin.qq.com/
    creat application 
    find --corpid --agentid --corpsecret
grep alertscripts /etc/zabbix/zabbix_server.conf

cd /usr/lib/zabbix/alertscripts
wget https://raw.githubusercontent.com/OneOaaS/weixin-alert/master/weixin_linux_amd64

chmod 755 wechat
chown zabbix:zabbix wechat
wechat --corpid=wwXXXXXXXX92a0 --corpsecret=cHUP8PEInolvJUv5BnXJUwLKyKl8L9SY7vJ5Fl6NjQw --msg="您好</br>告警测试" --user=ZhaXXXXXXng --agentid=1000002

can follow by:
https://mp.weixin.qq.com/s?__biz=MzA5NjgwNzM0OQ==&mid=2650300170&idx=1&sn=029077f2c584db0e9f13b9d82e23094b&chksm=88a68fd0bfd106c6ae6eff19ddb20dca7e28042e7a9e3019ecafe64eb699aeb71c5e01ba9182&mpshare=1&scene=23&srcid=0605S1mOioqumLe4VodrSfK5#rd

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!