当前位置:网站首页>10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
10 minutes to help you get ZABBIX monitoring platform alarm pushed to nail group
2022-07-05 16:09:00 【yuanfan2012】
10 Minutes Zabbix The monitoring platform alarm is pushed to the nail group
Zabbix For the installation and deployment of, please refer to the previous article
- CentOS8.5 Install and deploy the open source monitoring system under Zabbix 6.0LTS
- CentOS7 A key to install Zabbix Agent 6.0 And realize automatic registration
And the creation of nail robot is no longer described in detail
1、 Download and install PrometheusAlert
https://github.com/feiyu563/PrometheusAlert
mkdir /opt/PrometheusAlert
unzip PrometheusAlertLinux.zip -d /opt/PrometheusAlert/
cd /opt/PrometheusAlert/
cp zabbix /usr/lib/zabbix/alertscripts/zabbixclient
chmod 755 /usr/lib/zabbix/alertscripts/zabbixclient
chown zabbix:zabbix /usr/lib/zabbix/alertscripts/zabbixclient
/usr/lib/zabbix/alertscripts/zabbixclient -h
( Click to enlarge the picture )
Set up PrometheusAlert Boot up
vi /etc/rc.local
Add the following line
nohup /opt/PrometheusAlert/PrometheusAlert &
chmod +x /etc/rc.d/rc.local
Then start it manually PrometheusAlert
nohup /opt/PrometheusAlert/PrometheusAlert &
firewall-cmd --permanent --zone=public --add-port=8080/tcp
firewall-cmd --reload
( Click to enlarge the picture )
2、 Modify trigger display options
Show with emoticons , To make the alarm more intuitive
( Click to enlarge the picture )
3、Zabbix Create alarm media types on
The type is script
Refer to for relevant parameters PrometheusAlert Fill in the official documents
( Click to enlarge the picture )
( Click to enlarge the picture )
After creation, you can test the robot
4、 Add users
for example yuanfan
( Click to enlarge the picture )
The alarm media is created in the previous step PrometheusAlert type
( Click to enlarge the picture )
5、 Configure the message template in the trigger action
- First configure the trigger action
( Click to enlarge the picture )
( Click to enlarge the picture )
- operation —— Operation details —— The message template is as follows
## [Zabbix Platform alarm information ](https://zabbix.walkingcloud.cn)
--------------------------------------------------------
##### <font color="#FF0000">{TRIGGER.NAME} </font>
--------------------------------------------------------
##### <font color="#FF0000">【 Time of failure 】</font>:{EVENT.DATE} {EVENT.TIME}
##### <font color="#FF0000">【 Alarm level 】</font>:{TRIGGER.SEVERITY}
##### <font color="#FF0000">【 Pre fault status 】</font>:{ITEM.LASTVALUE}
##### <font color="#FF0000">【 Fault events ID】</font>:{EVENT.ID}
##### <font color="#FF0000">【 Faulty host IP】</font>:{HOST.IP}
##### <font color="#FF0000">【 Failed host name 】</font>:{HOST.NAME}
##### <font color="#FF0000">【 Failure duration 】</font>:{EVENT.AGE}
##### <font color="#FF0000">【 Whether the fault is confirmed 】</font>:{EVENT.ACK.STATUS}
--------------------------------------------------------
##### <font color="#F56C6C"> Event status :{EVENT.STATUS}</font>
( Click to enlarge the picture )
- Recovery operation —— Operation details —— The message template is as follows
## [Zabbix Monitoring platform alarm information ](https://zabbix.walkingcloud.cn)
--------------------------------------------------------
##### <font color="#67C23A">{TRIGGER.NAME} It has been restored </font>
--------------------------------------------------------
##### <font color="#02b340">【 Recovery time 】</font>:{EVENT.RECOVERY.DATE} {EVENT.RECOVERY.TIME}
##### <font color="#02b340">【 Alarm level 】</font>:{TRIGGER.SEVERITY}
##### <font color="#02b340">【 Pre fault status 】</font>:{ITEM.LASTVALUE}
##### <font color="#02b340">【 Faulty host IP】</font>:{HOST.IP}
##### <font color="#02b340">【 Failed host name 】</font>:{HOST.NAME}
##### <font color="#02b340">【 Failure duration 】</font>:{EVENT.AGE}
##### <font color="#02b340">【 Whether the fault is confirmed 】</font>:{EVENT.ACK.STATUS}
--------------------------------------------------------
##### <font color="#F56C6C"> Event status :{EVENT.STATUS}</font>
( Click to enlarge the picture )
- update operation —— Operation details —— The message template is as follows
## [Zabbix Monitoring platform alarm information ](https://zabbix.walkingcloud.cn)
--------------------------------------------------------
##### <font color="#67C23A"> {USER.FULLNAME} The cause of the failure has been confirmed </font>
--------------------------------------------------------
##### <font color="#FF0000">【 Fault confirmation time 】</font>:{ACK.DATE} {ACK.TIME}
##### <font color="#FF0000">【 Alarm level 】</font>:{TRIGGER.SEVERITY}
##### <font color="#FF0000">【 Pre fault status 】</font>:{ITEM.LASTVALUE}
##### <font color="#FF0000">【 Faulty host IP】</font>:{HOST.IP}
##### <font color="#FF0000">【 Failed host name 】</font>:{HOST.NAME}
##### <font color="#FF0000">【 Failure duration 】</font>:{EVENT.AGE}
##### <font color="#FF0000">【 The cause of the problem 】</font>:{ACK.MESSAGE}
##### <font color="#FF0000">【 Whether the fault is confirmed 】</font>:{EVENT.ACK.STATUS}
--------------------------------------------------------
##### <font color="#F56C6C"> Event status :{EVENT.STATUS}</font>
( Click to enlarge the picture )
6、 Trigger alarm and effect display
for example 192.168.31.127 On /boot Partition full test
dd if=/dev/zero of=/boot/test.iso count=1 bs=1024M
df -PTh
( Click to enlarge the picture )
( Click to enlarge the picture )
( Click to enlarge the picture )
web The effect of confirming the fault on the interface
( Click to enlarge the picture )
( Click to enlarge the picture )
( Click to enlarge the picture )
Nail the alarm effect when the alarm recovers
边栏推荐
- 一键安装脚本实现快速部署GrayLog Server 4.2.10单机版
- The database of the server is not connected to 200310060 "unknown error" [the service is up, the firewall is off, the port is on, and the netlent port is not connected]
- 后台系统发送验证码功能
- MySQL overview
- 记一次'非常诡异'的云安全组规则问题排查过程
- [brief notes] solve the problem of IDE golang code red and error reporting
- MySQL table field adjustment
- Convert obj set to entity set
- 16.[STM32]从原理开始带你了解DS18B20温度传感器-四位数码管显示温度
- 抽象类和接口的区别
猜你喜欢
![19.[STM32]HC_ SR04 ultrasonic ranging_ Timer mode (OLED display)](/img/fe/8f59db28823290da8e9280df06673d.jpg)
19.[STM32]HC_ SR04 ultrasonic ranging_ Timer mode (OLED display)

Quick completion guide for manipulator (IX): forward kinematics analysis
![21.[STM32]I2C协议弄不懂,深挖时序图带你编写底层驱动](/img/f4/2c935dd9933f5cd4324c29c41ab221.png)
21.[STM32]I2C协议弄不懂,深挖时序图带你编写底层驱动

Replknet: it's not that large convolution is bad, but that convolution is not large enough. 31x31 convolution. Let's have a look at | CVPR 2022

Data communication foundation OSPF Foundation

obj集合转为实体集合

单商户 V4.4,初心未变,实力依旧!

Cs231n notes (medium) -- applicable to 0 Foundation

Mistakes made when writing unit tests

Batch update in the project
随机推荐
21. [STM32] I don't understand the I2C protocol. Dig deep into the sequence diagram to help you write the underlying driver
漫画:什么是MapReduce?
践行自主可控3.0,真正开创中国人自己的开源事业
事务回滚异常
Transaction rollback exception
20. [stm32] realize the function of intelligent garbage can by using ultrasonic module and steering gear
The difference between abstract classes and interfaces
The list set is summed up according to a certain attribute of the object, the maximum value, etc
wyt 。。
16. [stm32] starting from the principle, I will show you the DS18B20 temperature sensor - four digit digital tube displays the temperature
vant tabbar遮挡内容的解决方式
verilog实现计算最大公约数和最小公倍数
Maximum common subsequence
效果编辑器新版上线!3D渲染、加标注、设置动画,这次一个编辑器就够了
This article takes you through the addition, deletion, modification and query of JS processing tree structure data
Intelligent metal detector based on openharmony
项目中批量update
Mistakes made when writing unit tests
Relationship between objects and classes
Use of RLOCK lock