当前位置:网站首页>ZABBIX monitoring system custom monitoring content
ZABBIX monitoring system custom monitoring content
2022-07-04 07:40:00 【Embrace cloud primordial】
zabbix Custom monitoring content
The number of people logging in to the user-defined monitoring server
demand : Limit the number of login to no more than three , More than three will send alarm messages
zabbix Customize key( Command line )
1.zabbix By default, the host monitoring comes with some key( Monitoring item )
Server view :
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'system.hostname'
zabbix-agent1
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'system.uname'
Linux zabbix-agent1 3.10.0-957.el7.x86_64 #1 SMP Thu Nov 8 23:39:32 UTC 2018 x86_64
2. But there are some contents that we want to monitor but do not monitor by default , We go through key Can't check
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
ZBX_NOTSUPPORTED: Unknown metric login.agent
3. So we can customize key( Customize the content of monitoring )
Client add key:
[[email protected] ~]# cat /etc/zabbix/zabbix_agent2.d/login_agent.conf
UserParameter=login.user,who|wc -l
4. After creation , Restart the service 、
[[email protected] ~]# systemctl restart zabbix-agent2
5. The server tests again whether it can use this key
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
1
Add... To the page zabbix-server Custom monitor item template for
Add process :
- Create a template
- Create application set ( It's like a folder , A pile of monitoring items are stored inside )
- Create monitor item , Customize item( What you want to monitor )
- Create trigger , When the monitor gets a value , Compare with trigger 、 Judge 、 Decide whether to call the police
- Create graphics
- Connect the specific host to the template , relation
Find the template just created , Click on
After all the above are created , Associate with host
边栏推荐
- L1-026 I love gplt (5 points)
- Routing decorator of tornado project
- BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
- [Android reverse] function interception (use cache_flush system function to refresh CPU cache | refresh CPU cache disadvantages | recommended time for function interception)
- Amd RX 7000 Series graphics card product line exposure: two generations of core and process mix and match
- Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
- How does dataframe calculate the average value of each row as another column
- Oracle stored procedures and functions
- Would you like to go? Go! Don't hesitate if you like it
- L1-022 odd even split (10 points)
猜你喜欢
System architecture design of circle of friends
L2-013 red alarm (C language) and relevant knowledge of parallel search
[network security] what is emergency response? What indicators should you pay attention to in emergency response?
【Kubernetes系列】Kubernetes 上安装 KubeSphere
Introduction to rce in attack and defense world
Comparison between applet framework and platform compilation
Preliminary study on temporal database incluxdb 2.2
University stage summary
Summary of MySQL common judgment functions!! Have you used it
PCIE知识点-010:PCIE 热插拔资料从哪获取
随机推荐
Activiti常见操作数据表关系
Handwritten easy version flexible JS and source code analysis
flask-sqlalchemy 循环引用
The text box displays the word (prompt text) by default, and the text disappears after clicking.
[Gurobi] 简单模型的建立
Directory of tornado
Oracle-存储过程与函数
NLP literature reading summary
[Chongqing Guangdong education] National Open University spring 2019 770 real estate appraisal reference questions
节点基础~节点操作
Life planning (flag)
Unity 从Inspector界面打开资源管理器选择并记录文件路径
Comparison between applet framework and platform compilation
JVM -- class loading process and runtime data area
Leetcode(215)——数组中的第K个最大元素
JVM中堆概念
Advanced MySQL: Basics (5-8 Lectures)
[kubernetes series] kubesphere is installed on kubernetes
Relations courantes de la fiche de données d'exploitation pour les activités
This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears