当前位置:网站首页>部署zabbix-agaent2与验证
部署zabbix-agaent2与验证
2022-07-17 05:21:00 【wfp___zzzz】
1.机器环境准备、2台zabbix客户端
2.注意时间正确
yum install ntpdate -y
ntpdate -u ntp.aliyun.com
3.时区的统一配置
mv /etc/localtime{,.bak}
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
4.提前配置好zabbix的yum源,
rpm -Uvh https://mirrors.aliyun.com/zabbix/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
sed -i ‘s#http://repo.zabbix.com#https://mirrors.aliyun.com/zabbix#' /etc/yum.repos.d/zabbix.repo
yum install -y zabbix-agent2
5.查看配置文件
vi /etc/zabbix/zabbix_agent2.conf
6.启动命令
ll /usr/sbin/zabbix_agent2
7.启动客户端
systemctl enable --now zabbix-agent2
netstat -tnlp | grep zabbix
8.修改agent2配置文件
vi /etc/zabbix/zabbix_agent2.conf
Server=服务器端ip
ServerActive=服务器端ip
Hostname=Hostname
9.重启zabbix-agent2
10.在服务器端上通过命令,主动获取数据
yum install -y zabbix-get
11.命令检查服务器是否连接上客户端
zabbix_get -s 'ip' -p 端口 -k 'system.hostname'
边栏推荐
猜你喜欢

Arabic numerals to Chinese

5-17 hidden student services of Shaanxi University of science and technology

F5 GTM (I): DNS parameters

关于STM汇编程序设计相关学习

STM32的PWM和DAC练习中生成音频和波形

Restapi implementation of automatic completion & case implementation (search box input for automatic completion)

Pytorch deep learning practice-b station Liu erden-day6

用Altium Designer绘制PCB图

STM32 serial communication related learning

Generate audio and waveform in PWM and DAC exercises of stm32
随机推荐
个人信息管理系统
Technical specification for secure electronic signature and password gm/t 0031 | GB / T 38540 format OpenSSL package analysis
Wu Enda machine learning chapter 3-4
Arabic numerals to Chinese
总价合同、成本补偿合同、工料合同
Restapi implementation of automatic completion & case implementation (search box input for automatic completion)
渣渣学习之路(1)输出某年某月的日历页
TCP/IP四层模型以及F5部分相关配置
FreeBSD 12 国内源提速 pkg 和 ports 做个笔记
tail -f暂停方法
University
STM32的PWM和DAC练习中生成音频和波形
什么是数据中台?
Openssl--- stack
Some problems encountered in work
通过数据加密方案阻止勒索攻击
Causes and solutions of over fitting
Slag learning road (2) pure white direction: win Server 2003 server building
基于SPI/IIC接口的OLED数据显示
Network layer and IP learning