您的位置:首页 > 其它

deploy zabbix_agentd on zabbix client

2015-09-01 16:15 411 查看

Create user account

#groupadd zabbix
#useradd -g zabbix zabbix


Install

#wget http://7mnldi.com1.z0.glb.clouddn.com/zabbix-2.2.10.tar.gz #tar -xf zabbix-2.2.10.tar.gz
#cd zabbix-2.2.10
#./configure --enable-agent
#make install


Config

#grep -E -v '#|^$' /usr/local/etc/zabbix_agentd.conf

LogFile=/tmp/zabbix_agentd.log  #log file
Server=192.168.222.60   #zabbix server address
ServerActive=192.168.222.60:10051   #use Active mode and push monitor data to zabbix server
Hostname=clienthostname  #clien's hostname
Include=/usr/local/etc/zabbix_agentd.conf.d/
UnsafeUserParameters=1


Setup zabbix_agentd start when OS booted

#cp ../zabbix-2.2.10/misc/init.d/debian/zabbix-agent /etc/init.d/

#ll /etc/init.d/zabbix-agent
-rwxr-xr-x 1 root root 696 Sep  1 16:10 /etc/init.d/zabbix-agent*

#update-rc.d zabbix-agent defaults


done.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: