13 Remote monitoring of Zabbix stats

    Overview

    Zabbix internal stats are exposed to a configurable set of addresses listed in the new ‘StatsAllowedIP’ /proxy parameter. Requests will be accepted only from these addresses.

    Items

    To configure querying of internal stats on another Zabbix instance, you may use two items:

    • internal item - for direct remote queries of Zabbix server/proxy. <ip> and <port> are used to identify the target instance.
    • zabbix.stats[<ip>,<port>] agent item - for agent-based remote queries of Zabbix server/proxy. <ip> and <port> are used to identify the target instance.

    See also: Internal items,

    • 13 Remote monitoring of Zabbix stats - 图2 - Server → external Zabbix instance (zabbix[stats,<ip>,<port>])
    • - Server → agent → external Zabbix instance (zabbix.stats[<ip>,<port>])
    • 13 Remote monitoring of Zabbix stats - 图5 - Server → proxy → agent → external Zabbix instance (zabbix.stats[<ip>,<port>])

    To make sure that the target instance allows querying it by the external instance, list the address of the external instance in the ‘StatsAllowedIP’ parameter on the target instance.

    Exposed metrics

    The stats items gather the statistics in bulk and return a JSON, which is the basis for dependent items to get their data from. The following are returned by either of the two items:

    • zabbix[boottime]
    • zabbix[items]
    • zabbix[items_unsupported]
    • zabbix[preprocessing_queue] (server only)
    • zabbix[process,<type>,<mode>,<state>] (only process type based statistics)
    • zabbix[rcache,<cache>,<mode>]
    • (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)

    Templates

    • Remote Zabbix server
    • Remote Zabbix proxy

    Note that in order to use a template for remote monitoring of multiple external instances, a separate host is required for each external instance monitoring.

    Trapper process

    Receiving internal metric requests from an external Zabbix instance is handled by the trapper process that validates the request, gathers the metrics, creates the JSON data buffer and sends the prepared JSON back, for example, from server:

    Internal queue items

    There are also another two items specifically allowing to remote query internal queue stats on another Zabbix instance:

    • zabbix.stats[<ip>,<port>,queue,<from>,<to>] agent item - for agent-based internal queue queries to remote Zabbix server/proxy