1. agent安裝 on CentOS 7
1.1 agent下載、安裝
[root@client01 ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.2-0.el7.noarch.rpm
[root@client01 ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[root@client01 ~]# yum install zabbix-agent
1.2 配置修改
[root@client01 ~]# vim
/etc/zabbix/zabbix_agentd.conf
Server=192.168.16.215
ServerActive=192.168.16.215
Hostname=agent-linux-215
1.3 啟動agent
[root@client01 ~]# systemctl start zabbix-agent
2. agent安裝 on Windows 2008 R2
1.1 下載
zabbix_agents_3.2.0.win.zip
- Zabbix pre-compiled agents
- Zabbix 3.2
- 3.2.0
- Windows (All)
- i386,amd64
1.2 配置、安裝和啟動
- 解壓縮zabbix_agents_3.2.0.win.zip
- 拷貝zabbix_agents_3.2.0.win\bin\win64下所有文件到 C:\zabbix\
- 創(chuàng)建 C:\zabbix_agent.conf
LogFile=c:\zabbix_agentd.log
EnableRemoteCommands=1 ##激活遠(yuǎn)程執(zhí)行腳本
Server=192.168.16.215
ServerActive=192.168.16.215
Hostname=zabbix-win-1.211
- 安裝和啟動
右鍵點擊 命令提示符 , 以管理員身份運行 。
cd c:\zabbix
C:\zabbix>zabbix_agentd.exe --install
zabbix_agentd.exe [3388]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [3388]: event source [Zabbix Agent] installed successfully
C:\zabbix>zabbix_agentd.exe --start
zabbix_agentd.exe [664]: service [Zabbix Agent] started successfully