splunk实现微信告警
splunk微信告警脚本功能介绍
用于将splunk告警信息推送到微信企业号
https://github.com/XWJR-Ops/Splunk-WeChat-Alert
安装使用
环境要求
需要注册微信企业号
点击注册
使用
下载
git clone https://github.com/XWJR-Ops/Splunk-WeChat-Alert.git
复制脚本到执行位置
cd Splunk-WeChat-Alert
cp splunk.sh splunk.py /opt/splunk/bin/scripts
chown splunk.splunk /opt/splunk/bin/scripts/splunk*chmod 755 /opt/splunk/bin/scripts/splunk*
注意事项
微信企业号设置可以参考“zabbix微信报警的设置”:http://www.iyunv.com/thread-274232-1-1.html
不同之处是,本脚本采用了微信企业号标签的发送方式,而“zabbix微信脚本”采用的组织架构方式发送,具体参考微信接口文档。 我们测试了下实现告警自动创建Jira工作流
页:
[1]