当前位置:网站首页>zabbix監控系統自定義監控內容
zabbix監控系統自定義監控內容
2022-07-04 07:39:00 【擁抱雲原生】
zabbix自定義監控內容
自定義監控服務器登陸的人數
需求:限制登陸人數不超過三個,超過三個就發出報警信息
zabbix自定義key(命令行)
1.zabbix主機監控默認通過模板自帶了一些key(監控項)
服務端查看:
[[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.但有一些內容我們想監控而默認沒有監控,我們通過key查看不了
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
ZBX_NOTSUPPORTED: Unknown metric login.agent
3.因此我們可以自定義key(自定義監控的內容)
客戶端添加key:
[[email protected]agent1 ~]# cat /etc/zabbix/zabbix_agent2.d/login_agent.conf
UserParameter=login.user,who|wc -l
4.創建完成後,重新啟動服務、
[[email protected] ~]# systemctl restart zabbix-agent2
5.服務端再次測試是否可以使用該key
[[email protected] ~]# zabbix_get -s '192.168.10.51' -p 10050 -k 'login.user'
1
在頁面添加zabbix-server的自定義監控項模板
添加流程:
- 創建模板
- 創建應用集(好比是一個文件夾,裏面存放一堆監控項)
- 創建監控項,自定義item(具體想監控的內容)
- 創建觸發器,當監控項獲取到值的時候,進行和觸發器比較、判斷、决定是否報警
- 創建圖形
- 將具體的主機和該模板連接,關聯


找到剛才創建的模板,點擊






以上全部創建完成後,與主機進行關聯


边栏推荐
- L1-026 I love gplt (5 points)
- Xcode 14之大变化详细介绍
- Electronic Association C language level 1 35, bank interest
- Leetcode (215) -- the kth largest element in the array
- This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears
- [Mori city] random talk on GIS data (I)
- Handwritten easy version flexible JS and source code analysis
- OKR vs. KPI figure out these two concepts at once!
- Implementation of ZABBIX agent active mode
- 大学阶段总结
猜你喜欢

大厂技术专家:架构设计中常用的思维模型

BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment

How to use MOS tube to realize the anti reverse connection circuit of power supply

System architecture design of circle of friends
![[Flink] temporal semantics and watermark](/img/4d/cf9c7e80ea416155cee62cdec8a5bb.jpg)
[Flink] temporal semantics and watermark

Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool

大学阶段总结

Solution of running crash caused by node error

谷歌官方回应:我们没有放弃TensorFlow,未来与JAX并肩发展

深入浅出:了解时序数据库 InfluxDB
随机推荐
OKR vs. KPI figure out these two concepts at once!
Pangu open source: multi support and promotion, the wave of chip industry
[Chongqing Guangdong education] National Open University spring 2019 770 real estate appraisal reference questions
How does dataframe calculate the average value of each row as another column
【Kubernetes系列】Kubernetes 上安装 KubeSphere
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
There is no Chinese prompt below when inputting text in win10 Microsoft Pinyin input method
Experience installing VMware esxi 6.7 under VMware Workstation 16
When JDBC connects to es query, is there a God who meets the following situation?
Go learning notes - constants
2022-021ARTS:下半年開始
How to send mail with Jianmu Ci
BUUCTF(3)
Would you like to go? Go! Don't hesitate if you like it
Technical experts from large factories: common thinking models in architecture design
Two years ago, the United States was reluctant to sell chips, but now there are mountains of chips begging China for help
Comparison between applet framework and platform compilation
Summary of MySQL common judgment functions!! Have you used it
Tri des fonctions de traitement de texte dans MySQL, recherche rapide préférée
Transition technology from IPv4 to IPv6