客户端安装配置:
 
 
①环境
yum -y install gcc
 
 
②下载解压
tar zxf zabbix-1.8.6.tar.gz
 
 
 
③配置zabbix用户
useradd zabbix
cd zabbix-1.8.6
 
 
④编译安装zabbix
./configure --prefix=/usr/local/zabbix --enable-agent && \
make && \
make install
 
 
 
⑤zabbix服务配置
* 服务端口定义:
编辑 /etc/services,在后面追加:
cat >> /etc/services << "EOF"
zabbix-agent 10050/tcp Zabbix Agent
zabbix-agent 10050/udp Zabbix Agent
EOF
 
 
* 复制配置文件:
mkdir /etc/zabbix
cp misc/conf/zabbix_agent.conf /etc/zabbix/
cp misc/conf/zabbix_agentd.conf /etc/zabbix/
 
 
* 修改配置文件:
vi /etc/zabbix/zabbix_agent.conf
Server=192.168.168.100
 
vi /etc/zabbix/zabbix_agentd.conf
Server=192.168.168.100
Hostname=server30