zabbix之微信告警

[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 写的操作步骤

原链接点击

转载于:https://my.oschina.net/ch66880/blog/1635150

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值