zabbix的客户端安装

一,关闭selinux和防火墙

[root@localhost ~]# sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config

[root@localhost ~]#  setenforce  0

[root@localhost ~]# service iptables stop

安装需要的包   # lrzsz文件上传工具

[root@test3 ~]# yum -y install gcc lrzsz

上传zabbix安装包

[root@test3 ~]#wget http://jaist.dl.sourceforge.net/project/zabbix/ZABBIX%20Latest%20Stable/3.0.4/zabbix-3.0.4.tar.gz解压到当前目录根

创建zabbix用户

[root@test3 /]# groupadd zabbix

[root@test3 /]# useradd -g zabbix -s /sbin/nologin zabbix

解压到当前目录

[root@test3 /]# tar zxvf zabbix-3.0.4.tar.gz

[root@test3 /]# cd zabbix-3.0.4

[root@test3 zabbix-3.0.4]# pwd

/root/zabbix-3.0.4

编译、安装

[root@test3 zabbix-3.0.4]# ./configure --prefix=/usr/local/zabbix --enable-agent

[root@test3 zabbix-3.0.4]# make install

查找zabbix_agentd.conf

[root@test3 etc]# find / -name zabbix_agentd.conf

/root/zabbix-3.0.4/conf/zabbix_agentd.conf

/usr/local/zabbix/etc/zabbix_agentd.conf 

修改配置文件 /usr/local/zabbix/etc/zabbix_agentd.conf

[root@test3 zabbix-3.0.4]#  cd /usr/local/zabbix/etc/

[root@test3 etc]# pwd

/usr/local/zabbix/etc

[root@test3 etc]# ls

zabbix_agentd.conf  zabbix_agentd.conf.d

[root@test3 etc]#vim zabbix_agentd.conf

Server=192.168.244.155    ---服务端IP

Hostname=zabbix

ServerActive=127.0.0.1

开机启动

[root@test3 etc]# cp  zabbix-3.0.4/misc/init.d/fedora/core/zabbix_agentd  /etc/init.d/zabbix_agentd
[root@test3 etc]# chkconfig --add /etc/init.d/zabbix_agentd

[root@test3 etc]# chkconfig zabbix_agentd on

[root@test3 etc]# sed -i 's#BASEDIR=/usr/local#BASEDIR=/usr/local/zabbix#g' /etc/init.d/zabbix_agentd

[root@test3 etc]# /etc/init.d/zabbix_agentd start

Starting zabbix_agentd:                                    [  OK  ]

[root@test3 etc]# netstat -anpt | grep '10050'

tcp        0      0 0.0.0.0:10050               0.0.0.0:*                   LISTEN      8023/zabbix_agentd

原文地址:https://www.cnblogs.com/tangliyao/p/6769981.html