アクティブチェックについて
いつもお世話になっております、 コンベックス横川です。
設定について教えて下さい。
zabbix 2.0 を使用してアクティブチェックを使用してディスク監視の設定を行おうとしています。zabbix serverはLinx で監視対象はwindows serverです。構成はWAN環境でLINAXのレンタルサーバにzabbix server をたて、各企業のWin serverのディスク容量監視をアクティブチェックを使用して実施しようとしています。この時、幾つかはアクティブチェックで監視状態になりますが、多くはアイテムのステータスが
『取得不可』の表示となって監視情報を取得できません。
上手くいっていないサーバのzabbix_agentd.logには
Starting Zabbix Agent [K000_telmax-db2]. Zabbix 2.0.1 (revision 28450).
agent #0 started [collector]
agent #1 started [listener]
agent #2 started [listener]
agent #3 started [listener]
agent #4 started [active checks] のメッセージが出力されています。
またサーバ側のzabbix_server.logには
cannot send list of active checks to [ 各IPアドレス ] : host [ K210_TELEALL-ONE ] not found
の様に監視対象としているサーバの情報がcannnot send list で出力されています。
正しくアクティブチェックできるようにする為の確認項目があれば教えて下さい。
宜しくお願い致します。
TNK - 投稿数: 4671
ZabbixのWebフロントエンドを利用して登録したホストの名称と、
Zabbixエージェントをインストールした監視対象上のzabbix_agentd.conf
内のHostnameで指定したホスト名が大文字小文字含めて一致しているか
ご確認ください。
また、Zabbix 2.0以降であれば、zabbix_agentd.conf内のServerActiveにも
Serverと同じ値を設定したかと、Zabbixサーバに対して監視対象のサーバから、
ポート番号10051で接続できるようになっているか、Firewallなどの設定も確認
してください。
yoko_masa - 投稿数: 21
ご回答ありがとうございます。
Active checkについてもう少し教えて下さい。
Active check を有効とするのに必要なconf fileの設定箇所があれば知りたいのですが。
◎conf fileの下記部分に設定が必要なのでしょうか?
##### Active checks related
### Option: ServerActive
# List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.
# If port is not specified, default port is used.
# IPv6 addresses must be enclosed in square brackets if port for that host is specified.
# If port is not specified, square brackets for IPv6 addresses are optional.
# If this parameter is not specified, active checks are disabled.
# Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
#
# Mandatory: no
# Default:
# ServerActive=
ServerActive=180.37.182.140
### Option: Hostname
# Unique, case sensitive hostname.
# Required for active checks and must match hostname as configured on the server.
# Value is acquired from HostnameItem if undefined.
#
# Mandatory: no
# Default:
# Hostname=
#Hostname=Zabbix server
Hostname=K000_TELMAX-DB3
### Option: HostnameItem
# Item used for generating Hostname if it is undefined.
# Ignored if Hostname is defined.
#
# Mandatory: no
# Default:
# HostnameItem=system.hostname
### Option: RefreshActiveChecks
# list of active checks is refreshed, in seconds.
#
# Mandatory: no
# Range: 60-3600
# Default:
# RefreshActiveChecks=120
RefreshActiveChecks=600
### Option: BufferSend
# Do not keep data longer than N seconds in buffer.
#
# Mandatory: no
# Range: 1-3600
# Default:
# BufferSend=5
BufferSend=60
### Option: BufferSize
# Maximum number of values in a memory buffer. The agent will send
# all collected data to Zabbix Server or Proxy if the buffer is full.
#
# Mandatory: no
# Range: 2-65535
# Default:
# BufferSize=100
BufferSize=2048
### Option: MaxLinesPerSecond
# Maximum number of new lines the agent will send per second to Zabbix Server
# or Proxy processing 'log' and 'logrt' active checks.
# The provided value will be overridden by the parameter 'maxlines',
# provided in 'log' or 'logrt' item keys.
#
# Mandatory: no
# Range: 1-1000
# Default:
# MaxLinesPerSecond=100
MaxLinesPerSecond=100
### Option: AllowRoot
# Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
# will try to switch to user 'zabbix' instead. Has no effect if started under a regular user.
# 0 - do not allow
# 1 - allow
#
# Mandatory: no
# Default:
# AllowRoot=0
AllowRoot=1
回答の程宜しくお願い致します。
TNK - 投稿数: 4671
アクティブチェックを行うだけであれば、zabbix_agentd.confのデフォルトから
変更して設定すべき項目は以下の通りです。
・Hostname
・ServerActive
他の項目をデフォルト以外に変更されたのであれば、何を変更されたのかによって
は、その設定に合わせて他の項目も設定する必要があります。
Zabbixサーバ側の変更が必要になる場合もあります。
例えば、IPアドレスやポート番号をデフォルトから変更されているのであれば、
それに合わせてZabbixサーバ側の設定も変更を行ってください。
その他に必要なのは、zabbix_agentdからServerActiveで指定したzabbix_server
が稼働しているサーバのIPのポート番号10051番を利用してアクセスできるように
Firewallなどのネットワークの接続許可設定を行っておくだけです。
きちんと設定を行っても値が取得できないようであれば、confファイルのDebugLevel
を4に設定して、エージェントを再起動しログ内容を確認してみてください。
大量にログが出力されますので、動作確認後は元に戻してエージェントを再起動
しておくようにしてください。