这是原厂英文文档的翻译页面. 欢迎帮助我们 完善文档.
2022 Zabbix中国峰会
2022 Zabbix中国峰会

附录 2. 从 6.4 到 7.0 的变化

向后不兼容的更改

告警

ZBXNEXT-6974 alert.get:增加了对该方法参数的严格验证。

认证

ZBXNEXT-8880 如果在前端配置文件zabbix.conf.php)中启用了$ALLOW_HTTP_AUTH,则属性http_auth_enabledhttp_login_formhttp_strip_domainshttp_case_sensitive才可用。

连接器

ZBXNEXT-8735 添加了新属性item_value_type,当data_type设置为“Item values”(0)时支持此属性。
ZBXNEXT-8735 添加了新属性attempt_interval,当max_attempts大于1时支持此属性。

仪表盘

ZBXNEXT-8316, ZBXNEXT-9193, ZBX-24488, ZBX-24490仪表盘组件类型plaintext重命名为itemhistory,并用columns.0.itemidlayoutcolumns.0.display替换了其仪表盘组件字段itemids.0styleshow_as_html,并添加了新的仪表盘组件字段。
ZBXNEXT-8496tophosts组件中,用columns.0.time_period._referencecolumns.0.time_period.fromcolumns.0.time_period.from替换了仪表盘组件字段columns.0.timeshiftcolumns.0.aggregate_interval
ZBXNEXT-2299problems组件中,用两个新字段acknowledgement_statusacknowledged_by_me替换了仪表盘组件字段unacknowledged
ZBXNEXT-8245clockitem组件中移除了仪表盘组件字段adv_conf
ZBXNEXT-8145 更改了仪表盘组件字段的命名:将复杂数据字段从str.str.index1.index2重命名为str.index1.str.index2(例如thresholds.0.threshold.1ds.0.hosts.1);将引用数据库对象的字段从str重命名为str.index1(例如itemid.0severities.0)。
ZBXNEXT-8145map组件中,用sysmapid._reference替换了仪表盘组件字段filter_widget_reference,并移除了字段source_type
ZBXNEXT-8145gaugegraphgraphprototypeitemplaintexturl组件中,用override_hostid._reference替换了仪表盘组件字段dynamic
ZBXNEXT-8145svggraph组件中,用time_period._reference替换了仪表盘组件字段graph_time,用time_period.from替换了time_from,用time_period.to替换了time_to
ZBXNEXT-9044 更改了仪表盘组件参数x(从0-23变为0-71)、y(从0-62变为0-63)、width(从1-24变为1-72)和height(从2-32变为1-64)的取值范围。

事件

ZBXNEXT-6974 event.get: 添加了对方法参数的严格验证.

主机

ZBXNEXT-5878 host.create, host.update, host.massAdd, host.massUpdate, host.massRemove: 添加了对 groups, macros, tags, templates 参数的严格验证. ZBXNEXT-8500 host.get: 不再支持参数 proxy_hosts.
ZBXNEXT-8500 属性 proxy_hostid 改为 proxyid.

主机组

ZBXNEXT-8702 hostgroup.get: 参数 selectHostPrototype 改为 selectHostPrototypes, selectDiscoveryRule 改为 selectDiscoveryRules, selectGroupDiscovery 改为 selectGroupDiscoveries; 现在每个参数将返回一个对象数组而不是一个对象.
ZBXNEXT-8702 hostgroup.get: 输出属性 hostPrototype 改为 hostPrototypes, discoveryRule 改为 discoveryRules, groupDiscovery 改为 groupDiscoveries.
ZBXNEXT-8702 hostgroup.get: 删除了 selectGroupDiscoveries (之前是- selectGroupDiscovery) 参数中 groupid 属性.

问题

ZBXNEXT-6974 problem.get: 添加了对方法参数的严格验证.

proxy

ZBXNEXT-8500 删除 interfaceauto_compress 属性.
ZBXNEXT-8500 对被动模式Zabbix Proxies 添加 addressport 属性.
ZBXNEXT-8500 属性 host 改为 name, status 改为 operating_mode, proxy_address 改为 allowed_addresses.
ZBXNEXT-8500 修改了 operating_mode (之前- status) 属性值 (0 - active proxy, 1 - passive proxy) .
ZBXNEXT-8500 proxy.get: 不在支持参数 selectInterface.
ZBXNEXT-8500 proxy.create and proxy.update: 不在支持参数 interface.

脚本

ZBXNEXT-8880 script.createscript.update: 只有在 Zabbix 服务器上启用全局脚本执行时,才支持参数 execute_on 值 "1" (在 Zabbix 服务器上运行) .
ZBXNEXT-8121 script.getscriptsbyhosts: 方法不再接受主机 ID 数组。它现在接受带有以下参数的对象 hostid, scriptid, manualinput.
ZBXNEXT-8121 script.getscriptsbyevents: 方法不再接受事件 ID 数组。 它现在接受带有以下参数的对象 eventid, scriptid, manualinput.

监控项

ZBXNEXT-7726 现在 "检查不支持的值" 类型的预处理步骤 需要 属性 params.
ZBXNEXT-7578 item.get, item.create, item.update: 名称索引中的属性 headersquery_fields 改为具有单独 namevalue属性的对象数组.

监控项原型

ZBXNEXT-7726 现在 "检查不支持的值" 类型的预处理步骤 需要 属性 params.
ZBXNEXT-7578 itemprototype.get, itemprototype.create, itemprototype.update: 名称索引中的属性 headersquery_fields 改为具有单独 namevalue属性的对象数组.

自动发现规则

ZBXNEXT-7578 discoveryrule.getdiscoveryrule.creatediscoveryrule.update:属性headersquery_fields从名称索引的对象更改为具有单独namevalue属性的对象数组。

Other changes and bug fixes

action

ZBXNEXT-6524 Added support of two new values in operationtype property (13 - Add host tags, 14 - Remove host tags) and new property optag for two eventsource action types (1 - Discovery, 2 - Autoregistration) available only in the operations property.

auditlog

ZBXNEXT-8541 Added new audit log entry action (12 - Push) and resource type (53 - History).

authentication

ZBXNEXT-6876 Added new properties mfa_status and mfaid.

correlation

ZBX-21850 correlation.get: Filter conditions will be sorted in the order of their placement in the formula.

dashboard

ZBXNEXT-743 Added new dashboard widget type (gauge).

dcheck

ZBXNEXT-8079 Added new property allow_redirect.

discoveryrule

ZBXNEXT-6986 Deprecated method discoveryrule.copy.

event

ZBXNEXT-2299 event.get: Added new filtering options action and action_userid.

graph

ZBXNEXT-2020 graph.get: Method now also supports status property if selectGraphDiscovery parameter is used.

history

ZBXNEXT-8541 Added new method history.push.

host

ZBXNEXT-8500 host.get: Removed support for parameter proxy_hosts.
ZBXNEXT-8500 Renamed property proxy_hostid to proxyid.

hostgroup

ZBXNEXT-2020 hostgroup.get: Method now also supports status property if selectGroupDiscoveries parameter is used.

mediatype

ZBXNEXT-4165 mediatype.get: Added new parameter selectActions.

mfa

ZBXNEXT-6876 Added new MFA API with methods mfa.create, mfa.update, mfa.get, mfa.delete.

item

ZBXNEXT-7726 Added scope and pattern components to parameters for steps of the type "Check for not supported value".

item prototype

ZBXNEXT-7726 Added scope and pattern components to parameters for steps of the type "Check for not supported value".

problem

ZBXNEXT-2299 problem.get: Added new filtering options action and action_userid.

任务

ZBXNEXT-8500 属性 proxy_hostid 改为 proxyid.

模板仪表板

ZBXNEXT-9044 更改了仪表板小部件参数的值范围 x (从 0-23 到 0-71 ) 和 y (从0-62 到 0-63) 以及 width (从 1–24 到 1–72) 和 height (从 2–32 到 1–64).

用户

ZBXNEXT-8760 user.update: 属性 userdirectoryid 为只读.
ZBXNEXT-8760 user.get: Added new read-only property userdirectory_mediaid for media created by provision action.

userdirectory

ZBXNEXT-8760 userdirectory.create, userdirectory.update: Added new properties to media mappings - active, severity, period.

usergroup

ZBXNEXT-8760 usergroup.update: Added restriction on changes of group users for provisioned users.

templatedashboard

ZBXNEXT-8086 Added new template dashboard widget types (actionlog, dataover, discovery, favgraphs, favmaps, hostavail, map, navtree, problemhosts, problems, problemsbysv, slareport, svggraph, systeminfo, tophosts, trigover, web).
ZBXNEXT-8086 Added new template dashboard widget field types (8 - Map, 9 - Service, 10 - SLA, 11 - User, 12 - Action, 13 - Media type).

trigger

ZBXNEXT-2020 trigger.get: Method now also supports status, ts_disable and disable_source properties if selectTriggerDiscovery parameter is used.

user

ZBXNEXT-6876 user.login: Method now also returns mfaid if userData parameter is used.

usergroup

ZBXNEXT-6876 Added new properties mfa_status and mfaid.

proxy

ZBXNEXT-8500 Removed interface and auto_compress object properties.
ZBXNEXT-8500 Added address and port properties for passive Zabbix Proxies.
ZBXNEXT-8500 Renamed properties host to name, status to operating_mode, proxy_address to allowed_addresses.
ZBXNEXT-8500 Changed operating_mode (previously - status) property values (0 - active proxy, 1 - passive proxy) .
ZBXNEXT-8500 proxy.get: Removed support for parameter selectInterface.
ZBXNEXT-8500 proxy.create and proxy.update: Removed support for parameter interface.

proxygroup

ZBXNEXT-8758 Added new proxygroup API.

script

ZBXNEXT-8121 Added new properties manualinput, manualinput_prompt, manualinput_validator, manualinput_validator_type, manualinput_default_value.
ZBXNEXT-8121 script.execute: Added new parameter manualinput.

settings

ZBXNEXT-1096 Added new properties timeout_zabbix_agent, timeout_simple_check, timeout_snmp_agent, timeout_external_check, timeout_db_monitor, timeout_http_agent, timeout_ssh_agent, timeout_telnet_agent, timeout_script.

drule

ZBXNEXT-2732 Added new property concurrency_max.