zabbix-电话报警

1.注册账号:

睿智象
在这里插入图片描述
在这里插入图片描述在这里插入图片描述
在这里插入图片描述在这里插入图片描述

配置

在这里插入图片描述

#切换到zabbix脚本目录
[root@c7-45 ~]# cd /usr/lib/zabbix/alertscripts
[root@c7-45 alertscripts]# ls
mail.sh
#获取cloud Alert Agent包
[root@c7-45 alertscripts]# wget https://download.aiops.com/ca_agent/zabbix/ca_zabbix_release-2.1.0.tar.gz
--2020-05-15 08:43:52--  https://download.aiops.com/ca_agent/zabbix/ca_zabbix_release-2.1.0.tar.gz
Resolving download.aiops.com (download.aiops.com)... 39.96.131.192
Connecting to download.aiops.com (download.aiops.com)|39.96.131.192|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3503 (3.4K) [text/plain]
Saving to: ‘ca_zabbix_release-2.1.0.tar.gz’

100%[====================================================================>] 3,503       --.-K/s   in 0s

2020-05-15 08:43:52 (1.28 GB/s) - ‘ca_zabbix_release-2.1.0.tar.gz’ saved [3503/3503]

[root@c7-45 alertscripts]# ls
ca_zabbix_release-2.1.0.tar.gz  mail.sh

#解压安装
[root@c7-45 alertscripts]# tar zxf ca_zabbix_release-2.1.0.tar.gz
[root@c7-45 alertscripts]# cd cloudalert/
[root@c7-45 cloudalert]# cd bin/
[root@c7-45 bin]# ls
alert.sh  install.sh  log.sh  update.sh


[root@c7-45 bin]# bash install.sh 27f68461-ac2a-fd54-683d-ce7ad320ce97        
./log.sh: line 6: /usr/lib/zabbix/alertscripts/cloudalert/bin/cloudalert.conf: No such file or directory
start to create config file...
Zabbix管理地址: 10.0.0.45/zabbix
Zabbix管理员账号: Admin
Zabbix管理员密码:zabbix   #输入密码
start to auth by zabbix admin user and password...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   195  100    70  100   125   2451   4377 --:--:-- --:--:-- --:--:--  4464
auth success!
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   109  100    41  100    68   1782   2956 --:--:-- --:--:-- --:--:--  3090
start to create mediatype...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   399  100    57  100   342   1699  10197 --:--:-- --:--:-- --:--:-- 10363
create media type success!
start to create user group...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   217  100    54  100   163   1675   5058 --:--:-- --:--:-- --:--:--  5093
create user group success!
start to create user in zabbix...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   636  100    51  100   585   1612  18500 --:--:-- --:--:-- --:--:-- 18870
create user success!
start to create action...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  2016  100    51  100  1965   1394  53745 --:--:-- --:--:-- --:--:-- 54583
create action success!
安装成功.

在这里插入图片描述在这里插入图片描述

设置分派策略

在这里插入图片描述在这里插入图片描述

设置通知策略

在这里插入图片描述在这里插入图片描述
在这里插入图片描述

测试

#关闭所有tomcat
supervisor> stop all
tomcat2: stopped
tomcat1: stopped

在这里插入图片描述
在这里插入图片描述

错误

#查看日志
[root@c7-45 bin]# cd /usr/lib/zabbix/alertscripts
[root@c7-45 alertscripts]# ls
ca_zabbix_release-2.1.0.tar.gz  cloudalert  mail.sh
[root@c7-45 alertscripts]# cd cloudalert/logs/
[root@c7-45 logs]# tail -f cloudalert.log

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

云原生解决方案

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值