zabbix客户端安装配置

1.下载,解压并安装zabbix
tar zxvf zabbix-2.0.12.tar.gz
cd zabbix-2.0.12
./configure --prefix=/usr/local/zabbix --enable-agent
make&&make install


2.配置zabbix_agentd
groupadd zabbix
useradd -g zabbix zabbix

chown zabbix:zabbix -R /usr/local/zabbix

cp misc/init.d/fedora/core5/zabbix_agentd /etc/init.d/
vi /usr/local/zabbix/etc/zabbix_agentd.conf

 

Server=zabbix serverip地址
ListenPort=10050
ServerActive=zabbix serverip地址

Hostname=agent地址
Timeout=15

 

3.配置zabbixagent系统服务启动脚本
vi /etc/init.d/zabbix_agentd
prog="zabbix Agent"
ZABBIX_BIN="/usr/local/zabbix/sbin/zabbix_agentd"
CONF_FILE="/usr/local/zabbix/etc/zabbix_agentd.conf"


if [ ! -x ${ZABBIX_BIN} ] ; then
echo -n "${ZABBIX_BIN} not installed! "
# Tell the user this has skipped
exit 5
fi

start() {
echo -n $"Starting $prog: "
daemon $ZABBIX_BIN -c $CONF_FILE

4.chkconfig --level 35 zabbix_agentd on
/etc/init.d/zabbix_agentd start

posted on 2014-08-11 10:35  zitong  阅读(313)  评论(0编辑  收藏  举报