1、先登录服务器查看服务器的内核版本和系统信息(uname -a),我的是2.6.32-431.el6.x86_64
2、从zabbix官网根据内核版本下载相应的客户端。
3、安装步骤
mkdir -p /usr/local/zabbix/ cd /usr/local/zabbix/ wget http://www.zabbix.com/downloads/2.2.5/zabbix_agents_2.2.5.linux2_6_23.amd64.tar.gz tar zxvf zabbix_agents_2.2.5.linux2_6_23.amd64.tar.gz groupadd zabbix useradd -g zabbix zabbix for i in *;do ln -s /usr/local/zabbix/bin/${i} /usr/bin/${i};done for i in *;do ln -s /usr/local/zabbix/sbin/${i} /usr/sbin/${i};done 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 cp /usr/local/zabbix/conf/zabbix_agentd.conf /usr/local/etc/ vi /usr/local/etc/zabbix_agentd.conf cp /usr/local/zabbix/sbin/zabbix_agentd /etc/init.d chmod a+x /etc/init.d/zabbix_agentd service zabbix_agentd start echo "service zabbix_agentd start" >>/etc/rc.local
zabbix客户端安装(Linux)
时间: 2024-12-26 06:22:16