概述

    键值

    在 中使用的监控项是

    此监控项从Zabbix Windows agent 3.0开始支持。

    支持宏

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

    其中 接受以下值: state, displayname, path, user, startupdescription.

    例如,要获取服务的显示名称,你可以使用“service.info[{#SERVICE.NAME},displayname]” 的监控项。如果未指定 值 (“service.info[{#SERVICE.NAME}]”) ,则使用默认state参数。

    6 Discovery of Windows services

    Overview

    In a similar way as are discovered, it is possible to also discover Windows services.

    Item key

    This item is supported since Zabbix Windows agent 3.0.

    Supported macros

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

    MacroDescription
    {#SERVICE.NAME}Service name.
    {#SERVICE.DISPLAYNAME}Displayed service name.
    {#SERVICE.DESCRIPTION}Service description.
    {#SERVICE.STATE}Numerical value of the service state:
    0 - Running
    1 - Paused
    2 - Start pending
    3 - Pause pending
    4 - Continue pending
    5 - Stop pending
    6 - Stopped
    7 - Unknown
    {#SERVICE.STATENAME}Name of the service state (Running, Paused, Start pending, Pause pending, Continue pending, Stop pending, Stopped or Unknown).
    {#SERVICE.PATH}Service path.
    {#SERVICE.USER}Service user.
    {#SERVICE.STARTUP}Numerical value of the service startup type:
    0 - Automatic
    1 - Automatic delayed
    2 - Manual
    3 - Disabled
    4 - Unknown
    {#SERVICE.STARTUPNAME}Name of the service startup type (Automatic, Automatic delayed, Manual, Disabled, Unknown).
    {#SERVICE.STARTUPTRIGGER}Numerical value to indicate if the service startup type has:
    0 - no startup triggers
    1 - has startup triggers
    This macro is supported since Zabbix 3.4.4. It is useful to discover such service startup types as Automatic (trigger start), Automatic delayed (trigger start) and Manual (trigger start).

    Based on Windows service discovery you may create an prototype like

    For example, to acquire the display name of a service you may use a “service.info[{#SERVICE.NAME},displayname]” item. If value is not specified (“service.info[{#SERVICE.NAME}]”), the default state parameter is used.