【zabbix系列】安装与加入host
账号 admin password zabbix【client安装】
windowsclient
从官网下载zabbix-agent windows包http://www.zabbix.com/downloads/2.4.4/zabbix_agents_2.4.4.win.zip
压缩包中有两个文件夹bin 和conf
将bin\win64下的全部文件copy到c:\下
将conf\下的zabbix_agentd.conf copy到c:\下
改动zabbix_agentd.conf的内容为例如以下:
Server=10.0.0.10 \\zabbix服务端的ip
Hostname=windows test \\本地client的hostname,这一项有些要求以下解说。
LogFile=c:\zabbix_agentd.log \\本地log的位置
ListenPort=10050 \\port
ps:关于Hostname这一项须要注意,这里指定的hostname一定要与在zabbix服务端加入client中指定的hostname一
样才干够。
能够依照自己的意愿随意填写,与本机的系统hostname没有关联。
安装cmd命令行下:
zabbix_agentd.exe --install
zabbix_agentd.ext --start
linuxclient
sudo apt-get install -y zabbix-agent
改动配置文件sudo vim /etc/zabbix/zabbix_agentd.conf
Sever=10.0.0.10
Hostname=linux test
重新启动zabbix-agent服务
sudo service zabbix-agent restart
【zabbix加入host】
有两点很重要要注意
1.Hostname要与zabbix-agent中设置的hostname一致。
2.Templates中一定要设定正确的tempalte比方windows os就要选择Template OS Windows这个template
页:
[1]