LoginSignup
61
63

More than 5 years have passed since last update.

ZabbixエージェントのWindowsへのセットアップメモ

Last updated at Posted at 2014-03-26

環境

Zabbix Server:CentOS
Zabbix Agent :Windows Server 2008 R2 Standard
Zabbixは2.2.1

メモ

1.下記URLからエージェントをダウンロード
http://www.zabbix.com/jp/download.php

2.対象のWindowsサーバに配置し、解凍すると「bin」と「conf」フォルダから「bin」を選ぶ

3.「win32」と「win64」のうち「win64」を選択

4.「zabbix_agentd.exe」「zabbix_get.exe」「zabbix_sender.exe」を\C直下「zabbix_agent」ディレクトリを作成して配置 ※ディレクトリの場所と名前は任意

5.2の「conf」の中の「zabbix_agentd.win.conf」を「zabbix_agentd.conf」として4の「zabbix_agent」ディレクトリへ保存

6.「zabbix_agentd.conf」を編集し保存する

LogFile=c:\zabbix_agentd.log
↓↓↓
LogFile=c:\zabbix_agent\zabbix_agentd.log

Server=127.0.0.1
↓↓↓
Server=<ZabbixサーバのIP>

ServerActive=127.0.0.1
↓↓↓
ServerActive=<ZabbixサーバのIP>:10051

Hostname=Windows host
↓↓↓
###Hostname=Windows host

# HostnameItem=system.hostname
↓↓↓
HostnameItem=system.hostname

# HostMetadata=
↓↓↓
HostMetadata=Windows

7.Zabbixサーバで「設定 -> アクション -> 自動登録」 でエージェントの自動登録を作成しておく

アクションの実行条件:ホストメタデータに含まれる Windows
アクションの実行内容:ホストを追加
ホストグループに追加:Windows
テンプレートとリンク:Template OS Windows

8.コマンドプロンプトで下記を実施し、インストールする ※helpで大体わかる

C:>cd zabbix_agent

C:\zabbix_agent>zabbix_agentd.exe -h
Zabbix Agent Win64 (service) v2.2.1 (revision 40801) (09 December 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

C:\zabbix_agent>zabbix_agentd.exe -i -c zabbix_agentd.conf
zabbix_agentd.exe [29588]: service [Zabbix Agent] installed successfully
zabbix_agentd.exe [29588]: event source [Zabbix Agent] installed successfully

9.zabbix_agentのスタート
C:\zabbix_agent>zabbix_agentd.exe -s -c zabbix_agentd.conf
zabbix_agentd.exe [29352]: service [Zabbix Agent] started successfully

10.zabbixサーバ側で追加されていることを確認

今後

アイテム等を今後検討していきたい。

61
63
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
61
63