当前位置: 首页 > news >正文

Zabbix实践!客户端自动发现

在线答疑:乐维社区

一、客户端状态检查

1.检查客户端的zabbix-agent2是否正常
[root@node1 ~]# systemctl is-active zabbix-agent2.service
active
2.从服务端检查是否可以获得客户端信息
[root@IT-01 ~]# zabbix_get -s ‘192.168.200.135’ -p 10050 -k ‘agent.ping’
1

二、配置hosts解析

服务端
[root@IT-01 ~]# vim /etc/hosts
[root@IT-01 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.169.200.129 IT-01
192.168.200.135 node1
客户端

[root@node1 ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

192.169.200.129 IT-01
192.168.200.135 node1

三、自动发现配置

1.查看自动发现当前规则在这里插入图片描述
2.创建新规则在这里插入图片描述
3.查看设置好的规则在这里插入图片描述
4.启用动作及触发器在这里插入图片描述
四、检查是否自动发现了客户端在这里插入图片描述
[root@IT-01 ~]# tail /var/log/zabbix/zabbix_server.log
1839:20210602:024139.067 cannot send list of active checks to “192.168.200.150”: host [192.168.200.129] not found
1839:20210602:024319.135 cannot send list of active checks to “192.168.200.135”: host [192.168.200.129] not found
1839:20210602:024340.066 cannot send list of active checks to “192.168.200.150”: host [192.168.200.129] not found
1839:20210602:024520.121 cannot send list of active checks to “192.168.200.135”: host [192.168.200.129] not found
1839:20210602:024541.066 cannot send list of active checks to “192.168.200.150”: host [192.168.200.129] not found
1839:20210602:024721.121 cannot send list of active checks to “192.168.200.135”: host [192.168.200.129] not found
1839:20210602:024742.071 cannot send list of active checks to “192.168.200.150”: host [192.168.200.129] not found
1839:20210602:024922.126 cannot send list of active checks to “192.168.200.135”: host [192.168.200.129] not found
1839:20210602:024943.062 cannot send list of active checks to “192.168.200.150”: host [192.168.200.129] not found
1829:20210602:175015.926 enabling Zabbix agent checks on host “node1”: host became available

http://www.xdnf.cn/news/614233.html

相关文章:

  • c++ constexpr关键字
  • VSCode如何像Pycharm一样“““回车快速生成函数注释文档?如何设置文档的样式?autoDocstring如何设置自定义模板?
  • RNN GRU LSTM 模型理解
  • 深度“求索”:DeepSeek+Dify构建个人知识库
  • SkyWalking高频采集泄漏线程导致CPU满载排查思路
  • RV1126 音频AI模块的详解
  • 树莓派4B搭建Hector SLAM算法, ROS1 ROS2?
  • 淘宝卖家评价等级如何区分?如何提升信誉等级?
  • 数据结构 -- 插入排序(直接插入排序和希尔排序)
  • 告别手抖困扰:全方位健康护理指南
  • React从基础入门到高级实战:React 基础入门 - 状态与事件处理
  • 量化交易新时代:Tick数据与股票API的完美融合
  • Python set集合方法详解
  • 无法选择最佳操作符(APP) 目录
  • 8级-数组
  • Axure元件动作五:设置列表选中项
  • Java SpringBoot 扣子CozeAI SseEmitter流式对话完整实战 打字机效果
  • 211. 添加与搜索单词 - 数据结构设计
  • 【Qt开发】按钮类控件
  • 5.24 note
  • FFmpeg 安装包全攻略:gpl、lgpl、shared、master 区别详解
  • spring注解旁路问题讨论
  • 使用Python在PowerPoint中插入形状(Shape)
  • 技术文档的进阶之旅
  • 文章记单词 | 第107篇(六级)
  • 3par persona设置错误,linux I/O持续报错
  • mPLUG-Owl3图片描述
  • SQL实战之索引优化(单表、双表、三表、索引失效)
  • FFplay 播放原始数据
  • C++性能测试工具——sysprof的使用