Download idea) create a user # groupadd &
Download
Http://www.zabbix.com/downloads/2.2.1/zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz
All Agent versions Download: http://www.zabbix.com/download2.php
Install
1) create a user
# Groupadd zabbix
# Useradd-g zabbix
2) unzip the package.
# Mkdir/etc/zabbix_agent
# Tar-zxvf zabbix_agents_2.2.1.linux2_6_23.i386.tar.gz-C/etc/zabbix_agent
3) install the service
Cat/etc/services | grep zabbix *
Zabbix-agent 10050/tcp Zabbix Agent
Zabbix-agent 10050/udp Zabbix Agent
Zabbix-trapper 10051/tcp Zabbix Trapper
Zabbix-trapper 10051/udp Zabbix Trapper
4) modify the configuration file
Vim/etc/zabbix_agent/conf/zabbix_agent.conf
Modify the ip address of Zabbix server
Server = 192.168.30.145 # server IP address, please modify
5) start
Etc/zabbix_agent/sbin/zabbix_agentd-c etc/zabbix_agent/conf/zabbix_agentd.conf
Echo "etc/zabbix_agent/sbin/zabbix_agentd-c etc/zabbix_agent/conf/zabbix_agentd.conf">/etc/rc. local
6) add to system directory
Ln-s/etc/zabbix_agent/sbin/*/usr/local/sbin/
Ln-s/etc/zabbix_agent/bin/*/usr/local/bin/
7) test. the following command must be executed on the server, where 192.168.30.145 is the ip address of the agent.
#/Usr/local/zabbix/bin/zabbix_get-s192.168.30.145-p10050-k "system. uptime"
115030