当前位置:网站首页>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(具体想监控的内容)
- 创建触发器,当监控项获取到值的时候,进行和触发器比较、判断、决定是否报警
- 创建图形
- 将具体的主机和该模板连接,关联
找到刚才创建的模板,点击
以上全部创建完成后,与主机进行关联
边栏推荐
- BibTex中参考文献种类
- 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
- The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
- Used on windows Bat file startup project
- Unity opens the explorer from the inspector interface, selects and records the file path
- Routing decorator of tornado project
- Pangu open source: multi support and promotion, the wave of chip industry
- 节点基础~节点操作
- Activiti常见操作数据表关系
- Activiti常見操作數據錶關系
猜你喜欢
Google's official response: we have not given up tensorflow and will develop side by side with Jax in the future
Improve the accuracy of 3D reconstruction of complex scenes | segmentation of UAV Remote Sensing Images Based on paddleseg
With excellent strength, wangchain technology, together with IBM and Huawei, has entered the annual contribution list of "super ledger"!
Node foundation ~ node operation
[network security] what is emergency response? What indicators should you pay attention to in emergency response?
【Kubernetes系列】Kubernetes 上安装 KubeSphere
Implementation of ZABBIX agent active mode
Easy to understand: understand the time series database incluxdb
Summary of MySQL common judgment functions!! Have you used it
果果带你写链表,小学生看了都说好
随机推荐
[freertos] freertos Learning notes (7) - written freertos bidirectionnel Link LIST / source analysis
2022-021ARTS:下半年开始
Go learning notes - constants
2022-021rts: from the second half of the year
L1-028 judging prime number (10 points)
The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
Label management of kubernetes cluster
Used on windows Bat file startup project
BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
Oceanbase is the leader in the magic quadrant of China's database in 2021
How to buy financial products in 2022?
21个战略性目标实例,推动你的公司快速发展
One of the general document service practice series
[kubernetes series] kubesphere is installed on kubernetes
jdbc连接es查询的时候,有遇到下面这种情况的大神嘛?
Relations courantes de la fiche de données d'exploitation pour les activités
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
L1-024 the day after tomorrow (5 points)
[Android reverse] function interception (use cache_flush system function to refresh CPU cache | refresh CPU cache disadvantages | recommended time for function interception)
论文学习——基于极值点特征的时间序列相似性查询方法