rhel4 如何安装zabbix-agent

If you want use Zabbix 2.2, I think that more newer version using is better.

ex.
http://www.zabbix.com/downloads/2.2....23.i386.tar.gz

And, you can get conf and init script from rpm.
Download rpm file from Zabbix SIA's repo.
http://repo.zabbix.com/zabbix/2.2/rh...1.el5.i386.rpm

At first, you must add zabbix user.

ex.

Code:

# cd <work directory>
# useradd zabbix  -s /sbin/nologin -M

# wget http://www.zabbix.com/downloads/2.2.9/zabbix_agents_2.2.9.linux2_6_23.i386.tar.gz
# tar zxvf zabbix_agents_2.2.9.linux2_6_23.i386.tar.gz
# cp -p sbin/zabbix_agentd /usr/sbin/

# mkdir /etc/zabbix
# mkdir /etc/zabbix/zabbix_agentd.d/
# mkdir /var/log/zabbix
# chown zabbix:zabbix /var/log/zabbix
# mkdir /var/run/zabbix
# chown zabbix:zabbix /var/run/zabbix

# wget http://repo.zabbix.com/zabbix/2.2/rhel/5/i386/zabbix-agent-2.2.10-1.el5.i386.rpm
# rpm2cpio zabbix-agent-2.2.10-1.el5.i386.rpm | cpio -id
# cp -p etc/zabbix/zabbix_agentd.conf /etc/zabbix/
# cp -p etc/init.d/zabbix-agent /etc/init.d/
# vi /etc/zabbix/zabbix_agentd.conf

Please set Hostname, Server and ServerActive.
This is minumum setting.
 

Code:

# service zabbix-agent start
# chkconfig zabbix-agent on
posted @ 2019-07-31 10:17  希曼博客  阅读(64)  评论(0编辑  收藏  举报