Zabbix添加监控主机
1. 手动添加(少量被监控主机,当agent数量时,)2. 自动注册
3. 自动发现请参考另一篇博文:http://www.cnblogs.com/Z-style/p/6165548.html
1.手动添加
(1)安装agent
root@gitlab:~# wget http://repo.zabbix.com/zabbix/3.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_3.2-1+trusty_all.deb
root@gitlab:~# dpkg -i zabbix-release_3.2-1+trusty_all.deb
root@gitlab:~# apt-get update
root@gitlab:~# apt-get install zabbix-agent -y
(2)配置agent
Vim /etc/zabbix/zabbix_agentd.conf
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=0
Server=serverip
ServerActive=serverip
Hostname=123.57.163.127
Include=/etc/zabbix/zabbix_agentd.d/
(3)重启
/etc/init.d/zabbix-agent restart
页:
[1]