Zabbixサーバーとプロキシの一部の内部メトリックを別のZabbixインスタンスまたはサードパーティツールからリモートでアクセスできるようにすることができます。これはサポーター/サービスプロバイダーがクライアントのZabbixサーバー/プロキシをリモートで監視できるようにする、またはZabbixがメインの監視ツールではない組織で、Zabbixの内部メトリックを包括的な監視用セットアップでサードパーティのシステムによって監視できるようにするために役立ちます。
Zabbixの内部統計は、新しい'StatsAllowedIP' server/proxyパラメーターにリストされた構成可能なアドレスのセットに公開されます。 リクエストはこれらのアドレスからのみ受け付けられます。
別のZabbixインスタンスで内部統計のクエリを設定するには、次の2つの項目を使用します。
zabbix[stats,<ip>,<port>] internal item - Zabbixサーバー/プロキシの直接リモートクエリ用。 <ip>と<port>は、ターゲットインスタンスを識別するために使用しますzabbix.stats[<ip>,<port>] agent item - Zabbixサーバー/プロキシのエージェントベースのリモートクエリ用。 <ip>と<port>は、ターゲットインスタンスを識別するために使用されます。参考情報: 内部項目, Zabbixエージェントアイテム
次の図はコンテキストに応じた、いずれかのアイテムの使用法を示しています。

 - Server → external Zabbix instance (
 - Server → external Zabbix instance (zabbix[stats,<ip>,<port>]) - Server → proxy → external Zabbix instance (
 - Server → proxy → external Zabbix instance (zabbix[stats,<ip>,<port>]) - Server → agent → external Zabbix instance (
 - Server → agent → external Zabbix instance (zabbix.stats[<ip>,<port>]) - Server → proxy → agent → external Zabbix instance (
 - Server → proxy → agent → external Zabbix instance (zabbix.stats[<ip>,<port>])ターゲットインスタンスが外部インスタンスによるクエリを許可するには、ターゲットインスタンスの'StatsAllowedIP'パラメータに外部インスタンスのアドレスをリストします。
統計アイテムは統計をまとめて収集し、JSONを返します。これは依存アイテムがデータを取得するための基礎となります。 次の内部メトリックは、2つのアイテムのいずれかによって返されます。
zabbix[boottime]zabbix[hosts]zabbix[items]zabbix[items_unsupported]zabbix[preprocessing_queue] (server only)zabbix[process,<type>,<mode>,<state>] (only process type based statistics)zabbix[rcache,<cache>,<mode>]zabbix[requiredperformance]zabbix[triggers] (server only)zabbix[uptime]zabbix[vcache,buffer,<mode>] (server only)zabbix[vcache,cache,<parameter>]zabbix[version]zabbix[vmware,buffer,<mode>]zabbix[wcache,<cache>,<mode>] ('trends' cache type server only)テンプレートは、Zabbixサーバーのリモートモニタリングまたは外部インスタンスからのプロキシ内部メトリックに使用できます。
複数の外部インスタンスのリモート監視にテンプレートを使用するには、外部インスタンスの監視ごとに個別のホストが必要であることに注意してください。
外部Zabbixインスタンスからの内部メトリックリクエストの受信は、リクエストを検証し、メトリックを収集し、JSONデータバッファーを作成し、準備されたJSONをサーバーなどから送り返すトラッパープロセスによって処理されます。
{
         "response": "success",
         "data": {
           "boottime": N,
           "uptime": N,
           "hosts": N,
           "items": N,
           "items_unsupported": N,
           "preprocessing_queue": N,
           "process": {
             "alert manager": {
               "busy": {
                 "avg": N,
                 "max": N,
                 "min": N
               },
               "idle": {
                 "avg": N,
                 "max": N,
                 "min": N
               },
               "count": N
             },
       ...
           },
           "queue": N,
           "rcache": {
             "total": N,
             "free": N,
             "pfree": N,
             "used": N,
             "pused": N
           },
           "requiredperformance": N,
           "triggers": N,
           "uptime": N,
           "vcache": {
             "buffer": {
               "total": N,
               "free": N,
               "pfree": N,
               "used": N,
               "pused": N
             },
             "cache": {
               "requests": N,
               "hits": N,
               "misses": N,
               "mode": N
             }
           },
           "vmware": {
             "total": N,
             "free": N,
             "pfree": N,
             "used": N,
             "pused": N
           },
           "version": "N",
           "wcache": {
             "values": {
               "all": N,
               "float": N,
               "uint": N,
               "str": N,
               "log": N,
               "text": N,
               "not supported": N
             },
             "history": {
               "pfree": N,
               "free": N,
               "total": N,
               "used": N,
               "pused": N
             },
             "index": {
               "pfree": N,
               "free": N,
               "total": N,
               "used": N,
               "pused": N
             },
             "trend": {
               "pfree": N,
               "free": N,
               "total": N,
               "used": N,
               "pused": N
             }
           }
         }
       }別のZabbixインスタンスで内部キュー統計をリモートクエリできるようにする別の2つの項目もあります。
zabbix[stats,<ip>,<port>,queue,<from>,<to>] internal item - リモートZabbixサーバー/プロキシへの直接内部キュークエリ用zabbix.stats[<ip>,<port>,queue,<from>,<to>] agent item - リモートZabbixサーバー/プロキシへのエージェントベースの内部キュークエリ用参考情報: 内部項目, Zabbixエージェントアイテム