1 服务树

    配置 新服务,请单击右上角的 Create service 按钮。

    要快速添加子服务,您也可以按父服务旁边的加号图标。这将打开相同的服务配置表单,但将预先填写父服务参数。

    Service 选项卡中,指定所需的服务参数:

    1 服务树 - 图2

    所有必填输入字段均标有红色星号。

    高级配置

    参数说明
    Additional rules单击 Add 以定义其他状态计算规则。
    Set status to如果 condition 匹配,则将服务状态设置为OK(默认)、Not classifiedInformationWarningAverageHighDisaster
    Condition选择子服务的条件:
    如果至少 (N) 个子服务具有 (Status) 表示的状态或以上状态
    如果至少 (N%) 的子服务具有 (Status) 表示的状态或以上状态
    如果少于 (N) 个子服务具有 (Status) 表示的状态或以下状态
    如果少于 (N%) 的子服务具有 (Status) 表示的状态或以下状态
    如果具有 (Status) 状态的子服务的权重至少为 (W)
    如果具有 (Status) 状态的子服务的权重至少为 (N%)
    如果具有 (Status) 状态的子服务的权重小于 (W)
    如果具有 (Status) 状态的子服务的权重少于 (N%)

    如果指定了多个条件,并且情况与多个条件匹配,则将设置最高的严重性。
    N (W)在 condition 中设置 N 或 W (1-100000) 或 N% (1-100) 的值。
    Status选择 condition 中 Status 的值:OK (默认)、Not classifiedInformationWarningAverageHighDisaster
    Status propagation rule将服务状态传播到父服务的规则:
    As is - 传播状态没有变化
    Increase by - 您可以将传播的状态增加 1 到 5 个严重性
    Decrease by - 您可以将传播的状态减少 1 到 5 个严重性
    Ignore this service - 状态根本不会传播到父服务
    Fixed status - 状态以静态方式传播,即始终保持不变
    Weight服务的权重(0(默认)到1000000之间的整数)。

    附加状态计算规则只能用于将严重级别提高到根据 Status calculation rule 参数计算的级别之上。如果根据 additional rules,状态应为警告,但 Status calculation rule 状态为灾难 - 服务将具有灾难状态。

    Tags 选项卡包含 。服务级别标签用于标识服务。这种类型的标签不用于将问题映射到服务(为此,使用第一个选项卡中的 问题标签)。

    服务中有两种不同类型的标签:

    • 服务标签
    • 问题标签

    服务标签

    服务标签用于将服务与 和 SLA 相匹配。这些标签在 Tabs 服务配置选项卡中指定。 对于映射SLA,使用 OR 逻辑:如果服务至少有一个匹配的标签,则将其映射到SLA。 在服务操作中,映射规则是可配置的,可以使用 ANDOR、或 AND/OR 逻辑。

    1 服务树 - 图4

    问题标签

    问题标签用于匹配问题和服务。这些标签在主服务配置选项卡中指定。

    只有最低层次级别的子服务可以定义问题标签并直接关联问题。如果问题标签匹配,服务状态将更改为与问题相同的状态。在多个问题的情况下,服务将具有最严重的状态。然后根据状态计算规则基于子服务状态计算父服务的状态。

    如果指定了多个标签,则使用 AND 逻辑:问题必须将服务配置中指定的所有标签都映射到服务。

    Zabbix 中的问题从模板、主机、项目、Web 场景和触发器的整个链中继承标签。这些标签中的任何一个都可用于匹配问题与服务。

    示例:

    服务 Web camera 3 具有指定的唯一问题标签: name:webcam 3

    1 服务树 - 图6

    检测到此问题时,服务状态将从 OK 变为 Warning

    如果服务 Web camera 3 有问题标签 和 floor:2nd,则在检测到问题时不会更改其状态,因为仅部分条件满足。

    To edit an existing service, press the pencil icon next to the service.

    To clone an existing service, press the pencil icon to open its configuration and then press Clone button. When a service is cloned, its parent links are preserved, while the child links are not.

    To delete a service, press on the icon next to it. When you delete a parent service, its child services will not be deleted and will move one level higher in the service tree (1st level children will get the same level as the deleted parent service).

    Two buttons below the list of services offer some mass-editing options:

    • Delete - delete the services

    To use these options, mark the checkboxes before the respective services, then click on the required button.