Installation
Create user
Groupadd Zabbix
Useradd-g Zabbix Zabbix
1) Unzip
Click ( here ) to collapse or open
TAR-ZXVF zabbix-2.2.4.tar.gz
2) Installation
CD zabbix-2.0.1
./configure--enable-agent
Make install
3) Installation Services
Click ( here ) to collapse or open
Cat >>/etc/services<<eof
Zabbix-agent 10050/tcp Zabbix Agent
Zabbix-agent 10050/UDP Zabbix Agent
Zabbix-trapper 10051/tcp Zabbix Trapper
Zabbix-trapper 10051/udp Zabbix Trapper
Eof
4) Modify the configuration file
Vi/etc/zabbix_agent.conf
Modify IP for Zabbix server
server=127.0.0.1 #若本机不是server, modify the
Host=*.*.*.* #agentIP地址
5) Create a service
CP misc/init.d/fedora/core/zabbix_agentd/etc/init.d/
chmod a+x/etc/init.d/zabbix_*
6) Start
Service Zabbix_agentd Start
PS Ax|grep Zabbix_agentd
8) test, the following command needs to be executed on the server side, where 127.0.0.1 is the agent's IP
Click ( here ) to collapse or open
Zabbix_get-s192.168.60.22-p10050-k "System.uptime"
If not executed, don't be too tangled.
This article is from the "luojing" blog, make sure to keep this source http://luojinghappy.blog.51cto.com/683032/1618892
zabbix-Installing Agent Client (Linux edition)