zabbix之微信告警
2018-03-15 00:00
916 查看
[BEGIN] 2018/3/15 11:51:33 Last login: Thu Mar 15 09:05:29 2018 from 10.2.202.39 #不知alertscripts 目录存放在那,采用查找方式 [root@localhost ~]# find / -name alertscripts find: ‘/run/user/42/gvfs’: Permission denied /usr/lib/zabbix/alertscripts #进入该目录 [root@localhost ~]# cd /usr/lib/zabbix/alertscripts #下载脚本包 [root@localhost alertscripts]# wget https://dl.cactifans.com/tools/zabbix_weixin.x86_64.tar.gz #解压脚本包 [root@localhost alertscripts]# tar zxvf zabbix_weixin.x86_64.tar.gz [root@localhost alertscripts]# mv zabbix_weixin/weixin . #给权限 [root@localhost alertscripts]# chmod a+x weixin [root@localhost alertscripts]# mv zabbix_weixin/weixincfg.json /etc/ [root@localhost alertscripts]# rm -rf zxvf zabbix_weixin.x86_64.tar.gz [root@localhost alertscripts]# rm -rf zabbix_weixin/ #编辑相关信息 [root@localhost alertscripts]# vim /etc/weixincfg.json #测试脚本是否可以正常发送 [root@localhost alertscripts]# /usr/lib/zabbix/alertscripts/weixin xhchen subject body #同步时间服务器 [root@localhost alertscripts]# ntpdate 10.2.3.106 15 Mar 14:02:11 ntpdate[8727]: step time server 10.2.3.106 offset -28631.485972 sec [root@localhost alertscripts]# date Thu Mar 15 14:02:15 CST 2018
本文记录了,借张思德大神blog 写的操作步骤
原链接点击
相关文章推荐
- 利用腾讯企业邮箱zabbix3.x邮件告警详细配置(微信/QQ/短信通知) 推荐
- Zabbix全方位告警接入-电话/微信/短信都支持
- 微信企业号升级企业微信后zabbix告警发不出去
- Zabbix企业微信告警最新版
- 实战利用腾讯企业邮箱zabbix3.x邮件(微信/QQ/短信)告警详细配置
- Zabbix实现微信告警
- [Zabbix] 微信告警
- Zabbix-3.0.3 实现微信(WeChat)告警
- Zabbix微信告警 iptables output 链设置
- zabbix微信告警(虚拟机脚本测试成功,zabbix上收不到信息)
- Zabbix全方位告警接入-电话/微信/短信都支持
- zabbix微信告警实践
- Zabbix全方位接入告警-电话/短信/微信都支持
- Zabbix-3.2.3实现微信(WeChat)告警
- Zabbix实现微信告警
- zabbix微信告警python脚本
- zabbix使用微信告警
- Zabbix-3.2.3实现微信(WeChat)告警
- [置顶] Zabbix3.4企业微信告警
- zabbix实现微信告警功能