mysql zabbix监控方法
mysql zabbix监控方法
# ubuntu 24版本
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu20.04_all.deb
wget https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_latest+ubuntu24.04_all.deb
sudo dpkg -i zabbix-release_latest+ubuntu24.04_all.deb
sudo apt update
sudo apt install zabbix-agent2 -y
vi /etc/zabbix/zabbix_agent2.conf
Server=10.xx.1.xx
Hostname=mysqldb
sudo apt install zabbix-agent2
sudo systemctl restart zabbix-agent2
sudo systemctl enable zabbix-agent2
docker update --restart=always
C:\zabbix_agent2-7.2.2-windows-amd64-static\bin>zabbix_agent2.exe --install --config c:\zabbix_agent2-7.2.2-windows-amd64-static\conf\zabbix_agent2.conf
Server=10.168.1.21
Hostname=mysqldb
安装完成后,重启 Zabbix Agent 2:
sudo systemctl restart zabbix-agent2
然后到zabbix 配置里面修改配置