当前位置:网站首页>zabbix监控系统自定义监控内容
zabbix监控系统自定义监控内容
2022-07-04 07:37: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] ~]# 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(具体想监控的内容)
- 创建触发器,当监控项获取到值的时候,进行和触发器比较、判断、决定是否报警
- 创建图形
- 将具体的主机和该模板连接,关联


找到刚才创建的模板,点击






以上全部创建完成后,与主机进行关联


边栏推荐
- Routing decorator of tornado project
- Preliminary study on temporal database incluxdb 2.2
- L1-030 one gang one (15 points)
- Comparison between applet framework and platform compilation
- This monitoring system can monitor the turnover intention and fishing all, and the product page has 404 after the dispute appears
- Zephyr Learning note 2, Scheduling
- Types of references in BibTex
- window上用.bat文件启动项目
- 大厂技术专家:架构设计中常用的思维模型
- 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
猜你喜欢
![SQL foundation 9 [grouping data]](/img/8a/a72941d8c3413316b063033a1b5038.jpg)
SQL foundation 9 [grouping data]

Oracle-存储过程与函数

flask-sqlalchemy 循环引用

Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology

Distributed transaction management DTM: the little helper behind "buy buy buy"

It's healthy to drink medicinal wine like this. Are you drinking it right
![[network security] what is emergency response? What indicators should you pay attention to in emergency response?](/img/2e/96da79d82ae2c49a3a0ab9909467ac.jpg)
[network security] what is emergency response? What indicators should you pay attention to in emergency response?

大学阶段总结

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

Summary of MySQL common judgment functions!! Have you used it
随机推荐
NLP literature reading summary
节点基础~节点操作
Node foundation ~ node operation
输入年份、月份,确定天数
This article is enough for learning advanced mysql
Zephyr 学习笔记2,Scheduling
[FreeRTOS] FreeRTOS learning notes (7) - handwritten FreeRTOS two-way linked list / source code analysis
The crackdown on Huawei prompted made in China to join forces to fight back, and another enterprise announced to invest 100 billion in R & D
Distributed transaction management DTM: the little helper behind "buy buy buy"
System architecture design of circle of friends
Detailed introduction to the big changes of Xcode 14
Zephyr 学习笔记1,threads
Linear algebra 1.1
jdbc连接es查询的时候,有遇到下面这种情况的大神嘛?
In the era of low code development, is it still needed?
线性代数1.1
Implementation of ZABBIX agent active mode
Flask 常用组件
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
【森城市】GIS数据漫谈(一)