概述

键值

在 中使用的监控项是

内部监控项。此监控项从Zabbix server 3.4开始支持。

此监控项反馈一个带有接口描述的JSON,包括:

  • 端口号

  • 接口类型 (Zabbix agent, SNMP, JMX, IPMI)

  • 此接口是否为默认接口

  • 是否启用了批量请求功能 - 仅适用于SNMP接口

例如:

  • 接口类型,

  • 默认 - 默认接口放在默认接口之前,

  • 接口ID (升序排列).

支持宏

支持在发现规则过滤器,以及监控项,触发器和图表原型中使用以下宏:

7 Discovery of host interfaces in Zabbix

Overview

It is possible to all interfaces configured in Zabbix frontend for a host.

Item key

The item to use in the discovery rule is the

internal item. This item is supported since Zabbix server 3.4.

This item returns a JSON with the description of interfaces, including:

  • Interface type (Zabbix agent, SNMP, JMX, IPMI)

  • If it is the default interface or not

  • If the bulk request feature is enabled - for SNMP interfaces only.

For example:

With multiple interfaces their records in JSON are ordered by:

  • Interface type,

  • Default - the default interface is put before non-default interfaces,

  • Interface ID (in ascending order).

Supported macros

The following macros are supported for use in the discovery rule and prototypes of items, triggers and graphs:

MacroDescription
{#IF.CONN}Interface IP address or DNS host name.
{#IF.IP}Interface IP address.
{#IF.DNS}Interface DNS host name.
{#IF.PORT}Interface port number.
{#IF.TYPE}Interface type (“AGENT”, “SNMP”, “JMX”, or “IPMI”).
{#IF.DEFAULT}Default status for the interface:
0 - not default interface
1 - default interface
{#IF.SNMP.BULK}SNMP bulk processing status for the interface:
0 - disabled
1 - enabled
This macro is returned only if interface type is “SNMP”.