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


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






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


边栏推荐
- 大学阶段总结
- Zephyr study notes 2, scheduling
- 神经网络入门(下)
- Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
- L1-022 odd even split (10 points)
- Summary of MySQL common judgment functions!! Have you used it
- BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
- Take you to master the formatter of visual studio code
- [web security] nodejs prototype chain pollution analysis
- 2022-021rts: from the second half of the year
猜你喜欢

弈柯莱生物冲刺科创板:年营收3.3亿 弘晖基金与淡马锡是股东

Text processing function sorting in mysql, quick search of collection

Implementation of ZABBIX agent active mode

Technical experts from large factories: common thinking models in architecture design

System architecture design of circle of friends

Solution of running crash caused by node error

Take you to master the formatter of visual studio code

tornado项目之路由装饰器

Summary of MySQL common judgment functions!! Have you used it

Zephyr 学习笔记2,Scheduling
随机推荐
Introduction to sap commerce cloud B2B organization function
L1-022 odd even split (10 points)
Transition technology from IPv4 to IPv6
[network security] what is emergency response? What indicators should you pay attention to in emergency response?
[web security] nodejs prototype chain pollution analysis
Zephyr study notes 2, scheduling
Technical experts from large factories: common thinking models in architecture design
[untitled] notice on holding "2022 traditional fermented food and modern brewing technology"
Blog stop statement
How to send mail with Jianmu Ci
Electronic Association C language level 1 34, piecewise function
[Chongqing Guangdong education] National Open University spring 2019 770 real estate appraisal reference questions
Used on windows Bat file startup project
PCIe knowledge points -010: where to get PCIe hot plug data
Text processing function sorting in mysql, quick search of collection
Docker install MySQL
When JDBC connects to es query, is there a God who meets the following situation?
The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
JVM中堆概念
L1-028 judging prime number (10 points)