1. 程式人生 > >zabbix系列之八——安裝agent監控windows

zabbix系列之八——安裝agent監控windows

一、下載zabbix-agent客戶端

被監控的主機裝在windows server 2012 64位作業系統,被監控端需要安裝:

http://www.zabbix.com/downloads/3.2.0/zabbix_agents_3.2.0.win.zip

二、配置

下載完zip包,解壓後會有兩個資料夾bin 和 conf

配置conf資料夾中的zabbix_agentd.win.conf

1、設定Server、 ServerActive 和 Hostname

Server=172.20.10.241                          #監控服務端IP

ServerActive=172.20.10.241                 #監控服務端IP

Hostname=Windows host                      #客戶端主機名(預設就好)

三、開啟cmd視窗安裝並啟動

C:\soft\zabbix_agents_3.2.0.win\bin\win64>zabbix_agentd.exe -c C:\soft\zabbix_agents_3.2.0.win\conf\zabbix_agentd.win.conf -i
zabbix_agentd.exe [3672]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [3672]: event source [Zabbix Agent] installed successfully

C:\soft\zabbix_agents_3.2.0.win\bin\win64>zabbix_agentd.exe -c C:\soft\zabbix_agents_3.2.0.win\conf\zabbix_agentd.win.conf -s
zabbix_agentd.exe [3612]: service [Zabbix Agent] started successfully

 

檢視幫助命令:

C:\soft\zabbix_agents_3.2.0.win\bin\win64>zabbix_agentd.exe --help
usage:
  zabbix_agentd.exe [-c config-file]
  zabbix_agentd.exe [-c config-file] -p
  zabbix_agentd.exe [-c config-file] -t item-key
  zabbix_agentd.exe [-c config-file] -i [-m]
  zabbix_agentd.exe [-c config-file] -d [-m]
  zabbix_agentd.exe [-c config-file] -s [-m]
  zabbix_agentd.exe [-c config-file] -x [-m]
  zabbix_agentd.exe -h
  zabbix_agentd.exe -V

A Zabbix daemon for monitoring of various server parameters.

Options:
  -c --config config-file        Absolute path to the configuration file
                                 (default: "C:\zabbix_agentd.conf")
  -f --foreground                Run Zabbix agent in foreground
  -p --print                     Print known items and exit
  -t --test item-key             Test specified item and exit
  -m --multiple-agents           For -i -d -s -x functions service name will
                                 include Hostname parameter specified in
                                 configuration file
Functions:

  -i --install                   Install Zabbix agent as service
  -d --uninstall                 Uninstall Zabbix agent from service
  -s --start                     Start Zabbix agent service
  -x --stop                      Stop Zabbix agent service

  -h --help                      Display this help message
  -V --version                   Display version number

Example: zabbix_agentd -c C:\zabbix\zabbix_agentd.conf

Report bugs to: <https://support.zabbix.com>
Zabbix home page: <http://www.zabbix.com>
Documentation: <https://www.zabbix.com/documentation>

 四、服務端新增主機

 

 

獲取資料後: