Client Installation
1. Create Zabbix users and user groups
[Email protected] ~]# Groupadd Zabbix
[Email protected] ~]# useradd zabbix-g Zabbix
2. Download and compile
[Email protected] ~]# wget http://nchc.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/ Zabbix-2.4.5.tar.gz
[Email protected] ~]# tar zxf zabbix-2.4.5.tar.gz
[Email protected] ~]# CD zabbix-2.4.5
[Email protected] zabbix-2.4.5]#/configure--prefix=/usr/local/zabbix--enable-agent
[[email protected] zabbix-2.4.5]# make install
3. Set the startup script
[email protected] zabbix-2.4.5]# CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
[[email protected] zabbix-2.4.5] #sed-i ' s/basedir=\/usr\/local/basedir=\/usr\/local\/zabbix/g '/etc/init.d/zabbix_ Agentd
4. Configure zabbix_agentd.conf
[Email protected] zabbix-2.4.5]# vi/usr/local/zabbix/etc/zabbix_agentd.conf
Logfile=/tmp/zabbix_agentd.log
Enableremotecommands=0
server=192.168.0.219
listenport=10050
listenip=192.168.0.230
Startagents=8
serveractive=192.168.0.219
Hostname=zabbix-agent1
Timeout=30
Unsafeuserparameters=1
5. Start the service and set the boot up
[[email protected] zabbix-2.4.5]#/etc/init.d/zabbix_agentd start
[Email protected] spool]# chkconfig zabbix_agentd on
[Email protected] spool]# Ps-ef|grep zabbix_agentd #查看服务是否启动
[Email protected] spool]# Netstat-lnp|grep 10050 #默认是10050端口
TCP 0 0 192.168.0.230:10050 0.0.0.0:* LISTEN 5272/zabbix_agentd
Zabbix-agent Installation