For logging configuration of Zabbix daemons “LogFile” configuration parameter is used. If this parameter is left empty (LogFile=), syslog logging facilities are used. All Zabbix daemons on Unix-like platforms log their messages from “Daemon” environment. The mapping between Zabbix logging levels and syslog levels is as follows:
| Zabbix log level | syslog log level | Comments |
|---|---|---|
| 0 - empty (LOG_LEVEL_EMPTY) | syslog is not used. | All messages are skipped. |
| 1 - critical information (LOG_LEVEL_CRIT) | critical conditions (LOG_CRIT) | |
| 2 - error information (LOG_LEVEL_ERR) | error conditions (LOG_ERR) | |
| 3 - warnings (LOG_LEVEL_WARNING) | warning conditions (LOG_WARNING) | |
| 4 - for debugging (LOG_LEVEL_DEBUG) | debug-level messages (LOG_DEBUG) |
For syslog configuration consult the corresponding literature.
Zabbix agent under Windows uses Event Log if “LogFile” configuration parameter is provided empty. Mapping between Zabbix log levels (messages of corresponding type) and Windows Event Log entries type is provided below:
| Zabbix log level | Windows Event Log entry type | Comments |
|---|---|---|
| 0 - empty (LOG_LEVEL_EMPTY) | Event Log is not used. | All messages are skipped. |
| 1 - critical information (LOG_LEVEL_CRIT) 2 - error information (LOG_LEVEL_ERR) | EVENTLOG_ERROR_TYPE | Error |
| 3 - warnings (LOG_LEVEL_WARNING) | EVENTLOG_WARNING_TYPE | Warning |
| 4 - for debugging (LOG_LEVEL_DEBUG) | EVENTLOG_INFORMATION_TYPE | Information |
Zabbixサーバは、Zabbixソフトウェアの中心となるプロセスです。Zabbixサーバを起動するには、以下のコマンドを実行します:
shell> cd sbin shell> ./zabbix_server
1.8.3以降、Zabbixサーバはネットワーク的に到達不可(unreachable)なホストの処理が改善されています。If a poller finds in the item queue an item from an unreachable host, it takes the item and marks the host as being checked currently. Other pollers do not take items from a host, which is marked like that. As a result, unreachable host will be checked by at most one poller at a time. Also, at most one item for an unreachable host will be tried at a time. Given that, it was decided to remove specific poller class for unreachable hosts.
Zabbixサーバは、デーモンプロセスとして動作します。以下のコマンドラインパラメータを指定できます。
-c --config <file> specify configuration file, default is /etc/zabbix/zabbix_server.conf -h --help give this help -v --version display version number
ヘルプを表示するには、以下のコマンドを実行します。
shell> zabbix_server -h
コマンドラインパラメータの使用例を示します。
shell> zabbix_server -c /usr/local/etc/zabbix_server.conf shell> zabbix_server --help shell> zabbix_server -v
設定ファイルには、zabbix_serverが使用する設定パラメータが格納されています。このファイルは必須であり、ユーザzabbixはこのファイルに対する読み取りパーミッションが必要です。以下のパラメータがサポートされています。
| パラメータ | 必須 | 範囲 | デフォルト値 | 説明 |
|---|---|---|---|---|
| AlertScriptsPath | × | /home/zabbix/bin/ | アラート スクリプトの格納先 | |
| CacheSize | × | 128K-1G | 8M | 設定キャッシュサイズ(バイト単位)。 ホストとアイテムデータを記憶させる共有メモリサイズ。 |
| CacheUpdateFrequency | × | 1-3600 | 60 | Zabbixがキャッシュの更新を実行する頻度(秒単位)を指定します。 |
| DBHost | × | localhost | データベースホスト名。 localhostを設定した場合、MySQLはソケットを使用します。 |
|
| DBName | ○ | データベース名。 SQLite3はデータベース・ファイルのpathを指定する。DBUserとDBPasswordは無視される。 |
||
| DBPassword | × | データベース接続ユーザのパスワード。SQLiteの場合、無視される。 パスワードが使用されなと言うことに注意して下さい。 |
||
| DBPort | × | 1024-65535 | 3306 | ローカルソケットの場合データベースポートは使用されない。SQLiteの場合、無視される。 |
| DBSocket | × | /tmp/mysql.sock | MySQLソケットのパス。 | |
| DBUser | × | データベースのユーザ。SQLiteの場合、無視される。 | ||
| DebugLevel | × | 0-4 | 3 | デバックレベルの出力 0 - 出力なし 1 - クリティカル情報 2 - エラー情報 3 - 警告 4 - デバッグ 情報(大量の情報が出力されます) |
| DisableHousekeeping | × | 0-1 | 0 | 1に設定した場合、housekeeperが無効になります。 |
| ExternalScripts | × | /etc/zabbix/externalscripts | 外部 スクリプトの格納先 | |
| Fping6Location | × | /usr/sbin/fping6 | fping6の格納先。 fping6の実行ファイルにroot権限とSUIDフラグが設定されていることを確認して下さい。 fpingユーティリティがIPv6アドレスの処理を行える場合、空白を設定してください(“Fping6Location=”)。 |
|
| FpingLocation | × | /usr/sbin/fping | fpingの格納先。 fpingの実行ファイルにroot権限とSUIDフラグが設定されていることを確認して下さい! |
|
| HistoryCacheSize | × | 128K-1G | 8M | ヒストリキャッシュのサイズ(バイト単位)。 ヒストリデータを記憶させる共有メモリサイズ。 |
| HistoryTextCacheSize | × | 128K-1G | 16M | テキストのヒストリキャッシュサイズ(バイト単位)。 文字、テキストおよびログ履歴データを記憶させる共有メモリサイズ。 |
| HousekeepingFrequency | × | 1-24 | 1 | Zabbixがhousekeepingする頻度(時間単位)を指定します。 Housekeepingは history、 alertとalarmsテーブルから保存期間の経過した情報を削除します。 PostgreSQLを使用する場合は、VACUUMが実行されるので値は24を推奨します。 |
| MaxHousekeeperDelete | × | 0-1000000 | 500 | No more than 'MaxHousekeeperDelete' rows (corresponding to [tablename], [field], [value]) will be deleted per one task in one housekeeping cycle. SQLite3 does not use this parameter, deletes all corresponding rows without a limit. If set to 0 then no limit is used at all. In this case you must know what you are doing! このオプションは1.8.2以上のバージョンでサポートされます。 |
| Include | × | 設定ファイルと同じディレクトリにある個々のファイルまたは全てのファイルをインクルードできます。 | ||
| ListenIP | × | 0.0.0.0 | trapperがlistenするIPアドレスをカンマ区切りで指定します。 設定が存在しない場合、トラッパーは全ネットワークインタフェースで待ち受けます。 複数IPアドレスは1.8.3以上のバージョンでサポートされます。 |
|
| ListenPort | × | 1024-32767 | 10051 | トラッパーの待ち受けポート。 |
| LogFileSize | × | 0-1024 | 1 | ログファイルの最大サイズ(MB単位)。 0 - 自動ログローテーション無効 |
| LogFile | × | ログファイル名。 | ||
| LogSlowQueries | × | 0-3600000 | 0 | クエリが指定したミリ秒以上要した場合にログファイルにクエリを出力します。 0 - スローログクエリ無効 このオプションは1.8.2以上のバージョンでサポートされます。 |
| NodeID | × | 0-999 | 0 | 分散監視でユニークなNodeIDを設定。 0 - スタンドアロンサーバ |
| NodeNoEvents | × | 0-1 | 0 | 1に設定すると、ローカルイベントはマスターノードに送信されません。 This won't impact ability of this node to propagate events from its child nodes. |
| NodeNoHistory | × | 0-1 | 0 | 1に設定すると、ローカルヒストリはマスターノードに送信されません。 This won't impact ability of this node to propagate history from its child nodes. |
| PidFile | × | /tmp/zabbix_server.pid | PIDファイル名。 | |
| SSHKeyLocation | × | SSHチェックの公開キーの格納先。 | ||
| SenderFrequency | × | 5-3600 | 30 | Zabbixアラートを送信する頻度 (秒)を指定。 |
| SourceIP | × | 接続に使用するソースIPアドレス。 | ||
| StartDBSyncers | × | 1-64 | 4 | DB Syncersのインスタンス数。 このオプションは1.8.3以上のバージョンでサポートされます。 |
| StartDiscoverers | × | 0-255 | 1 | discoverersのインスタンス数。 |
| StartHTTPPollers | × | 0-255 | 1 | HTTP pollerのインスタンス数。 |
| StartIPMIPollers | × | 0-255 | 0 | IPMI pollersのインスタンス数。 |
| StartPingers | × | 0-255 | 1 | ICMP pingersのインスタンス数。 |
| StartPollersUnreachable | × | 0-255 | 1 | unreachableホスト用のpollerインスタンス数。 1.8.3から廃止 |
| StartPollers | × | 0-255 | 5 | pollerのインスタンス数。 30以上のポーラーを実行させるべきではありません。 |
| StartTrappers | × | 0-255 | 5 | trapperのインスタンス数。 |
| Timeout | × | 1-30 | 3 | エージェント、SNMPデバイス及び外部チェックのタイムアウト(秒単位)。 |
| TmpDir | × | /tmp | テンポラリディレクトリ | |
| TrapperTimeout | × | 1-300 | 300 | trapperが新規データを受信して処理を行う際のタイムアウト。 |
| TrendCacheSize | × | 128K-1G | 4M | トレンドキャッシュのサイズ(バイト単位)。 トレンド・データを記憶させる共有メモリサイズ。 |
| UnavailableDelay | × | 1-3600 | 60 | ホストが利用不可能になった場合に再接続を行う期間(秒)。 |
| UnreachableDelay | × | 1-3600 | 15 | ホストが接続不可能になった場合に再接続を行う期間(秒)。 |
| UnreachablePeriod | × | 1-3600 | 45 | 到達不可能となったホストを利用不可能と判断するまでの時間(秒)。 |
Zabbixプロキシは、1つまたは複数の監視対象デバイスからパフォーマンスおよび可用性データを収集し、その情報をZabbixサーバに送信するプロセスです。Zabbixプロキシを起動するには、以下のコマンドを実行します:
shell> cd sbin shell> ./zabbix_proxy
Zabbixプロキシは、デーモンプロセスとして動作します。以下のコマンドラインパラメータを指定できます。
-c --config <file> specify configuration file, default is /etc/zabbix/zabbix_proxy.conf -h --help give this help -v --version display version number
ヘルプを表示するには、以下のコマンドを実行します。
shell> zabbix_proxy -h
コマンドラインパラメータの使用例を示します。
shell> zabbix_proxy -c /usr/local/etc/zabbix_proxy.conf shell> zabbix_proxy --help shell> zabbix_proxy -v
設定ファイルには、zabbix_proxyが使用する設定パラメータが格納されています。このファイルは必須であり、ユーザzabbixはこのファイルに対する読み取りパーミッションが必要です。以下のパラメータがサポートされています。
| パラメータ | 必須 | 範囲 | デフォルト値 | 説明 |
|---|---|---|---|---|
| CacheSize | × | 128K-1G | 8M | 設定キャッシュサイズ(バイト単位)。 ホストとアイテムデータを記憶させる共有メモリサイズ。 |
| CacheUpdateFrequency | × | 1-3600 | 60 | Zabbixがキャッシュの更新を実行する頻度(秒単位)を指定します。 |
| ConfigFrequency | × | 0-3600*24*7 | 3600 | プロキシで設定データを再取得する頻度(秒単位)を指定します。 |
| DBHost | × | localhost | データベースホスト名。 localhostを設定した場合、MySQLはソケットを使用します。 |
|
| DBName | ○ | データベース名。 SQLite3はデータベース・ファイルのpathを指定する。DBUserとDBPasswordは無視される。 |
||
| DBPassword | × | データベース接続ユーザのパスワード。SQLiteの場合、無視される。 パスワードが使用されなと言うことに注意して下さい。 |
||
| DBSocket | × | 3306 | MySQLソケットのパス。 ローカルソケットの場合データベースポートは使用されない。SQLiteの場合、無視される。 |
|
| DBUser | データベースのユーザ。SQLiteの場合、無視される。 | |||
| DataSenderFrequency | × | 0-3600 | 1 | プロキシが収集したデータを送信する頻度(秒単位)を指定します。 |
| DebugLevel | × | 0-4 | 3 | デバックレベルの出力 0 - 出力なし 1 - クリティカル情報 2 - エラー情報 3 - 警告 4 - デバッグ 情報(大量の情報が出力されます) |
| ExternalScripts | × | /etc/zabbix/externalscripts | 外部 スクリプトの格納先 | |
| Fping6Location | × | /usr/sbin/fping6 | fping6の格納先。 fping6の実行ファイルにroot権限とSUIDフラグが設定されていることを確認して下さい。 fpingユーティリティがIPv6アドレスの処理を行える場合、空白を設定してください(“Fping6Location=”)。 |
|
| FpingLocation | × | /usr/sbin/fping | fpingの格納先。 fpingの実行ファイルにroot権限とSUIDフラグが設定されていることを確認して下さい! |
|
| HeartbeatFrequency | × | 0-3600 | 60 | ハートビートメッセージの頻度(秒単位)を指定します。 サーバ側でProxyが有効かモニターするために使用します。 0 - ハードビートメッセージ無効 |
| HistoryCacheSize | × | 128K-1G | 8M | ヒストリキャッシュのサイズ(バイト単位)。 ヒストリデータを記憶させる共有メモリサイズ。 |
| HistoryTextCacheSize | × | 128K-1G | 16M | テキストのヒストリキャッシュサイズ(バイト単位)。 文字、テキストおよびログ履歴データを記憶させる共有メモリサイズ。 |
| Hostname | × | 一意なプロキシ名。Proxy名をサーバーが認識している事を確認して下さい! システムのホスト名を使用しても認識できません。 |
||
| HousekeepingFrequency | × | 1-24 | 1 | Zabbixがhousekeepingする頻度(時間単位)を指定します。 Housekeepingは history、 alertとalarmsテーブルから保存期間の経過した情報を削除します。 PostgreSQLを使用する場合は、VACUUMが実行されるので値は24を推奨します。 |
| Include | × | 設定ファイルと同じディレクトリにある個々のファイルまたは全てのファイルをインクルードできます。 | ||
| ListenIP | × | 0.0.0.0 | trapperがlistenするIPアドレスをカンマ区切りで指定します。 設定が存在しない場合、トラッパーは全ネットワークインタフェースで待ち受けます。 複数IPアドレスは1.8.3以上のバージョンでサポートされます。 |
|
| ListenPort | × | 1024-32767 | 10051 | トラッパーの待ち受けポート。 |
| LogFileSize | × | 0-1024 | 1 | ログファイルの最大サイズ(MB単位)。 0 - 自動ログローテーション無効 |
| LogFile | × | ログファイル名。 設定しない場合、syslogが使用されます。 |
||
| LogSlowQueries | × | 0-3600000 | 0 | クエリが指定したミリ秒以上要した場合にログファイルにクエリを出力します。 0 - スローログクエリ無効 このオプションは1.8.2以上のバージョンでサポートされます。 |
| PidFile | × | /tmp/zabbix_proxy.pid | PIDファイル名。 | |
| ProxyLocalBuffer | × | 0-720 | 0 | プロキシがデータをローカルに保持する期間(時間単位)を指定します。 サードパーティのアプリケーションでローカルデータを使用する場合、このパラメータを使用できます。 |
| ProxyOfflineBuffer | × | 0-720 | 1 | Zabbixサーバに接続できない場合にプロキシがデータを保持する期間(時間単位)を指定します。 設定値より古いデータは失われます。 |
| SSHKeyLocation | × | SSHチェックの公開キーの格納先。 | ||
| ServerPort | × | 1024-32767 | 10051 | ZabbixサーバーのZabbix trapperのポート |
| Server | ○ | ZabbixサーバのIPアドレス(またはホスト名)。 ProxyはServeから設定データを取得します。 |
||
| SourceIP | × | 接続に使用するソースIPアドレス。 | ||
| StartDBSyncers | × | 1-64 | 4 | DB Syncersのインスタンス数。 このオプションは1.8.3以上のバージョンでサポートされます。 |
| StartDiscoverers | × | 0-255 | 1 | discoverersのインスタンス数。 |
| StartHTTPPollers | × | 0-255 | 1 | HTTP pollerのインスタンス数。 |
| StartIPMIPollers | × | 0-255 | 0 | IPMI pollersのインスタンス数。 |
| StartPingers | × | 0-255 | 1 | ICMP pingersのインスタンス数。 |
| StartPollersUnreachable | × | 0-255 | 1 | unreachableホスト用のpollerインスタンス数。 1.8.3から廃止 |
| StartPollers | × | 0-255 | 5 | pollerのインスタンス数。 30以上のポーラーを実行させるべきではありません。 |
| StartTrappers | × | 0-255 | 5 | trapperのインスタンス数。 |
| Timeout | × | 1-30 | 3 | エージェント、SNMPデバイス及び外部チェックのタイムアウト(秒単位)。 |
| TmpDir | × | /tmp | テンポラリディレクトリ | |
| TrapperTimeout | × | 1-300 | 300 | trapperが新規データを受信して処理を行う際のタイムアウト。 |
| TrendCacheSize | × | 128K-1G | 4M | トレンドキャッシュのサイズ(バイト単位)。 トレンド・データを記憶させる共有メモリサイズ。 |
| UnavailableDelay | × | 1-3600 | 60 | ホストが利用不可能になった場合に再接続を行う期間(秒)。 |
| UnreachableDelay | × | 1-3600 | 15 | ホストが接続不可能になった場合に再接続を行う期間(秒)。 |
| UnreachablePeriod | × | 1-3600 | 45 | 到達不可能となったホストを利用不可能と判断するまでの時間(秒)。 |
Zabbix UNIXエージェントは、監視されるホスト上で動作します。エージェントはホストのパフォーマンスと可用性に関する情報をZabbixサーバに送信します。エージェントは、タイプが「Zabbixエージェント」または「Zabbixエージェント(アクティブ)」のアイテムを処理します。
Zabbixエージェントを起動するには、以下のコマンドを実行します:
shell> cd sbin shell> ./zabbix_agentd
Zabbixエージェントはデーモンプロセスとして動作します。Zabbixエージェントは以下のコマンドラインパラメータを指定できます。
-c --config <file> specify configuration file, default is /etc/zabbix/zabbix_agentd.conf -h --help give this help -v --version display version number -p --print print supported metrics and exit -t --test <metric> test specified metric and exit
ヘルプを表示するには、以下のコマンドを実行します。
shell> zabbix_agentd -h
コマンドラインパラメータの使用例を示します。
shell> zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf shell> zabbix_agentd --help shell> zabbix_agentd --print shell> zabbix_agentd -t "system.cpu.load[all,avg1]"
設定ファイルにはzabbix_agentdが使用する設定パラメータが格納されています。このファイルは必須であり、ユーザzabbixはこのファイルに対する読み取りパーミッションが必要です。以下のパラメータがサポートされています。
| パラメータ | 必須 | 範囲 | デフォルト値 | 説明 |
|---|---|---|---|---|
| BufferSend | × | 1-3600 | 5 | バッファにデータを保持する期間(秒単位)を指定します。 |
| BufferSize | × | 2-65535 | 100 | バッファに格納する値の最大数を指定します。バッファが一杯になったら Zabbixサーバおよびproxyに収集したデータを送信します。 |
| DebugLevel | × | 0-4 | 3 | デバックレベルの出力 0 - 出力なし 1 - クリティカル情報 2 - エラー情報 3 - 警告 4 - デバッグ 情報(大量の情報が出力されます) |
| DisableActive | × | 0 | アクティブチェックを無効にします。エージェントはパッシブモードで動作し、サーバからの処理を待ち受けます。 | |
| DisablePassive | × | 0 | パッシブチェックを無効にします。エージェントはTCPポートの待ち受けを行いません。 アクティブチェックのみ処理します。 0 - 有効 1 - 無効 |
|
| EnableRemoteCommands | × | 0 | Zabbixサーバーからのリモートコマンドを許可するかどうかを設定します。 0 - 許可しない 1 - 許可する |
|
| Hostname | system.uname | 一意なホスト名。 アクティブチェックで使用され、Webインターフェースで設定したホスト名に一致する必要があります。 |
||
| Include | × | 設定ファイルと同じディレクトリにある個々のファイルまたは全てのファイルをインクルードできます。 | ||
| ListenIP | × | 0.0.0.0 | エージェントがlistenするIPアドレスをカンマ区切りで指定します。 複数IPアドレスは1.8.3以上のバージョンでサポートされます。 |
|
| ListenPort | × | 1024-32767 | 10050 | エージェントは、サーバーとの接続にこのポートで待ち受けます。 |
| LogFileSize | × | 0-1024 | 1 | ログファイルの最大サイズ(MB単位)。 0 - 自動ログローテーション無効 |
| LogFile | × | ログファイル名。 設定しない場合、syslogが使用されます。 |
||
| LogRemoteCommands | × | 0 | 実行されたシェルコマンドの警告をログに記録するかを指定します。 0 - 無効 1 - 有効 |
|
| MaxLinesPerSecond | × | 1-1000 | 100 | Maximum number of new lines the agent will send per second to Zabbix Server or Proxy processing 'log' and 'eventlog' active checks. The provided value will be overridden by the parameter 'maxlines', provided in 'log' or 'eventlog' item key. |
| PidFile | × | /tmp/zabbix_agentd.pid | PIDファイル名。 | |
| RefreshActiveChecks | × | 60-3600 | 120 | アクティブチェックのリスト更新頻度(秒単位)を指定します。. |
| ServerPort | × | 10051 | アクティブチェックが送信する情報を収集する為のサーバーポートを指定します。 | |
| Server | ○ | ZabbixサーバのIPアドレス(またはホスト名)をカンマ区切りで指定します。 空白は使用できません。最初のエントリがアクティブチェックのリスト受信と送信先として使用されます。ホスト名を設定した場合、ホスト名→IPアドレスとIPアドレス→ホスト名の名前解決が行える必要がある事に注意して下さい。 |
||
| SourceIP | × | 接続に使用するソースIPアドレス。 | ||
| StartAgents | × | 1-16 | 3 | zabbix_agentdのパッシブチェック・インスタンスの起動数を指定します。 |
| Timeout | × | 1-30 | 3 | 処理がタイムアウトになる秒数を設定します。 |
| UnsafeUserParameters | × | 0,1 | 0 | ユーザ定義のパラメータ文字列ですべての文字を許可します。 |
| UserParameter | × | 監視するユーザ定義パラメータ。ユーザ定義パラメータは複数設定できます。 フォーマット: UserParameter=<key>,<shell command> シェル コマンドが空の文字列またはEOLだけを返してはならないことに注意して下さい。 例: UserParameter=system.test,who | wc -l |
設定ファイルには、zabbix_agentが使用する設定パラメータが格納されています。このファイルは必須であり、ユーザzabbixはこのファイルに対する読み取りパーミッションが必要です。以下のパラメータがサポートされています。
| パラメータ | 必須 | デフォルト値 | 説明 |
|---|---|---|---|
| Server | ○ | - | ZabbixサーバまたはプロキシのIPアドレスのカンマ区切りリスト。リストに含まれないIPアドレスからの接続は拒否されます。 |
| Timeout | × | 3 | 要求された値を取得する際のタイムアウト時間(1~255)を秒単位で設定します。タイムアウトしたUserParameterプロセスをエージェントが強制終了(kill)することはありません。 |
| UnsafeUserParameters | × | 0 | ユーザ定義のパラメータ文字列ですべての文字を許可します。 |
| UserParameter | × | 監視するユーザ定義パラメータ。ユーザ定義パラメータは複数設定できます。 フォーマット: UserParameter=<key>,<shell command> シェル コマンドが空の文字列またはEOLだけを返してはならないことに注意して下さい。 例: UserParameter=system.test,who | wc -l |
インストール
インストールは非常に簡単で、3つのステップで完了します。
ステップ1
設定ファイルの作成
設定ファイルc:/zabbix_agentd.confを作成します(UNIXエージェントと同じ構文を使用)。
ステップ2
エージェントをWindowsサービスとしてインストール
zabbix_agentd.exe --install
c:zabbix_agentd.conf以外の設定ファイルを使用する場合は、以下のコマンドを実行してサービスをインストールする必要があります。
zabbix_agentd.exe --config <your_configuration_file> --install
設定ファイルはフルパスで指定する必要があります。
ステップ3
エージェントの実行
エージェントのサービスを開始するには、[コントロール パネル]を使用するか、または以下のコマンドを実行します。
zabbix_agentd.exe --start
使用方法
コマンドラインの構文:
zabbix_agentd.exe [-Vhp] [-idsx] [-c <file>] [-t <metric>]
Zabbix Windows Agent accepts the following command line parameters:
Options:
-c --config <file> Specify alternate configuration file (default is c:\zabbix_agentd.conf). -h --help Display help information. -V --version Display version number. -p --print Print list of supported checks (metrics) and exit. -t --test <metric> Test single check (metric) and exit.
Functions:
-i --install Install ZABBIX agent as a service. -d --uninstall Uninstall ZABBIX agent service. -s --start Start ZABBIX agent service. -x --stop Stop ZABBIX agent service.
The configuration file (c:/zabbix_agentd.conf) contains configuration parameters for zabbix_agentd.exe. Supported parameters:
| Parameter | Mandatory | Default value | Description |
|---|---|---|---|
| Alias | No | - | Sets the alias for parameter. It can be useful to substitute long and complex parameter name with a smaller and simpler one. For example, if you wish to retrieve paging file usage in percents from the server, you may use parameter “perf_counter[\Paging File(_Total)\% Usage]”, or you may define an alias by adding the following line to configuration file: Alias = pg_usage:perf_counter[\Paging File(_Total)\% Usage] After that you can use parameter name “pg_usage” to retrieve the same information. You can specify as many “Alias” records as you wish. Please note that aliases cannot be used for parameters defined in “PerfCounter” configuration file records. |
| DebugLevel | No | 3 | Debug level, one of: 0 – none, 1 – critical, 2 – errors, 3 – warnings, 4 – debug |
| Include | No | - | Use this parameter to include a file into the configuration file. Number of parameters Include is not limited. For example: Include=c:\user_parameters.conf |
| ListenPort | No | 10050 | Port number to listen. |
| LogFile | No | - | Name of log file. If not set, Windows Event Log is used. |
| LogUnresolvedSymbols | No | - | Controls logging of unresolved symbols during agent startup. Values can be strings ‘yes’ or ‘no’ (without quotes). |
| MaxCollectorProcessingTime | No | 100 | Sets maximum acceptable processing time of one data sample by collector thread (in milliseconds). If processing time will exceed specified value, warning message will be written to the log file. |
| NoTimeWait | No | - | The parameter has no effect. |
| PerfCounter | No | - | <parameter_name>,”<perf_counter_path>”,<period> Defines new parameter <parameter_name> which is an average value for system performance counter <perf_counter_path> for the specified time period <period> (in seconds). For example, if you wish to receive average number of processor interrupts per second for last minute, you can define new parameter “interrupts” as following: PerfCounter = interrupts,”\Processor(0)\Interrupts/sec”,60 Please note double quotes around performance counter path. Samples for calculating average value will be taken every second. You may run typeperf –qx to get list of all performance counters available in Windows. |
| PidFile | No | - | The parameter has no effect. |
| Server | Yes | - | Comma-delimited list of IP addresses of ZABBIX servers. Connections from other IP addresses will be rejected. |
| SourceIP | No | - | Set source IP address all connections established by the process. |
| StartAgents | No | - | The parameter has no effect. |
| UnsafeUserParameters | no | 0 | Allow all characters to be passed in arguments to user-defined parameters |
| UserParameter | no | User-defined parameter to monitor. There can be several user-defined parameters. Format: UserParameter=<key>,<shell command> Note that shell command must not return empty string or EOL only. Example: UserParameter=system.test,who|wc -l |
Zabbix UNIX Senderは、パフォーマンスデータをZabbixサーバで処理するために送信することができるコマンドラインユーティリティです。
通常は、可用性とパフォーマンスに関するデータを定期的に送信するために長期間動作するユーザスクリプトで使用します。Zabbix Senderを起動するには、以下のコマンドを実行します。
shell> cd bin shell> ./zabbix_sender -z zabbix -p 10051 -s LinuxDB3 -k db.connections -o 43
詳細はZabbix Sender manpageを参照してください。
Zabbix UNIX Getは、Zabbixエージェントと通信して必要な情報を取得するプロセスです。
通常は、Zabbixエージェントのトラブルシューティングの際に使用します。
Zabbix Getを起動するには、以下のコマンドを実行します。
shell> cd bin shell> ./zabbix_get -s127.0.0.1 -p10050 -k"system.cpu.load[all,avg1]"
以下のコマンドラインパラメータを指定できます。
-p --port <port number> Specify port number of agent running on the host. Default is 10050. -s -host <host name or IP> Specify host name or IP address of a host. -I --source-address <ip address> Specify source IP address -k -key <key of metric> Specify metric name (key) we want to retrieve. -h --help Give this help. -v --version Display version number.
ヘルプを表示するには、以下のコマンドを実行します。
shell> zabbix_get -h