This is a translation of the original English documentation page. Help us make it better.

1 監視設定の同期

概要

このページでは、プロキシの監視設定の更新、つまりサーバーの監視設定に加えられた変更がプロキシにどのように同期されるかについて詳しく説明します。

Incremental update

The proxy configuration update is incremental. During a configuration sync only those entities are updated that have been changed; if there has been no change, nothing is sent. This approach allows to save resources and set a smaller interval (almost instant) for the proxy configuration update.

Proxy configuration changes are tracked using revision numbers. Only entities with revisions larger than the proxy configuration revision are included in configuration data sent to the proxy.

The entities for a configuration sync are as follows:

Entity Details
autoregistration tls data All autoregistration TLS data.
expressions All expressions (regular expressions, expression tables).
global configuration Global configuration defined in the 'config' table
host All properties, interfaces, inventory, items, item preprocessing, item parameters, web scenarios of a host.
host macros All macros defined on a host and all template IDs linked to it.
proxy discovery rule Discovery rules and checks assigned to a proxy.

That means:

  • If an item is changed on a host, all configuration of that host will be synced.
  • If a regular expression is changed, all regular expressions will be synced.

An exception are the host macros which are sent also if anything on the host has been changed.

The -R config_cache_reload command on the proxy will also initiate an incremental update.

Note that a full configuration sync will take place on a proxy start/restart, HA failover, if the session token has changed, or if the configuration update failed on the proxy, for example, if the connection was broken while receiving configuration data.

設定パラメータ

ProxyConfigFrequency パラメータは、プロキシ設定をサーバーと同期する頻度を指定します(デフォルトは10秒)

ProxyConfigFrequency は以下のとおりです。

  • パッシブプロキシの場合、サーバーパラメータ
  • アクティブプロキシの場合、プロキシパラメータ

アクティブプロキシの場合、ProxyConfigFrequency は Zabbix 6.4 以降の新しいパラメータであり、現在非推奨となっている ConfigFrequency の代わりに使用する必要があります。

ProxyConfigFrequency と ConfigFrequency の両方を使用すると、プロキシはエラーをログに記録して終了します。

メンテナンス中のキューの計算

Zabbixプロキシはメンテナンス期間を認識しません。詳細については、メンテナンス中のキューの計算を参照してください。