1. Create User
Groupadd Zabbix
Useradd zabbix-g Zabbix
2, installation
wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/2.2.7/zabbix-2.2.7.tar.gz
Tar zxvf zabbix-2.2.7.tar.gz
CD zabbix-2.2.7
./configure--prefix=/usr/local/zabbix--enable-agent
Make install
CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
vim/etc/init.d/zabbix_agentd# Basedir=/usr/local modified to Basedir=/usr/local/zabbix
3, open the port
Vim/etc/sysconfig/iptables
#zabbix
-A input-p tcp-s 192.168.1.2--dport 10050-j ACCEPT #192.168.1.2 for service-side IP
Service Iptables Restart
4. Start test
Service Zabbix_agentd Start
/usr/local/zabbix/bin/zabbix_get-s 127.0.0.1-p10050-k "System.uptime" #有输出说明就启动成功了
If you need the server to use it, you need to modify it as follows
vim/usr/local/zabbix/etc/zabbix_agentd.conf IP #更改Server =127.0.0.1 in 127.0.0.1 as server
Service Zabbix_agentd Restart