当前位置:网站首页>Whether the ZABBIX monitoring host is online
Whether the ZABBIX monitoring host is online
2022-06-11 06:49:00 【alfiy】
A little busy recently , I haven't updated my blog for a long time . Today's article mainly records how to pass zabbix Monitor whether a host is online .
All right, let's go .
1. Create a new template
The purpose of creating a new template is to add “ Monitoring item ” and “ trigger ” Of , If the number of hosts you want to monitor is very small , Of course, there is no need to create a new template , Instead, add directly to the host to be monitored “ Monitoring item ” and “ trigger ”. But if you want to monitor a very large number of hosts, it will be a bit laborious , Why don't you just “ Monitoring item ” and “ trigger ” Built on the template , In this way, the host you want to monitor only needs to apply the template you have created .
Log in first zabbix Configuration management page of , Locate the “ To configure —- Templates ” page , Click... In the upper right corner of the page “ Create a template ”, Follow the figure below , After filling in the required items of the template , Click on “ add to ” The button creates a new one named “MyTemplate” The template , Next, we will continue to add... To this custom template ” Monitoring item “ and ” trigger “.

2. To add a monitor item to a custom template
Still “ Templates ” Page quickly navigate to the newly created template by searching .
Enter the template details page , choice “ Monitoring item ” tab , Then click... In the upper right corner of the page “ Create monitor item ” Button , Add a new one “ Monitoring item ”.
Fill in the required contents of the monitoring item , Click on “ add to ” Button , A new monitoring item is created for the custom template , The host using this set of templates can collect data through this monitoring item .

3. New trigger
Still “ Templates ” page , Click on “ trigger ” tab , Click on the “ Create trigger ” Button , Add a trigger for the custom template .


After the above operations are completed , You should also add a dependency to this trigger . You can think about it , Our monitoring item is a simple check , That's one ping command , If the host is not online, the trigger created according to the above will always be in the trigger state , Obviously this is a little out of common sense . We can solve this problem by adding dependencies .
Added in the above figure “zabbix agent is not available” The trigger is also a trigger to monitor whether the host is online , But it didn't icmping So sensitive , If opened “zabbix agent is not available” trigger , You can check its details , If “zabbix agent is not available” Trigger condition of trigger terminated , Then the trigger conditions that depend on it also terminate , In this way, the trigger is automatically closed .
4. Create a new trigger action
After the previous preparations, we can create a new trigger action , When the host is down, you can use e-mail or staples webhook A notification alarm has been given .
Get into “ action —-Trigger actions” page , Click on the top right corner of the page ” Create action “ Button , Add an action .

Next, add an action item to the action .

5. Apply custom templates
Okay , Now everything is ready , Next, you can apply the custom template to the host to be monitored .
Enter the host page in the configuration page , Click the host link to enter the host configuration details page .

By doing this , Add a custom template for the host .
6. test
Shut down the engine , Test triggers 、 Whether the trigger action works normally .
The alarm email has been received normally , thus zabbix The operation of monitoring host downtime is completed .

边栏推荐
- 六月集训(第11天) —— 矩阵
- 数学方法论的含义和研究意义
- Summary of string processing skills II
- Throttling and anti shake
- A piece of code has been refactored six times by the boss, and my mind is broken
- fatal: refusing to merge unrelated histories
- 节流和防抖
- About the principle and code implementation of Siou (review IOU, giou, Diou, CIO)
- 统计某次操作(函数)耗时时长
- Multimedia框架解析之MediaExtractor源码分析(一)
猜你喜欢

UEFI查找PCI设备

ESP32学习笔记(49)——ESP-WIFI-MESH接口使用

CCS method of installing compiler

347. top k high frequency elements

saltstack部署lnmp

latex 各种箭头/带文字标号的箭头/可变长箭头

Redux learning (II) -- encapsulating the connect function
![Illustrate the principle of one-way linked list and the method of JS to realize linked list [with source code]](/img/0d/2de3413fcb77ac2bd093677035f2e7.jpg)
Illustrate the principle of one-way linked list and the method of JS to realize linked list [with source code]

VTK-vtkPlane和vtkCutter使用
![Handwritten promise [04] - then method chain call to recognize promise object self return](/img/3e/2bf97b2e151dae3b9681fb0ce77d2f.jpg)
Handwritten promise [04] - then method chain call to recognize promise object self return
随机推荐
关于组织开展2022年宁波市重点首版次软件申报工作的通知
CCS method of installing compiler
538. convert binary search tree to cumulative tree
347. top k high frequency elements
[MATLAB image encryption and decryption] chaotic sequence image encryption and decryption (including correlation test) [including GUI source code 1862]
【Matlab WSN通信】A_Star改进LEACH多跳传输协议【含源码 487期】
Won't virtual DOM be available in 2022? Introduction to virtual Dom and complete implementation of diff and patch
Open source cartoon server mango
Mongodb installation
538.把二叉搜索树转换成累加树
关于parseInt()
QT script document translation (I)
text-overflow失效
Pytest automated test - easy tutorial (01)
Check whether the filing information of the medical representative is correct
572. subtree of another tree
JS judge whether the year is a leap year and the number of days in the month
六月集训(第11天) —— 矩阵
Post exam summary
Count the time-consuming duration of an operation (function)