Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 848 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 848 Bytes

Wechat-Alert-for-Zabbix

zabbix微信告警脚本 参考文档:https://work.weixin.qq.com/api/doc#10167

程序编写环境:
os:centos7
python:2.7.5

本文档通过“touser”和“toparty”参数控制向用户或部门发送告警微信。执行如下:
启用toparty参数,向部门发送微信:
Image text

Image text

zabbix运行此脚本时需修改脚本所在目录属主和执行权限:

[root@zabbix-server alertscripts]# chown -R zabbix:zabbix /etc/zabbix/alertscripts/
[root@zabbix-server alertscripts]# chmod -R 755 /etc/zabbix/alertscripts/

详细搭建过程及测试:
http://blog.51cto.com/3241766/2108769