1,准备好源码包zabbix-2.2.2.tar.gz
1
2
3
4
|
# pwd
/usr/local/src
# ls
zabbix-2.2.2.
tar
.gz
|
2,编译安装
1
2
3
4
5
|
# 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,改配置文件
1
2
3
4
5
|
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
1
2
|
# cd /usr/local/zabbix-2.2.2/sbin
./zabbix_agentd
|
本文转自 emma_cql 51CTO博客,原文链接:http://blog.51cto.com/chenql/1881470