有时您可能想要同时更改多个模板的某些属性。您可以使用批量更新功能,无需打开每个模板进行独立编辑。
批量更新一些模板,操作如下:
当选择更新 模板链接 复选框时,将有以下选项可以选择:
快捷搜索 -在搜索框输入模板名关键字后,将出现一个提供匹配模板的下拉菜单。只需向下滚动选择要_链接/取消链接_的模板即可。
当无链接时清除选项不仅允许取消任何先前关联的模板的关联,而且还可以删除从它们继承的所有元素(监控项、触发器等)。
当选择更新 主机群组 复选框时,将有以下选项可以选择:
这些字段是自动完成的 - 在搜索框输入关键字后,会自动提供一个匹配主机组的下拉列表。如果主机组是新创建的,它也会出现在下拉列表中,并且在字符串后面用新(new)表示。数量较多时,只需向下滚动选择即可。
用户宏, {INVENTORY.*} , {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} 和{HOST.ID}在标签中被支持。具有相同名称但不同值的标签不被认为是“重复”,可以添加到相同的模板中。
当选择更新 宏 复选框时,将有以下选项可以选择:
当选择更新 值映射 复选框时,将有以下选项可以选择:
完成所有需要的更改后,点击更新按钮。所有选择模板的属性都会相应地更新。
The Template tab contains general template mass update options.
The following options are available when selecting the respective button for the Template groups update:
These fields are auto-complete - starting to type in them offers a dropdown of matching template groups. If the template group is new, it also appears in the dropdown and it is indicated by (new) after the string. Just scroll down to select.
The Tags tab allows you to mass update template-level tags.
User macros, {INVENTORY.*} macros, {HOST.HOST}, {HOST.NAME}, {HOST.CONN}, {HOST.DNS}, {HOST.IP}, {HOST.PORT} and {HOST.ID} macros are supported in tags. Note that tags with the same name, but different values are not considered 'duplicates' and can be added to the same template.
The Macros tab allows you to mass update template-level macros.
The following options are available when selecting the respective button for macros update:
The Value mapping tab allows you to mass update value mappings.
Buttons with the following options are available for value map update:
Add from template and Add from host options are available for value mapping add/update operations. They allow to select value mappings from a template or a host respectively.
When done with all required changes, click on Update. The attributes will be updated accordingly for all the selected templates.