当前位置:网站首页>Système de surveillance zabbix contenu de surveillance personnalisé
Système de surveillance zabbix contenu de surveillance personnalisé
2022-07-04 07:39:00 【Embrasser le nuage primitif】
zabbixPersonnaliser le contenu du moniteur
Personnaliser le nombre de connexions du serveur de surveillance
Besoins:Limiter les débarquements à trois,Plus de trois déclenchent un message d'alarme
zabbixPersonnalisationkey(Ligne de commande)
1.zabbixPar défaut, la surveillance de l'hôte est fournie avec un modèlekey(Points de contrôle)
Vue du serveur:
[[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.Mais il y a quelque chose que nous voulons surveiller sans surveillance par défaut,Nous passonskeyJe ne peux pas le voir.
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
ZBX_NOTSUPPORTED: Unknown metric login.agent
3.Pour que nous puissions personnaliserkey( Personnaliser le contenu de la surveillance )
Client ajouterkey:
[[email protected] ~]# cat /etc/zabbix/zabbix_agent2.d/login_agent.conf
UserParameter=login.user,who|wc -l
4.Une fois la création terminée,Redémarrer le service、
[[email protected] ~]# systemctl restart zabbix-agent2
5. Le serveur teste à nouveau si key
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
1
Ajouter à la pagezabbix-server Modèle d'élément de surveillance personnalisé pour
Ajouter un processus:
- Créer un modèle
- Créer un ensemble d'applications( C'est comme un dossier , Il y a un tas d'articles de surveillance dedans )
- Créer un élément de surveillance,Personnalisationitem( Le contenu spécifique à surveiller )
- Créer un déclencheur, Quand l'élément de surveillance obtient la valeur , Comparer avec le déclencheur 、Jugement、 Décider d'appeler la police ou non
- Créer un dessin
- Connectez l'hôte spécifique au modèle ,Liens
Trouver le modèle que vous venez de créer ,Cliquez sur
Une fois que tout ce qui précède a été créé , Associer à l'hôte
边栏推荐
- The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
- Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
- Routing decorator of tornado project
- Activiti common operation data table relationship
- Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
- How to write a summary of the work to promote the implementation of OKR?
- [kubernetes series] kubesphere is installed on kubernetes
- "Sword finger offer" 2nd Edition - force button brush question
- Oracle stored procedures and functions
- 2022-021rts: from the second half of the year
猜你喜欢
The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)
"Sword finger offer" 2nd Edition - force button brush question
谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展
BUUCTF(4)
JVM中堆概念
I was pressed for the draft, so let's talk about how long links can be as efficient as short links in the development of mobile terminals
This article is enough for learning advanced mysql
User login function: simple but difficult
socket inet_ pton() inet_ Ntop() function (a new network address translation function, which converts the expression format and numerical format to each other. The old ones are inet_aton(), INET_ ntoa
Implementation of ZABBIX agent active mode
随机推荐
博客停更声明
2022 - 021arts: début du deuxième semestre
大厂技术专家:架构设计中常用的思维模型
【FreeRTOS】FreeRTOS學習筆記(7)— 手寫FreeRTOS雙向鏈錶/源碼分析
Life planning (flag)
L1-023 output gplt (20 points)
Would you like to go? Go! Don't hesitate if you like it
The number of patent applications in China has again surpassed that of the United States and Japan, ranking first in the world for 11 consecutive years
L1-027 rental (20 points)
Oracle-存储过程与函数
BUUCTF(4)
果果带你写链表,小学生看了都说好
Unity opens the explorer from the inspector interface, selects and records the file path
rapidjson读写json文件
[Gurobi] 简单模型的建立
A real penetration test
[Chongqing Guangdong education] National Open University spring 2019 770 real estate appraisal reference questions
Leetcode (215) -- the kth largest element in the array
"Sword finger offer" 2nd Edition - force button brush question
How to buy financial products in 2022?