1,准备好源码包zabbix-2.2.2.tar.gz
# pwd /usr/local/src # ls zabbix-2.2.2.tar.gz
2,编译安装
# tar -xzvf zabbix-2.2.2.tar.gz # cd zabbix-2.2.2 # ./configure --prefix=/usr/local/zabbix-2.2.2/ --enable-agent # make # make install
3,改配置文件
vim /usr/local/zabbix-2.2.2/etc/zabbix_agentd.conf LogFile=/tmp/zabbix_agentd.log Server=10.32.1.72 #配置成server端的ip ServerActive=10.32.1.72 Hostname=mysql_master_10.31.2.64
4,启动zabbix agentd
# cd /usr/local/zabbix-2.2.2/sbin ./zabbix_agentd
时间: 2024-11-17 10:09:26