一 Ubuntu(linux)安装客户端
1 Ubuntu 24 安装Zabbix agent2
#安装agent库
sudo wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_7.0-1+ubuntu24.04_all.deb
sudo apt update
#
sudo apt install zabbix-agent2 zabbix-agent2-plugin-*
2 配置agent
sudo vim /etc/zabbix/zabbix_agent2.conf
Server=127.0.0.1 --> Server=192.168.50.1
ServerActive=127.0.0.1 --> ServerActive=192.168.50.1
Hostname=Zabbix server --> Hostname=ubuntu-50.19
3 启动服务
sudo systemctl restart zabbix-agent2
sudo systemctl enable zabbix-agent2
二 Centos 8.5(linux)安装客户端
1 安装agent库
rpm -Uvh https://repo.zabbix.com/zabbix/7.0/centos/8/x86_64/zabbix-release-7.0-1.el8.noarch.rpm
dnf clean all
2 安装Zabbix agent2
dnf install zabbix-agent2 zabbix-agent2-plugin-*
3 配置和启动
#修改配置
vim /etc/zabbix/zabbix_agent2.conf
Server=127.0.0.1 --> Server=192.168.50.1
ServerActive=127.0.0.1 --> ServerActive=192.168.50.1
Hostname=Zabbix server --> Hostname=centos85-50.8
#启动服务
systemctl restart zabbix-agent2
systemctl enable zabbix-agent2
三 zabbix web端,增加主机,模板,图形等配置
1 增加主机