当前位置:网站首页>zabbix自动发现和自动注册
zabbix自动发现和自动注册
2022-08-02 05:17:00 【掌九】
配置zabbix自动发现和自动注册。
一、自动发现
1. 配置网络发现规则

配置动作
配置操作



2. 配置agent
修改三个参数
[[email protected] ~]# vim /etc/zabbix/zabbix_agent2.conf
### Option: Server
Server=192.168.43.116
##### Active checks related
ServerActive=192.168.43.116
### Option: Hostname
Hostname=node2
3. 验证自动发现
注意:解决zabbix自动发现主机后主机名称是IP地址的问题
解决方法:dns支持,或者配置hosts解析,否则默认是IP地址。

配置host解析
[[email protected] ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.43.112 node2
192.168.43.116 zabbix
[[email protected] ~]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.43.112 node2
192.168.43.116 zabbix
删除发现出的主机;服务端,客户端重启
[[email protected] ~]# systemctl restart zabbix-server.service
[[email protected] ~]# systemctl restart zabbix-agent2.service

二、自动检测
先将自动发现暂停,防止干扰(在同一网段)
配置agent
[[email protected] ~]# yum install https://mirrors.aliyun.com/zabbix/zabbix/5.4/rhel/7/x86_64/zabbix-agent2-5.4.0-8.el7.x86_64.rpm
[[email protected] ~]# vim /etc/zabbix/zabbix_agent2.conf
### Option: Server
Server=192.168.43.116
##### Active checks related
ServerActive=192.168.43.116
### Option: Hostname
Hostname=node3
[[email protected] ~]# systemctl enable --now zabbix-agent2.service
Created symlink from /etc/systemd/system/multi-user.target.wants/zabbix-agent2.service to
/usr/lib/systemd/system/zabbix-agent2.service.
1. 配置自动注册
配置>动作>Autoregistraion action




重启服务端和客户端,快速测试


边栏推荐
- Redis集群模式
- BGP实验(路由反射器,联邦,路由优化)
- 测试环境要多少?从成本与效率说起
- 深度学习——CNN实现MNIST手写数字的识别
- Important concepts of target detection - IOU, receptive field, hole convolution, mAP
- 软件测试在职2年跳槽4次,你还在怪老板不给你涨薪?
- 卸载redis
- Automated operation and maintenance tools - ansible, overview, installation, module introduction
- 18 years of programmer career, read more than 200 programming books, pick out some essence to share with you
- 家用 NAS 服务器(4)| MergerFS和SnapRaid数据定时备份
猜你喜欢

目标检测重要概念——IOU、感受野、空洞卷积、mAP

Install and use Google Chrome

leetcode一步解决链表反转问题
![[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays](/img/eb/9b05508e88b7f17d80de2afa8c08ce.png)
[C language] LeetCode26. Delete duplicates in an ordered array && LeetCode88. Merge two ordered arrays

21 Day Learning Challenge Schedule

Important concepts of target detection - IOU, receptive field, hole convolution, mAP

classSR论文阅读笔记

Redis-----非关系数据库

腾讯大咖分享 | 腾讯Alluxio(DOP)在金融场景的落地与优化实践

HCIP第十七天
随机推荐
代码编世界 科技创未来
51单片机外设篇:DS18B20
双重for循环案例(用js打印九九乘法表)
秒杀系统小demo
回文串求解的进阶方法
自动化运维工具——ansible、概述、安装、模块介绍
6W+字记录实验全过程 | 探索Alluxio经济化数据存储策略
分布式文件存储服务器之Minio对象存储技术参考指南
classSR论文阅读笔记
eggjs controller层调用controller层解决方案
Differences between i++ and ++i in loops in C language
Machine learning -- - theory of support vector machine (SVM)
Install and use Google Chrome
APP Bluetooth connection test of test technology
使用TinkerPop框架对GDB增删改查
[PSQL] window function, GROUPING operator
目标检测重要概念——IOU、感受野、空洞卷积、mAP
Timing task library in the language use Cron, rounding
测试技术之APP蓝牙连接测试
字节面试题:如何保证缓存和数据库的一致性