Download and install Zabbix
Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it...
よく自分が忘れるのでメモ。
Windows機にZabbix Agentを導入する方法について、ドキュメントもありますがヘルプを見ると一発でわかります。
C:\zabbix>zabbix_agentd.exe --help
Zabbix Agent Win64 (service) v2.0.8 (revision 38015) (21 August 2013)
usage: zabbix_agentd.exe [-Vhp] [-idsx] [-m] [-c ] [-t ]
Options:
-c --config Absolute path to the configuration file
-p --print Print known items and exit
-t --test Test specified item and exit
-h --help Give this help
-V --version Display version number
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
-m --multiple-agents Service name will include hostname
手順
1. 任意の場所にZabbix用のディレクトリを作成する
2. 作成したディレクトリに、環境に合わせて32/64bitのbinを配置する。
3. 同じ場所にzabbix_agentd.conf
を配置し、環境に合わせて内容を編集する。
4. 管理者権限でコマンドプロンプトを起動する。
5. 作成したディレクトリに移動し、以下のコマンドを入力する。これでAgentのインストールを実施する。
zabbix_agentd.exe -i -c zabbix_agentd.conf
C:\zabbix>zabbix_agentd.exe -i -c zabbix_agentd.conf
zabbix_agentd.exe [14776]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [14776]: event source [Zabbix Agent] installed successfully
6. インストールが完了した後、Serviceとして起動するため以下のコマンドを実行する。
zabbix_agentd.exe -s -c zabbix_agentd.conf
zabbix_agentd.exe [14316]: service [Zabbix Agent] started successfully
7. 停止するときは以下のコマンドを実行する。
zabbix_agentd.exe -x -c zabbix_agentd.conf
zabbix_agentd.exe [19300]: service [Zabbix Agent] stopped successfully
8. Zabbix Agentをアンインストールするときは以下のコマンドを実行する。
zabbix_agentd.exe -d -c zabbix_agentd.conf
zabbix_agentd.exe [19816]: service [Zabbix Agent] uninstalled successfully
zabbix_agentd.exe [19816]: event source [Zabbix Agent] uninstalled successfully
以上。
参考:
ちなみに公式サイトのドキュメントはこちら。
2 Zabbix agent on Microsoft Windows