Quoted from: http://www.iyunv.com/thread-62087-1-1.html
*,Configuration Environment
yum install wget vim tree gcc gcc-c++ -y
*, download and unzip the zabbix client and create users and groups
groupadd -g 201 zabbix useradd -g zabbix -u 201 -s /sbin/nologin zabbix wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.4.5/zabbix-2.4.5.tar.gz tar xf zabbix-2.4.5.tar.gz cd zabbix-2.4.5
*, install zabbix client
./configure --prefix=/usr/local/zabbix --enable-agent make && make install
*, create log records
mkdir /var/log/zabbix chown zabbix.zabbix /var/log/zabbix
*. Copy the zabbix_agentd startup file to the /etc/init.d directory
cp misc/init.d/fedora/core/zabbix_agentd /etc/init.d/ chmod 755 /etc/init.d/zabbix_agentd
*, # Release 10050 and 10051 ports in iptables
iptables -I INPUT -p tcp -m multiport --dports 10050:10051 -j ACCEPT service iptables save #Save iptables rules
*, view iptables results
iptables -L -n
*, modify the startup file and configure the soft connection
sed -i "s@BASEDIR=/usr/local@BASEDIR=/usr/local/zabbix@g" /etc/init.d/zabbix_agentd ln -s /usr/local/zabbix/etc/ /etc/zabbix ln -s /usr/local/zabbix/bin/* /usr/bin ln -s /usr/local/zabbix/sbin/* /usr/sbin/
*, zabbix client core configuration file (server IP)
sed -i "s@Server=127.0.0.1@Server=192.168.**.208@g" /etc/zabbix/zabbix_agentd.conf sed -i "s@ServerActive=127.0.0.1@ServerActive=192.168.**.208:10051@g" /etc/zabbix/zabbix_agentd.conf sed -i "s@tmp/zabbix_agentd.log@var/log/zabbix/zabbix_agentd.log@g" /etc/zabbix/zabbix_agentd.conf sed -i "s@^# UnsafeUserParameters=0@UnsafeUserParameters=1\n@g" /etc/zabbix/zabbix_agentd.conf
*, set the zabbix client to start automatically after booting
chkconfig zabbix_agentd on
*, start the zabbix client
service zabbix_agentd start
*, close selinux
vim /etc/sysconfig/network Change it to selinux=disabled (it will take effect permanently, but it will not take effect without restarting)
*, do not restart to close selinux
setenforce 0