================= 主机 ================= * 贡献者: Nexpro (https://github.com/nexpro) Hosts are exported with many related objects and object relations. 主机导出包含: * 主机数据 * 主机间隔数据 * 组关系 * 模板关系 * 接口 * 宏 * 应用 * 项目 * 所有原型的发现规则 当主机导入或者更新是,它只能链接到附加的模板同时不能从任何地方取消关联 :: Zabbix server Zabbix server 0 -1 2 Zabbix servers 1 1 1 127.0.0.1 20001 if1 Memory Zabbix agent Agent ping 0 0 agent.ping 60 7 365 0 3 0 0 1 0 0 The agent always returns 1 for this item. It could be used in combination with nodata() for availability check. 0 Zabbix agent Zabbix agent ping status if1 Available memory 0 0 vm.memory.size[available] 60 7 365 0 3 B 0 0 1 0 0 Available memory is defined as free+cached+buffers memory. 0 Memory if1 Mounted filesystem discovery 0 vfs.fs.discovery 3600 0 0 0 {#FSTYPE}:@File systems for discovery 30 Discovery of file systems of different types as defined in global regular expression "File systems for discovery". Free disk space on $1 0 0 vfs.fs.size[{#FSNAME},free] 60 7 365 0 3 B 0 0 1 0 0 0 Filesystems if1 {Zabbix server 2:vfs.fs.size[{#FSNAME},pfree].last(0)}<20 Free disk space is less than 20% on volume {#FSNAME} 0 2 0 Disk space usage {#FSNAME} 600 340 0.0000 0.0000 0 0 2 1 1 0.0000 0.0000 0 0 0 0 0 0 C80000 0 2 2 Zabbix server 2 vfs.fs.size[{#FSNAME},total] 1 0 00C800 0 2 0 Zabbix server 2 vfs.fs.size[{#FSNAME},free] if1 {$M1} m1 {$M2} m2 hosts/host ------------- +----------------+------------+---------------+------------+ |参数 | 类型 | 描述 | 详细信息 | +================+============+===============+============+ |host | 字符串 | 主机名 | | +----------------+------------+---------------+------------+ |name | 字符串 | 可见的主机名| | +----------------+------------+---------------+------------+ |status | 整数 | 主机状态 | | +----------------+------------+---------------+------------+ |proxy | 整数 | 代理名称 | | +----------------+------------+---------------+------------+ |ipmi_authtype | 整数 | IPMI认证类型| | +----------------+------------+---------------+------------+ |ipmi_privilege | 整数 | IPMI权限 | | +----------------+------------+---------------+------------+ |ipmi_username | 字符串 | IPMI用户名 | | +----------------+------------+---------------+------------+ |ipmi_password | 字符串 | IPMI密码 | | +----------------+------------+---------------+------------+ hosts/host/groups/group --------------------------- +-------------+----------+------------+-----------------------------+ | 参数 | 类型 | 描述 | 详细信息 | +=============+==========+============+=============================+ | name | 字符串 | 组名 | | +------------------------+------------+-----------------------------+ hosts/host/templates/template -------------------------------- +------------------------+------------+-----------------------------+ | 参数 | 类型 | 描述 | +========================+============+=============================+ | name | 整数 | 接口状态 | + | +-----------------------------+ | | + 0 - 不是默认接口 | + | +-----------------------------+ | | + 1 - 默认接口 | +------------------------+------------+-----------------------------+ | type | 整数 + 接口类型 | +------------------------+------------+-----------------------------+ | | 1 - agent | + +-----------------------------+ | | 2 - SNMP | + +-----------------------------+ | | 3 - IPMI | + +-----------------------------+ | | 4 - JMX | +------------------------+------------+-----------------------------+ | useip | 整数 | 如何连接到主机 | +------------------------+------------+-----------------------------+ | | 0 - 使用DNS名称 | + +-----------------------------+ | | 1 - 使用IP地址 | +------------------------+------------+-----------------------------+ | ip | 字符串 | ip地址,可以是ipv4或者ipv6 | +------------------------+------------+-----------------------------+ | dns | 字符串 | DNS名称 | +------------------------+------------+-----------------------------+ | port | 字符串 | 端口号 | +------------------------+------------+-----------------------------+ | interface_ref | 字符串 | 在项目中使用的接口引用名称 | +------------------------+------------+-----------------------------+ hosts/host/interfaces/interface --------------------------------- +------------------------+------------+-----------+------------------+ |参数 | 类型 | 描述 | 详细信息 | +========================+============+===========+==================+ |default | 整数 | 主机名 | | +------------------------+------------+-----------+------------------+ hosts/host/items/item ------------------------------ +------------------------+------------+-------------------------------------+ | 参数 | 类型 | 描述 | +========================+============+=====================================+ | | | Item type: | | | +-------------------------------------+ | | | 0 - Zabbix agent | | | +-------------------------------------+ | | | 1 - SNMPv1 | | | +-------------------------------------+ | | | 2 - Trapper | | | +-------------------------------------+ | | | 3 - Simple check | | | +-------------------------------------+ | | | 4 - SNMPv2 | | | +-------------------------------------+ | | | 5 - Internal | | | +-------------------------------------+ | | | 6 - SNMPv3 | | | +-------------------------------------+ | | | 7 - Active check | | | +-------------------------------------+ | type | 整数 | 8 - Aggregate | | | +-------------------------------------+ | | | 9 - HTTP test (Web监控方案步骤) | | | +-------------------------------------+ | | | 10 - External | | | +-------------------------------------+ | | | 11 - Database monitor | | | +-------------------------------------+ | | | 12 - IPMI | | | +-------------------------------------+ | | | 13 - SSH | | | +-------------------------------------+ | | | 14 - telnet | | | +-------------------------------------+ | | | 15 - Calculated | | | +-------------------------------------+ | | | 16 - JMX | | | +-------------------------------------+ | | | 17 - SNMP trap | +------------------------+------------+-------------------------------------+ | snmp_community | 字符串 | SNMP 团体名 | +------------------------+------------+-------------------------------------+ | snmp_oid | 字符串 | SNMP OID | +------------------------+------------+-------------------------------------+ | port | 整数 | 项目定制端口 | +------------------------+------------+-------------------------------------+ | name | 字符串 | 项目名称 | +------------------------+------------+-------------------------------------+ | key | 字符串 | 项目关键字 | +------------------------+------------+-------------------------------------+ | delay | 整数 | 检查间隔 | +------------------------+------------+-------------------------------------+ | history | 整数 | 历史数据保留天数(单位天) | +------------------------+------------+-------------------------------------+ | trends | 整数 | 趋势数据保留天数(单位天) | +------------------------+------------+-------------------------------------+ | status | 整数 | 项目状态 | +------------------------+------------+-------------------------------------+ | value_type | 整数 | 值类型 | +------------------------+------------+-------------------------------------+ | trapper_hosts | 字符串 | | +------------------------+------------+-------------------------------------+ | units | 字符串 | 值单位 | +------------------------+------------+-------------------------------------+ | multiplier | 整数 | 值的乘数 | +------------------------+------------+-------------------------------------+ | delta | 整数 | Store values as delta | +------------------------+------------+-------------------------------------+ | snmpv3_securityname | 字符串 | SNMPv3 安全名称 | +------------------------+------------+-------------------------------------+ | snmpv3_securitylevel | 整数 | SNMPv3 安全级别 | +------------------------+------------+-------------------------------------+ | snmpv3_authpassphrase | 字符串 | SNMPv3 认证口令 | +------------------------+------------+-------------------------------------+ | snmpv3_privpassphrase | 字符串 | SNMPv3 私有口令 | +------------------------+------------+-------------------------------------+ | formula | 字符串 | | +------------------------+------------+-------------------------------------+ | delay_flex | 字符串 | 弹性延迟 | +------------------------+------------+-------------------------------------+ | params | 字符串 | | +------------------------+------------+-------------------------------------+ | ipmi_sensor | 字符串 | IPMI 传感器 | +------------------------+------------+-------------------------------------+ | data_type | 整数 | | +------------------------+------------+-------------------------------------+ | authtype | 整数 | | +------------------------+------------+-------------------------------------+ | username | 字符串 | | +------------------------+------------+-------------------------------------+ | password | 字符串 | | +------------------------+------------+-------------------------------------+ | publickey | 字符串 | | +------------------------+------------+-------------------------------------+ | privatekey | 字符串 | | +------------------------+------------+-------------------------------------+ | interface_ref | 字符串 | 主机接口引用 | +------------------------+------------+-------------------------------------+ | description | 字符串 | 项目描述 | +------------------------+------------+-------------------------------------+ | inventory_link | 整数 | 主机间隔字段号,将更新项目返回的值 | +------------------------+------------+-------------------------------------+ | applications | | 项目应用 | +------------------------+------------+-------------------------------------+ hosts/host/items/item/applications/application ---------------------------------------------------- +------------------------+------------+-----------+------------------+ | 参数 | 类型 | 描述 | 详细信息 | +========================+============+===========+==================+ | name | 字符串 | 应用名称 | | +------------------------+------------+-----------+------------------+