部署zabbix代理

一、安装数据库
Mysql安装略:
 
二、安装zabbix proxy
useradd -M -s /sbin/nologin zabbix
yum -y install net-snmp-devel libssh2-devel OpenIPMI-devel
tar xvf zabbix-2.0.5.tar.gz
cd zabbix-2.0.5
./configure --prefix=/usr/local/zabbix --enable-proxy --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --enable-ipv6 --with-net-snmp --with-libcurl --with-ssh2 --with-openipmi
make install
 
错误:
1.configure: error: Not found mysqlclient library
yum -y install mysql-devel
 
2.configure: error: Curl library not found
yum -y install curl-devel
 
 
三、配置zabbix proxy
# vim /usr/local/zabbix/etc/zabbix_proxy.conf
ProxyMode=0 #主动模式
Server=10.1.8.24  #zabbix 服务端地址
ServerPort=10051
Hostname=10.0.65.20
SourceIP=10.0.65.20
LogFile=/tmp/zabbix_proxy.log
DBHost=127.0.0.1
DBName=zabbix
DBUser=zabbix
DBPassword=***
ProxyOfflineBuffer=2  #当连接不上zabbix服务端时,保留2小时的数据,旧数据丢失
ConfigFrequency=300 #从服务端获取配置的间隔时间,单位s
DataSenderFrequency=20 #代理发送数据时间间隔,单位s
StartPollers=10
CacheSize=64M #存储host和item数据的共享内存
Timeout=10
TrapperTimeout=30
 
 


来自为知笔记(Wiz)


你可能感兴趣的:(部署zabbix代理)