当前位置:网站首页>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
边栏推荐
- Devops Practice Guide - reading notes (long text alarm)
- L1-023 output gplt (20 points)
- 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
- JVM -- class loading process and runtime data area
- Preliminary study on temporal database incluxdb 2.2
- It's healthy to drink medicinal wine like this. Are you drinking it right
- Flask 常用组件
- Valentine's Day is coming! Without 50W bride price, my girlfriend was forcibly dragged away...
- This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears
- Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!
猜你喜欢
BUUCTF(3)
How to send mail with Jianmu Ci
Detailed introduction to the big changes of Xcode 14
This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears
The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
L1-027 rental (20 points)
论文学习——基于极值点特征的时间序列相似性查询方法
Handwritten easy version flexible JS and source code analysis
Zephyr study notes 2, scheduling
Thesis learning -- time series similarity query method based on extreme point characteristics
随机推荐
Distributed transaction management DTM: the little helper behind "buy buy buy"
L1-028 judging prime number (10 points)
[kubernetes series] kubesphere is installed on kubernetes
Devops Practice Guide - reading notes (long text alarm)
Introduction to rce in attack and defense world
BUUCTF(4)
[real case] how to deal with the failure of message consumption?
win10微软拼音输入法输入文字时候下方不出现中文提示
How to write a summary of the work to promote the implementation of OKR?
Book list | as the technical support Party of the Winter Olympics, Alibaba cloud's technology is written in these books!
Two years ago, the United States was reluctant to sell chips, but now there are mountains of chips begging China for help
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
[network security] what is emergency response? What indicators should you pay attention to in emergency response?
Zephyr 學習筆記2,Scheduling
Rapidjson reading and writing JSON files
L2-013 red alarm (C language) and relevant knowledge of parallel search
[web security] nodejs prototype chain pollution analysis
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
MySQL中的文本处理函数整理,收藏速查
Technical experts from large factories: common thinking models in architecture design