1. 安装percona
cd /etc/yum.repos.d/
cat cdrom.repo
[cdrom]
basename=cdrom
baseurl=file:///media/cdrom
enabled=1
gpgcheck=0
cat percona.repo
[percona]
basename=percona
baseurl=file:///perconarpm
enabled=1
gpgcheck=0
cd /perconarpm
createrepo .
yum install *.rpm
service mysql start
2. 安装zabbix-agent
yum install zabbix zabbix-agent -y
3. 配置并启动zabbix
vim /etc/zabbix/zabbix_agentd.conf
Server=zserver
ServerActive=zserver
Hostname=zclient
service zabbix-agent start
4. 测试
zabbix-get -s CLIENTIP -k KEY
网友评论