zabbix_export:
  version: '8.0'
  template_groups:
    - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
    - uuid: 748ad4d098d447d492bb935c907f652f
      name: Templates/Databases
    - uuid: 36bff6c29af64692839d077febfc7079
      name: 'Templates/Network devices'
    - uuid: 846977d1dfed4968bc5f8bdb363285bc
      name: 'Templates/Operating systems'
    - uuid: e960332b3f6c46a1956486d4f3f99fce
      name: 'Templates/Server hardware'
  templates:
    - uuid: 36116d8675da47b8a678193969d5a787
      template: 'CockroachDB by HTTP'
      name: 'CockroachDB by HTTP'
      description: |
        The template to monitor CockroachDB nodes by Zabbix that works without any external scripts.
        Most of the metrics are collected in one go, thanks to Zabbix bulk data collection.
        
        The template collects metrics by HTTP agent from Prometheus endpoint and health endpoints.
        
        Internal node metrics are collected from Prometheus /_status/vars endpoint.
        Node health metrics are collected from /health and /health?ready=1 endpoints.
        The template doesn't require usage of session token.
        
        Note, that some metrics may not be collected depending on your CockroachDB version and configuration.
        
        Setup:
        
        Set the hostname or IP address of the CockroachDB node host in the '{$COCKROACHDB.API.HOST}' macro. You can also change the port in the '{$COCKROACHDB.API.PORT}' macro and the scheme in the '{$COCKROACHDB.API.SCHEME}' macro if necessary.
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        The template to monitor CockroachDB nodes by Zabbix that works without any external scripts.
        Most of the metrics are collected in one go, thanks to Zabbix bulk data collection.
        
        The template collects metrics by HTTP agent from Prometheus endpoint and health endpoints.
        
        Internal node metrics are collected from Prometheus /_status/vars endpoint.
        Node health metrics are collected from /health and /health?ready=1 endpoints.
        The template doesn't require usage of session token.
        
        **Note**, that some metrics may not be collected depending on your CockroachDB version and configuration.
        
        ## Setup
        
        Set the hostname or IP address of the CockroachDB node host in the `CockroachDB host` host wizard configuration field. You can also change the port in the `CockroachDB port` and the scheme in the `Request scheme` if necessary.
      vendor:
        name: Zabbix
        version: 8.0-1
      groups:
        - name: Templates/Databases
      items:
        - uuid: 90f7e9b6d22e4c30990f06f0320056d3
          name: 'CA certificate expiration date'
          type: DEPENDENT
          key: cockroachdb.cert.expire_date.ca
          value_type: FLOAT
          trends: '0'
          units: unixtime
          description: 'CA certificate expires at that date.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - security_certificate_expiration_ca
                - value
                - ''
              error_handler: DISCARD_VALUE
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: ca-certificate
          triggers:
            - uuid: 76a2093eb0214185ab8e03986f3f1474
              expression: '(last(/CockroachDB by HTTP/cockroachdb.cert.expire_date.ca) - now()) / 86400 < {$COCKROACHDB.CERT.CA.EXPIRY.WARN}'
              name: 'CockroachDB: CA certificate expires soon'
              event_name: 'CockroachDB: CA certificate expires soon (less than {$COCKROACHDB.CERT.CA.EXPIRY.WARN} days)'
              priority: WARNING
              description: 'CA certificate expires soon.'
              tags:
                - tag: scope
                  value: notice
        - uuid: 0328c188d5954ae48dcc0649c9c01f52
          name: 'Node certificate expiration date'
          type: DEPENDENT
          key: cockroachdb.cert.expire_date.node
          value_type: FLOAT
          trends: '0'
          units: unixtime
          description: 'Node certificate expires at that date.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - security_certificate_expiration_node
                - value
                - ''
              error_handler: DISCARD_VALUE
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: node-certificate
          triggers:
            - uuid: 592152fe1dde4e81abd4bee76c3dae9d
              expression: '(last(/CockroachDB by HTTP/cockroachdb.cert.expire_date.node) - now()) / 86400 < {$COCKROACHDB.CERT.NODE.EXPIRY.WARN}'
              name: 'CockroachDB: Node certificate expires soon'
              event_name: 'CockroachDB: Node certificate expires soon (less than {$COCKROACHDB.CERT.NODE.EXPIRY.WARN} days)'
              priority: WARNING
              description: 'Node certificate expires soon.'
              tags:
                - tag: scope
                  value: notice
        - uuid: 156d0c66c25a4938b87bd4527580cfd4
          name: 'Clock offset'
          type: DEPENDENT
          key: cockroachdb.clock.offset
          value_type: FLOAT
          units: s
          description: 'Mean clock offset of the node against the rest of the cluster.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - clock_offset_meannanos
                - value
                - ''
            - type: MULTIPLIER
              parameters:
                - '1.0E-9'
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: bddc5c6ac7294bb4be9ed8a4f4d4f4a9
              expression: 'min(/CockroachDB by HTTP/cockroachdb.clock.offset,5m) > {$COCKROACHDB.CLOCK.OFFSET.MAX.WARN} * 0.001'
              name: 'CockroachDB: Clock offset is too high'
              event_name: 'CockroachDB: Clock offset is too high (over {$COCKROACHDB.CLOCK.OFFSET.MAX.WARN}ms for 5m)'
              priority: WARNING
              description: 'Cockroach-measured clock offset is nearing limit (by default, servers kill themselves at 400ms from the mean).'
              tags:
                - tag: scope
                  value: health
        - uuid: 7b6ef56741c14222bef3d40af3bb6b44
          name: 'CPU: System time'
          type: DEPENDENT
          key: cockroachdb.cpu.system_time
          value_type: FLOAT
          units: s
          description: 'System CPU time.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_cpu_sys_ns
                - value
                - ''
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '1.0E-9'
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: cpu
        - uuid: 42008c218c0b4049a4e94daf40754dd7
          name: 'CPU: User time'
          type: DEPENDENT
          key: cockroachdb.cpu.user_time
          value_type: FLOAT
          units: s
          description: 'User CPU time.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_cpu_user_ns
                - value
                - ''
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '1.0E-9'
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: cpu
        - uuid: b13dceebd399415f868c3f1ce68ee46a
          name: 'CPU: Utilization'
          type: DEPENDENT
          key: cockroachdb.cpu.util
          value_type: FLOAT
          units: '%'
          description: 'The CPU utilization expressed in %.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_cpu_combined_percent_normalized
                - value
                - ''
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: cpu
        - uuid: e186df881d6e40ac966e23341b2dbd36
          name: 'File descriptors: Limit'
          type: DEPENDENT
          key: cockroachdb.descriptors.limit
          value_type: FLOAT
          description: 'Open file descriptors soft limit of the process.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_fd_softlimit
                - value
                - ''
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: e21fd3d697294d0f93b504ba57e7552e
          name: 'File descriptors: Open'
          type: DEPENDENT
          key: cockroachdb.descriptors.open
          value_type: FLOAT
          description: 'The number of open file descriptors.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_fd_open
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: 4525de4ee6994c34af6ea3444295bd58
          name: 'Disk: IOPS in progress, rate'
          type: DEPENDENT
          key: cockroachdb.disk.iops.in_progress.rate
          value_type: FLOAT
          description: 'Number of disk IO operations currently in progress on this host.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_disk_iopsinprogress
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: 1240655e000643c98694a5efbb0582d0
          name: 'Disk: Read IOPS, rate'
          type: DEPENDENT
          key: cockroachdb.disk.iops.read.rate
          value_type: FLOAT
          description: 'Number of disk read operations per second across all disks since this process started.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_disk_read_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: cfa381c7317d479ea5e24b0a3ac9de6a
          name: 'Disk: Write IOPS, rate'
          type: DEPENDENT
          key: cockroachdb.disk.iops.write.rate
          value_type: FLOAT
          description: 'Disk write operations per second across all disks since this process started.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_disk_write_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: e226b55a125d4360b853690dbd0d9b63
          name: 'Disk: Reads, rate'
          type: DEPENDENT
          key: cockroachdb.disk.read.rate
          value_type: FLOAT
          units: Bps
          description: 'Bytes read from all disks per second since this process started'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_disk_read_bytes
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: 327d62286a5c40d49690b89b12350c31
          name: 'Disk: Writes, rate'
          type: DEPENDENT
          key: cockroachdb.disk.write.rate
          value_type: FLOAT
          units: Bps
          description: 'Bytes written to all disks per second since this process started.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_disk_write_bytes
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: storage
        - uuid: 8092c82f81824a168328a438d85a0a93
          name: 'GC: Pause time'
          type: DEPENDENT
          key: cockroachdb.gc.pause_time
          value_type: FLOAT
          units: s
          description: 'The amount of processor time used by Go''s garbage collector across all nodes. During garbage collection, application code execution is paused.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_gc_pause_ns
                - value
                - ''
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '1.0E-9'
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: gc
        - uuid: 72298c0f0a00460e85562d13e3baf4b0
          name: 'GC: Runs, rate'
          type: DEPENDENT
          key: cockroachdb.gc.runs.rate
          value_type: FLOAT
          description: 'The number of times that Go''s garbage collector was invoked per second across all nodes.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_gc_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: gc
        - uuid: a8cd030e869b4d788126ee5fa35d3403
          name: 'Get health'
          type: HTTP_AGENT
          key: cockroachdb.get_health
          description: 'Get node /health endpoint'
          valuemap:
            name: 'Node health'
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
            - type: REGEX
              parameters:
                - 'HTTP.*\s(\d+)'
                - \1
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          timeout: 15s
          url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/health'
          status_codes: '200,500'
          retrieve_mode: HEADERS
          tags:
            - tag: component
              value: health
          triggers:
            - uuid: 6ccd74acda004a738c3003af4526cd91
              expression: 'last(/CockroachDB by HTTP/cockroachdb.get_health) = 500'
              name: 'CockroachDB: Node is unhealthy'
              priority: AVERAGE
              description: 'Node''s /health endpoint has returned HTTP 500 Internal Server Error which indicates unhealthy mode.'
              dependencies:
                - name: 'CockroachDB: Service is down'
                  expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0'
              tags:
                - tag: scope
                  value: health
        - uuid: 926415babea74e2f951a0420bbdf1d8d
          name: 'Get metrics'
          type: HTTP_AGENT
          key: cockroachdb.get_metrics
          history: '0'
          value_type: TEXT
          description: 'Get raw metrics from the Prometheus endpoint.'
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
          timeout: 15s
          url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/_status/vars'
          tags:
            - tag: component
              value: raw
        - uuid: 3e5e18e02b1b4f8d8f17c2e7d993169c
          name: 'Get readiness'
          type: HTTP_AGENT
          key: cockroachdb.get_readiness
          description: 'Get node /health?ready=1 endpoint'
          valuemap:
            name: 'Node readiness'
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
            - type: REGEX
              parameters:
                - 'HTTP.*\s(\d+)'
                - \1
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          timeout: 15s
          url: '{$COCKROACHDB.API.SCHEME}://{$COCKROACHDB.API.HOST}:{$COCKROACHDB.API.PORT}/health?ready=1'
          status_codes: '200,503'
          retrieve_mode: HEADERS
          tags:
            - tag: component
              value: health
        - uuid: a36bcb9217054c1db2e67c8533842d01
          name: 'Go: Goroutines count'
          type: DEPENDENT
          key: cockroachdb.go.goroutines.count
          value_type: FLOAT
          description: 'Current number of Goroutines. This count should rise and fall based on load.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_goroutines
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: go
        - uuid: 9dcb023ceacb4023897af11b96592d6b
          name: 'Liveness heartbeats, rate'
          type: DEPENDENT
          key: cockroachdb.heartbeaths.success.rate
          description: 'Number of successful node liveness heartbeats per second from this node.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - liveness_heartbeatsuccesses
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: liveness
        - uuid: 1a01d2c75d934f489e171a3a147a2078
          name: 'KV transactions: Aborted, rate'
          type: DEPENDENT
          key: cockroachdb.kv.transactions.aborted.rate
          value_type: FLOAT
          description: 'Number of aborted KV transactions per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - txn_aborts
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: kv
        - uuid: be9c377ac5a64579a3b849bbd28e4dc7
          name: 'KV transactions: Committed, rate'
          type: DEPENDENT
          key: cockroachdb.kv.transactions.committed.rate
          value_type: FLOAT
          description: 'Number of KV transactions (including 1PC) committed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - txn_commits
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: kv
        - uuid: 872eaa89c9e34c358f60b845316a22c0
          name: 'Live nodes count'
          type: DEPENDENT
          key: cockroachdb.live_count
          description: 'The number of live nodes in the cluster (will be 0 if this node is not itself live).'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - liveness_livenodes
                - value
                - ''
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: liveness
        - uuid: 5a8bf48e85b845bf83346491ccf5cfac
          name: 'Memory: Allocated by Cgo'
          type: DEPENDENT
          key: cockroachdb.memory.cgo.allocated
          value_type: FLOAT
          units: B
          description: 'Current bytes of memory allocated by the C layer.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_cgo_allocbytes
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: cgo
            - tag: component
              value: memory
        - uuid: 07dc780b07ee4a34abd9bc658416f507
          name: 'Memory: Managed by Cgo'
          type: DEPENDENT
          key: cockroachdb.memory.cgo.managed
          value_type: FLOAT
          units: B
          description: 'Total bytes of memory managed by the C layer.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_cgo_totalbytes
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: cgo
            - tag: component
              value: memory
        - uuid: af45fdeea2ff4b7ba2d488b704966f16
          name: 'Memory: Allocated by Go'
          type: DEPENDENT
          key: cockroachdb.memory.go.allocated
          value_type: FLOAT
          units: B
          description: 'Current bytes of memory allocated by the Go layer.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_go_allocbytes
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: go
            - tag: component
              value: memory
        - uuid: 74669e09ce86441d877de519c86b3f83
          name: 'Memory: Managed by Go'
          type: DEPENDENT
          key: cockroachdb.memory.go.managed
          value_type: FLOAT
          units: B
          description: 'Total bytes of memory managed by the Go layer.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_go_totalbytes
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: go
            - tag: component
              value: memory
        - uuid: 14524b3f8c5f4d509d15063af19c9569
          name: 'Memory: Allocated by SQL'
          type: DEPENDENT
          key: cockroachdb.memory.sql
          value_type: FLOAT
          units: B
          description: 'Current SQL statement memory usage for root.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_mem_root_current
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: memory
            - tag: component
              value: sql
        - uuid: c10b66dd872145528540e90ad3198b81
          name: 'Memory: Total usage'
          type: DEPENDENT
          key: cockroachdb.memory.total
          value_type: FLOAT
          units: B
          description: 'Resident set size (RSS) of memory in use by the node.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_rss
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: memory
        - uuid: aee505389afb4fb0a4a7d8b8dd58fe76
          name: 'Network: Bytes received, rate'
          type: DEPENDENT
          key: cockroachdb.network.bytes.received.rate
          value_type: FLOAT
          units: Bps
          description: 'Bytes received per second on all network interfaces since this process started.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_net_recv_bytes
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: network
        - uuid: 9b04fac1a84e40aa833366fda679a3e3
          name: 'Network: Bytes sent, rate'
          type: DEPENDENT
          key: cockroachdb.network.bytes.sent.rate
          value_type: FLOAT
          units: Bps
          description: 'Bytes sent per second on all network interfaces since this process started.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_host_net_send_bytes
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: network
        - uuid: 717ef9bbc00c46a09b28811910c4163a
          name: 'Slow requests: DistSender RPCs'
          type: DEPENDENT
          key: cockroachdb.slow_requests.rpc
          value_type: FLOAT
          description: 'Number of RPCs stuck or retrying for a long time.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - requests_slow_distsender
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: requests
        - uuid: dafcd171e5eb4a56ac6537cb4ae15071
          name: 'SQL: Bytes received, rate'
          type: DEPENDENT
          key: cockroachdb.sql.bytes.received.rate
          value_type: FLOAT
          units: Bps
          description: 'Total amount of incoming SQL client network traffic in bytes per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_bytesin
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 2795f530365d4f80866926f49a3841df
          name: 'SQL: Bytes sent, rate'
          type: DEPENDENT
          key: cockroachdb.sql.bytes.sent.rate
          value_type: FLOAT
          units: Bps
          description: 'Total amount of outgoing SQL client network traffic in bytes per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_bytesout
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 655018f6a2b7480a883c08ffd8c3c5e7
          name: 'SQL: Schema changes, rate'
          type: DEPENDENT
          key: cockroachdb.sql.schema_changes.rate
          value_type: FLOAT
          description: 'Total number of SQL DDL statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_ddl_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 79ed7dc3660a44cc8f30822e992154b6
          name: 'SQL sessions: Open'
          type: DEPENDENT
          key: cockroachdb.sql.sessions
          value_type: FLOAT
          description: 'Total number of open SQL sessions.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_conns
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: d4164a9763b34976ba8f89a49e9aaf25
          name: 'SQL statements: Active'
          type: DEPENDENT
          key: cockroachdb.sql.statements.active
          value_type: FLOAT
          description: 'Total number of SQL statements currently active.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_distsql_queries_active
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: bcae7af870ed48dc919be3dbd63df1ba
          name: 'SQL statements: Contention, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.contention.rate
          value_type: FLOAT
          description: 'Total number of SQL statements that experienced contention per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_distsql_contended_queries_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 80b08a576e334963a17e37a5c2305214
          name: 'SQL statements: DELETE, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.delete.rate
          value_type: FLOAT
          description: 'A moving average of the number of DELETE statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_delete_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 68532afbcda644f1928203c013335f2a
          name: 'SQL statements: Denials, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.denials.rate
          value_type: FLOAT
          description: 'The number of statements denied per second by a feature flag.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_feature_flag_denial
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: dc93958dabdc439f8a7ad9c5a12fddcd
          name: 'SQL statements: Errors, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.errors.rate
          value_type: FLOAT
          description: 'Total number of statements which returned a planning or runtime error per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_failure_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
          triggers:
            - uuid: 7307fc4f2c29438e99eea0256a8755ce
              expression: 'min(/CockroachDB by HTTP/cockroachdb.sql.statements.errors.rate,5m) > {$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN}'
              name: 'CockroachDB: SQL statements errors rate is too high'
              event_name: 'CockroachDB: SQL statements errors rate is too high (over {$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN} per second for 5m)'
              priority: WARNING
              tags:
                - tag: scope
                  value: health
        - uuid: 3c9fb90492e44789ba9a899d03546b6d
          name: 'SQL statements: Executed, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.executed.rate
          value_type: FLOAT
          description: 'Number of SQL queries executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_query_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: ae83868ea1194089a65b9c3bfb81ef27
          name: 'SQL statements: Active flows distributed, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.flows.active.rate
          value_type: FLOAT
          description: 'The number of distributed SQL flows currently active per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_distsql_flows_active
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: b9c72429c3264119af27e3b4d1c7486a
          name: 'SQL statements: INSERT, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.insert.rate
          value_type: FLOAT
          description: 'A moving average of the number of INSERT statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_insert_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: d6fc464f4e784569911880f52020d08d
          name: 'SQL statements: SELECT, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.select.rate
          value_type: FLOAT
          description: 'A moving average of the number of SELECT statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_select_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 8832cd69551a4ad084c283fb076a17b6
          name: 'SQL statements: UPDATE, rate'
          type: DEPENDENT
          key: cockroachdb.sql.statements.update.rate
          value_type: FLOAT
          description: 'A moving average of the number of UPDATE statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_update_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 6e2f06b2b71f447aae06940b205e22bf
          name: 'SQL transactions: Aborted, rate'
          type: DEPENDENT
          key: cockroachdb.sql.transactions.aborted.rate
          value_type: FLOAT
          description: 'Total number of SQL transaction abort errors per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_txn_abort_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: d32b3f22158f4091926ebf9746439da3
          name: 'SQL transactions: Committed, rate'
          type: DEPENDENT
          key: cockroachdb.sql.transactions.committed.rate
          value_type: FLOAT
          description: 'Total number of SQL transaction COMMIT statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_txn_commit_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: ca529d30b36e4bf591c8b5e313f9bbc0
          name: 'SQL transactions: Initiated, rate'
          type: DEPENDENT
          key: cockroachdb.sql.transactions.initiated.rate
          value_type: FLOAT
          description: 'Total number of SQL transaction BEGIN statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_txn_begin_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 6490aac99d654eebae14cedb935c8d9f
          name: 'SQL transactions: Open'
          type: DEPENDENT
          key: cockroachdb.sql.transactions.open
          value_type: FLOAT
          description: 'Total number of currently open SQL transactions.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_txns_open
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 07274667c22d4e52b50ead17c864ae36
          name: 'SQL transactions: Rolled back, rate'
          type: DEPENDENT
          key: cockroachdb.sql.transactions.rollbacks.rate
          value_type: FLOAT
          description: 'Total number of SQL transaction ROLLBACK statements successfully executed per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sql_txn_rollback_count
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: sql
        - uuid: 5b96333392ac4e678204d048b4940135
          name: 'Time series: Sample errors, rate'
          type: DEPENDENT
          key: cockroachdb.ts.samples.errors.rate
          value_type: FLOAT
          description: 'The number of errors encountered while attempting to write metrics to disk, per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - timeseries_write_errors
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: timeseries
        - uuid: 444fbc4df9c64e92bd3f41022539a940
          name: 'Time series: Samples written, rate'
          type: DEPENDENT
          key: cockroachdb.ts.samples.written.rate
          value_type: FLOAT
          description: 'The number of successfully written metric samples per second.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - timeseries_write_samples
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: timeseries
        - uuid: b200e1f665ad425394e631b2844a1fdb
          name: Uptime
          type: DEPENDENT
          key: cockroachdb.uptime
          value_type: FLOAT
          units: s
          description: 'Process uptime.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - sys_uptime
                - value
                - ''
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 90f6cccaf3d94a3d853641482ccb5254
              expression: 'nodata(/CockroachDB by HTTP/cockroachdb.uptime,5m) = 1'
              name: 'CockroachDB: Failed to fetch node data'
              event_name: 'CockroachDB: Failed to fetch node data (or no data for 5m)'
              priority: WARNING
              description: 'Zabbix has not received data for items for the last 5 minutes.'
              dependencies:
                - name: 'CockroachDB: Service is down'
                  expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0'
              tags:
                - tag: scope
                  value: availability
            - uuid: 83802e38f1414ca9b40e2d2df2d94941
              expression: 'last(/CockroachDB by HTTP/cockroachdb.uptime) < 10m'
              name: 'CockroachDB: Node has been restarted'
              event_name: 'CockroachDB: Node has been restarted (uptime < 10m)'
              priority: INFO
              description: 'Uptime is less than 10 minutes.'
              tags:
                - tag: scope
                  value: notice
        - uuid: d588fc919b364889abd98537dfc80575
          name: Version
          type: DEPENDENT
          key: cockroachdb.version
          value_type: CHAR
          description: 'Build information.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - build_timestamp
                - label
                - tag
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: cockroachdb.get_metrics
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 620aee1613e841acb44a438b4b9b68c9
              expression: 'last(/CockroachDB by HTTP/cockroachdb.version) <> last(/CockroachDB by HTTP/cockroachdb.version,#2) and length(last(/CockroachDB by HTTP/cockroachdb.version)) > 0'
              name: 'CockroachDB: Version has changed'
              event_name: 'CockroachDB: Version has changed (new version: {ITEM.VALUE})'
              priority: INFO
              tags:
                - tag: scope
                  value: notice
        - uuid: 00afa7b32af9499c89e939c96e0e29d1
          name: 'Service ping'
          type: SIMPLE
          key: 'net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]'
          description: 'Check if HTTP/HTTPS service accepts TCP connections.'
          valuemap:
            name: 'Service state'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 10m
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: d3c0d0a9e1f44c95a2246ab7081f581b
              expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0'
              name: 'CockroachDB: Service is down'
              priority: AVERAGE
              tags:
                - tag: scope
                  value: availability
      discovery_rules:
        - uuid: c201ddd6c35c4d67a05b9a99952f54f2
          name: 'Storage metrics discovery'
          type: DEPENDENT
          key: cockroachdb.store.discovery
          description: 'Discover per store metrics.'
          item_prototypes:
            - uuid: a12e4937d2c44eacada535774e74653a
              name: 'Storage [{#STORE}]: Queue processing failures: Consistency, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.consistency.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the consistency checker queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_consistency_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: 5d328a66855d4cbba099713befd4d240
              name: 'Storage [{#STORE}]: Queue processing failures: GC, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.gc.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the GC queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_gc_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: b71cc221443b42888d64dea02e75d3f9
              name: 'Storage [{#STORE}]: Queue processing failures: Replica GC, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.gc_replica.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the replica GC queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_replicagc_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: eabbf198e158428aaf9b15f491dd0895
              name: 'Storage [{#STORE}]: Queue processing failures: Raft log, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.raftlog.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the Raft log queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_raftlog_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: 2369ad2e98c84d2a83b64f3b1fce826e
              name: 'Storage [{#STORE}]: Queue processing failures: Raft snapshot, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.raftsnapshot.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the Raft repair queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_raftsnapshot_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: 604df422fb084fba8480758e30fc81f3
              name: 'Storage [{#STORE}]: Queue processing failures: Replicate, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.replicate.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the replicate queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_replicate_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: 40e94d8e2cc54c7b9c0a6c4d7c8dc308
              name: 'Storage [{#STORE}]: Queue processing failures: Split, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.split.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the split queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_split_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: ceb47605bc364044993e59430f37a07c
              name: 'Storage [{#STORE}]: Queue processing failures: Time series maintenance, rate'
              type: DEPENDENT
              key: 'cockroachdb.queue.processing_failures.tsmaintenance.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of replicas which failed processing in the time series maintenance queue per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'queue_tsmaintenance_process_failure{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: queues
            - uuid: 4ed616f13c9d4669879aa8bdad35a06a
              name: 'Storage [{#STORE}]: Ranges count'
              type: DEPENDENT
              key: 'cockroachdb.ranges.[{#STORE},count]'
              value_type: FLOAT
              description: 'Number of ranges.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'ranges{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: ranges
            - uuid: 63e70400900a4b5caa8e89a18c83ebd7
              name: 'Storage [{#STORE}]: Ranges unavailable'
              type: DEPENDENT
              key: 'cockroachdb.ranges.[{#STORE},unavailable]'
              value_type: FLOAT
              description: 'Number of ranges with fewer live replicas than needed for quorum.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'ranges_unavailable{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: ranges
            - uuid: beea6adf48df454fa6628d44455ca52f
              name: 'Storage [{#STORE}]: Ranges underreplicated'
              type: DEPENDENT
              key: 'cockroachdb.ranges.[{#STORE},underreplicated]'
              value_type: FLOAT
              description: 'Number of ranges with fewer live replicas than the replication target.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'ranges_underreplicated{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: ranges
            - uuid: d0b45b5a00d64c39bce2117fdb35d373
              name: 'Storage [{#STORE}]: Rebalancing: Average queries, rate'
              type: DEPENDENT
              key: 'cockroachdb.rebalancing.queries.average.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of kv-level requests received per second by the store, averaged over a large time period as used in rebalancing decisions.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rebalancing_queriespersecond{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rebalancing
            - uuid: b5c10de1a784458f9df54813cc10c32b
              name: 'Storage [{#STORE}]: Rebalancing: Average writes, rate'
              type: DEPENDENT
              key: 'cockroachdb.rebalancing.writes.average.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Number of keys written (i.e. applied by raft) per second to the store, averaged over a large time period as used in rebalancing decisions.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rebalancing_writespersecond{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rebalancing
            - uuid: 191985a08c554160bc371f5fca638336
              name: 'Storage [{#STORE}]: Replication: Replicas'
              type: DEPENDENT
              key: 'cockroachdb.replication.replicas.[{#STORE},count]'
              value_type: FLOAT
              description: 'Number of replicas.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'replicas{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: replication
            - uuid: 089c354ee1c547808bbf8655d16d1a06
              name: 'Storage [{#STORE}]: Replication: Replicas quiesced'
              type: DEPENDENT
              key: 'cockroachdb.replication.replicas.[{#STORE},quiesced]'
              value_type: FLOAT
              description: 'Number of quiesced replicas.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'replicas_quiescent{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: replication
            - uuid: 87f949f768b54ba1b648a04d86f4c4da
              name: 'Storage [{#STORE}]: Replication: Lease holders'
              type: DEPENDENT
              key: 'cockroachdb.replication.[{#STORE},lease_holders]'
              value_type: FLOAT
              description: 'Number of lease holders.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'replicas_leaseholders{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: replication
            - uuid: eb6202583eb24ac28b60a8d5f24c1ccf
              name: 'Storage [{#STORE}]: RocksDB cache hits, rate'
              type: DEPENDENT
              key: 'cockroachdb.rocksdb.cache.hits.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Count of block cache hits per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rocksdb_block_cache_hits{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rocksdb
            - uuid: 278d4cbcaa844f1281dd029da54300e4
              name: 'Storage [{#STORE}]: RocksDB cache misses, rate'
              type: DEPENDENT
              key: 'cockroachdb.rocksdb.cache.misses.[{#STORE},rate]'
              value_type: FLOAT
              description: 'Count of block cache misses per second.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rocksdb_block_cache_misses{store="{#STORE}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rocksdb
            - uuid: cafdf6248d114787b2a3f9647a4afea9
              name: 'Storage [{#STORE}]: RocksDB cache hit ratio'
              type: CALCULATED
              key: 'cockroachdb.rocksdb.cache.[{#STORE},hit_ratio]'
              value_type: FLOAT
              units: '%'
              params: 'last(//cockroachdb.rocksdb.cache.hits.[{#STORE},rate]) / (last(//cockroachdb.rocksdb.cache.hits.[{#STORE},rate]) + last(//cockroachdb.rocksdb.cache.misses.[{#STORE},rate])) * 100'
              description: 'Block cache hit ratio in %.'
              tags:
                - tag: component
                  value: rocksdb
            - uuid: f4175e8984d14ad89c0bd1fce5b37372
              name: 'Storage [{#STORE}]: RocksDB read amplification'
              type: DEPENDENT
              key: 'cockroachdb.rocksdb.[{#STORE},read_amp]'
              value_type: FLOAT
              description: 'The average number of real read operations executed per logical read operation.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rocksdb_read_amplification{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rocksdb
            - uuid: edc1e5548d9e4d629b44b067ffc666b9
              name: 'Storage [{#STORE}]: RocksDB SSTables'
              type: DEPENDENT
              key: 'cockroachdb.rocksdb.[{#STORE},sstables]'
              value_type: FLOAT
              description: 'The number of SSTables in use.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'rocksdb_num_sstables{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: rocksdb
            - uuid: 6e826e48da5844468ba8d14ae0f1acc4
              name: 'Storage [{#STORE}]: Slow requests: Latch acquisitions'
              type: DEPENDENT
              key: 'cockroachdb.slow_requests.[{#STORE},latch_acquisitions]'
              value_type: FLOAT
              description: 'Number of requests that have been stuck for a long time acquiring latches.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'requests_slow_latch{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: requests
            - uuid: 0cc9c428567a47c6adb41d137965a362
              name: 'Storage [{#STORE}]: Slow requests: Lease acquisitions'
              type: DEPENDENT
              key: 'cockroachdb.slow_requests.[{#STORE},lease_acquisitions]'
              value_type: FLOAT
              description: 'Number of requests that have been stuck for a long time acquiring a lease.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'requests_slow_lease{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: requests
            - uuid: 11c9e0dea4ec48a69ff3961aa6d1f910
              name: 'Storage [{#STORE}]: Slow requests: Raft proposals'
              type: DEPENDENT
              key: 'cockroachdb.slow_requests.[{#STORE},raft_proposals]'
              value_type: FLOAT
              description: 'Number of requests that have been stuck for a long time in raft.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'requests_slow_raft{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: requests
            - uuid: bbf0f281f3aa4964829ed2213db5dfc7
              name: 'Storage [{#STORE}]: Bytes: Live'
              type: DEPENDENT
              key: 'cockroachdb.storage.bytes.[{#STORE},live]'
              value_type: FLOAT
              units: B
              description: 'Number of logical bytes stored in live key-value pairs on this node. Live data excludes historical and deleted data.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'livebytes{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
            - uuid: 232970f8bf12412e8a6bd96978a7ad5f
              name: 'Storage [{#STORE}]: Bytes: Logical'
              type: DEPENDENT
              key: 'cockroachdb.storage.bytes.[{#STORE},logical]'
              value_type: FLOAT
              units: B
              description: 'Number of logical bytes stored in key-value pairs on this node. This includes historical and deleted data.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'totalbytes{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
            - uuid: 58d6f4d3c9ff41cab05697e7c59cf8e2
              name: 'Storage [{#STORE}]: Bytes: System'
              type: DEPENDENT
              key: 'cockroachdb.storage.bytes.[{#STORE},system]'
              value_type: FLOAT
              units: B
              description: 'Number of physical bytes stored in system key-value pairs.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'sysbytes{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
            - uuid: 01c02c5a9c174cd2b958634da07824e5
              name: 'Storage [{#STORE}]: Capacity available'
              type: DEPENDENT
              key: 'cockroachdb.storage.capacity.[{#STORE},available]'
              value_type: FLOAT
              units: B
              description: 'Available storage capacity.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'capacity_available{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
            - uuid: bb07359b779d4e4080593a02c18dc8c1
              name: 'Storage [{#STORE}]: Capacity available in %'
              type: CALCULATED
              key: 'cockroachdb.storage.capacity.[{#STORE},available_percent]'
              value_type: FLOAT
              units: '%'
              params: 'last(//cockroachdb.storage.capacity.[{#STORE},available]) / last(//cockroachdb.storage.capacity.[{#STORE},total]) * 100'
              description: 'Available storage capacity in %.'
              tags:
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: db07663014aa47a892faa2f9dbd97ec9
                  expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.CRIT}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.CRIT}'
                  name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low'
                  event_name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low (less than {$COCKROACHDB.STORE.USED.MIN.CRIT}%)'
                  priority: AVERAGE
                  description: 'Storage is running critically low on free space (less than {$COCKROACHDB.STORE.USED.MIN.CRIT}% available).'
                  tags:
                    - tag: scope
                      value: capacity
                - uuid: a58b694f4cf642228ec0633f0efb04a7
                  expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.WARN}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.WARN}'
                  name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is low'
                  event_name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is low (less than {$COCKROACHDB.STORE.USED.MIN.WARN}%)'
                  priority: WARNING
                  description: 'Storage is running low on free space (less than {$COCKROACHDB.STORE.USED.MIN.WARN}% available).'
                  dependencies:
                    - name: 'CockroachDB: Storage [{#STORE}]: Available storage capacity is critically low'
                      expression: 'max(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) < {$COCKROACHDB.STORE.USED.MIN.CRIT}'
                      recovery_expression: 'min(/CockroachDB by HTTP/cockroachdb.storage.capacity.[{#STORE},available_percent],5m) > {$COCKROACHDB.STORE.USED.MIN.CRIT}'
                  tags:
                    - tag: scope
                      value: capacity
            - uuid: 35ce626304fb4d39bd382161cb052346
              name: 'Storage [{#STORE}]: Capacity total'
              type: DEPENDENT
              key: 'cockroachdb.storage.capacity.[{#STORE},total]'
              value_type: FLOAT
              units: B
              description: 'Total storage capacity. This value may be explicitly set using --store. If a store size has not been set, this metric displays the actual disk capacity.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'capacity{store="{#STORE}"}'
                    - value
                    - ''
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
            - uuid: b6db680d16bc41408d13f7275c603fca
              name: 'Storage [{#STORE}]: Capacity used'
              type: DEPENDENT
              key: 'cockroachdb.storage.capacity.[{#STORE},used]'
              value_type: FLOAT
              units: B
              description: 'Disk space in use by CockroachDB data on this node. This excludes the Cockroach binary, operating system, and other system files.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'capacity_used{store="{#STORE}"}'
                    - value
                    - ''
              master_item:
                key: cockroachdb.get_metrics
              tags:
                - tag: component
                  value: storage
          graph_prototypes:
            - uuid: 4cd837e243f14174a6d259b359e4f90d
              name: 'CockroachDB: Storage [{#STORE}]: Bytes'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.storage.bytes.[{#STORE},live]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.storage.bytes.[{#STORE},system]'
            - uuid: f5054466f5834071ad9e3bd50764ba29
              name: 'CockroachDB: Storage [{#STORE}]: Capacity'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.storage.capacity.[{#STORE},total]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.storage.capacity.[{#STORE},available]'
                - sortorder: '2'
                  color: 00611C
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.storage.capacity.[{#STORE},used]'
            - uuid: e6763dafd3c54e0787eae612921e35f8
              name: 'CockroachDB: Storage [{#STORE}]: Queue processing failures'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.consistency.[{#STORE},rate]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.gc.[{#STORE},rate]'
                - sortorder: '2'
                  color: 00611C
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.raftlog.[{#STORE},rate]'
                - sortorder: '3'
                  color: F7941D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.raftsnapshot.[{#STORE},rate]'
                - sortorder: '4'
                  color: FC6EA3
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.gc_replica.[{#STORE},rate]'
                - sortorder: '5'
                  color: 6C59DC
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.replicate.[{#STORE},rate]'
                - sortorder: '6'
                  color: C7A72D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.split.[{#STORE},rate]'
                - sortorder: '7'
                  color: BA2A5D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.queue.processing_failures.tsmaintenance.[{#STORE},rate]'
            - uuid: 0c4977666e5e4af1b5e1f840284fe7d0
              name: 'CockroachDB: Storage [{#STORE}]: Ranges'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.ranges.[{#STORE},count]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.replication.[{#STORE},lease_holders]'
                - sortorder: '2'
                  color: 00611C
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.ranges.[{#STORE},unavailable]'
                - sortorder: '3'
                  color: F7941D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.ranges.[{#STORE},underreplicated]'
            - uuid: 811d38ab09494628ae6ac36aa54c1795
              name: 'CockroachDB: Storage [{#STORE}]: Replica quiescence'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.replication.replicas.[{#STORE},count]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'CockroachDB by HTTP'
                    key: 'cockroachdb.replication.replicas.[{#STORE},quiesced]'
          master_item:
            key: cockroachdb.get_metrics
          lld_macro_paths:
            - lld_macro: '{#STORE}'
              path: $.labels.store
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - capacity
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
      tags:
        - tag: class
          value: database
        - tag: subclass
          value: sql
        - tag: target
          value: cockroachdb
      macros:
        - macro: '{$COCKROACHDB.API.HOST}'
          description: 'The hostname or IP address of the CockroachDB host.'
          config:
            type: TEXT
            priority: '1'
            label: 'CockroachDB host'
            description: 'The hostname or IP address of the CockroachDB host.'
            required: 'YES'
        - macro: '{$COCKROACHDB.API.PORT}'
          value: '8080'
          description: 'The port of CockroachDB API and Prometheus endpoint.'
          config:
            type: TEXT
            priority: '2'
            label: 'CockroachDB port'
            description: 'The port of CockroachDB API and Prometheus endpoint.'
            required: 'YES'
        - macro: '{$COCKROACHDB.API.SCHEME}'
          value: http
          description: 'Request scheme which may be http or https.'
          config:
            type: LIST
            priority: '3'
            label: 'Request scheme'
            description: 'Request scheme which may be http or https.'
            required: 'YES'
            options:
              - value: http
                text: http
              - value: https
                text: https
        - macro: '{$COCKROACHDB.CERT.CA.EXPIRY.WARN}'
          value: '90'
          description: 'Number of days until the CA certificate expires.'
          config:
            type: TEXT
            priority: '8'
            section_name: Thresholds
            label: 'CA cert expiry (days)'
            description: 'Number of days until the CA certificate expires.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.CERT.NODE.EXPIRY.WARN}'
          value: '30'
          description: 'Number of days until the node certificate expires.'
          config:
            type: TEXT
            priority: '7'
            section_name: Thresholds
            label: 'Node cert expiry (days)'
            description: 'Number of days until the node certificate expires.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.CLOCK.OFFSET.MAX.WARN}'
          value: '300'
          description: 'Maximum clock offset of the node against the rest of the cluster in milliseconds for trigger expression.'
          config:
            type: TEXT
            priority: '9'
            section_name: Thresholds
            label: 'Max clock offset (ms)'
            description: 'Maximum clock offset of the node against the rest of the cluster in milliseconds for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.OPEN.FDS.MAX.WARN}'
          value: '80'
          description: 'Maximum percentage of used file descriptors.'
          config:
            type: TEXT
            priority: '6'
            section_name: Thresholds
            label: 'Max file descriptors used (%)'
            description: 'Maximum percentage of used file descriptors.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.STATEMENTS.ERRORS.MAX.WARN}'
          value: '2'
          description: 'Maximum number of SQL statements errors for trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Thresholds
            label: 'Max SQL errors'
            description: 'Maximum number of SQL statements errors for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.STORE.USED.MIN.CRIT}'
          value: '10'
          description: 'The critical threshold of the available disk space in percent.'
          config:
            type: TEXT
            priority: '5'
            section_name: Thresholds
            label: 'Disk space critical (%)'
            description: 'The critical threshold of the available disk space in percent.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$COCKROACHDB.STORE.USED.MIN.WARN}'
          value: '20'
          description: 'The warning threshold of the available disk space in percent.'
          config:
            type: TEXT
            priority: '4'
            section_name: Thresholds
            label: 'Disk space warning (%)'
            description: 'The warning threshold of the available disk space in percent.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      dashboards:
        - uuid: fda49a1847d34b84be2fe5d9d12b8444
          name: Hardware
          pages:
            - name: Hardware
              widgets:
                - type: graph
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.cpu.util
                    - type: STRING
                      name: reference
                      value: AAAAA
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '5'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Memory usage'
                    - type: STRING
                      name: reference
                      value: AAAAB
                - type: graphprototype
                  'y': '10'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Storage [{#STORE}]: Capacity'
                    - type: STRING
                      name: reference
                      value: AAAAC
                - type: graph
                  'y': '15'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Disk: r/w, rate'
                    - type: STRING
                      name: reference
                      value: AAAAD
                - type: graph
                  'y': '20'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Disk: r/w IOPS, rate'
                    - type: STRING
                      name: reference
                      value: AAAAE
                - type: graph
                  'y': '25'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.disk.iops.in_progress.rate
                    - type: STRING
                      name: reference
                      value: AAAAF
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '30'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Network traffic'
                    - type: STRING
                      name: reference
                      value: AAAAG
        - uuid: 41dce007bcf54762ad321ac944a8b63e
          name: Replication
          pages:
            - name: Replication
              widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Storage [{#STORE}]: Ranges'
                    - type: STRING
                      name: reference
                      value: AAAAH
                - type: graphprototype
                  'y': '5'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.replication.[{#STORE},lease_holders]'
                    - type: STRING
                      name: reference
                      value: AAAAI
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graphprototype
                  'y': '10'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.rebalancing.queries.average.[{#STORE},rate]'
                    - type: STRING
                      name: reference
                      value: AAAAJ
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graphprototype
                  'y': '15'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Storage [{#STORE}]: Replica quiescence'
                    - type: STRING
                      name: reference
                      value: AAAAK
        - uuid: 0d9a3feb76ad403dac7379dbe04298f0
          name: Runtime
          pages:
            - name: Runtime
              widgets:
                - type: graph
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.live_count
                    - type: STRING
                      name: reference
                      value: AAAAL
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '5'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Memory usage'
                    - type: STRING
                      name: reference
                      value: AAAAM
                - type: graph
                  'y': '10'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.go.goroutines.count
                    - type: STRING
                      name: reference
                      value: AAAAN
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '15'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.gc.runs.rate
                    - type: STRING
                      name: reference
                      value: AAAAO
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '20'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.gc.pause_time
                    - type: STRING
                      name: reference
                      value: AAAAP
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '25'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: CPU Time'
                    - type: STRING
                      name: reference
                      value: AAAAQ
                - type: graph
                  'y': '30'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.clock.offset
                    - type: STRING
                      name: reference
                      value: AAAAR
                    - type: INTEGER
                      name: source_type
                      value: '1'
        - uuid: ac89b176f2c34fc1b885ee1ed43df590
          name: 'Slow requests'
          pages:
            - name: 'Slow requests'
              widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.slow_requests.[{#STORE},raft_proposals]'
                    - type: STRING
                      name: reference
                      value: AAAAS
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graph
                  'y': '5'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.slow_requests.rpc
                    - type: STRING
                      name: reference
                      value: AAAAT
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graphprototype
                  'y': '10'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.slow_requests.[{#STORE},lease_acquisitions]'
                    - type: STRING
                      name: reference
                      value: AAAAU
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graphprototype
                  'y': '15'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.slow_requests.[{#STORE},latch_acquisitions]'
                    - type: STRING
                      name: reference
                      value: AAAAV
                    - type: INTEGER
                      name: source_type
                      value: '3'
        - uuid: b1086a92f1b54c45be99efd996b33457
          name: SQL
          pages:
            - name: SQL
              widgets:
                - type: graph
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.sessions
                    - type: STRING
                      name: reference
                      value: AAAAW
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.statements.active
                    - type: STRING
                      name: reference
                      value: AAAAY
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '10'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: SQL statements'
                    - type: STRING
                      name: reference
                      value: AAABA
                - type: graph
                  'y': '15'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.statements.contention.rate
                    - type: STRING
                      name: reference
                      value: AAABC
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '20'
                  width: '72'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: SQL transactions'
                    - type: STRING
                      name: reference
                      value: AAABE
                - type: graph
                  'y': '25'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.memory.sql
                    - type: STRING
                      name: reference
                      value: AAABF
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  'y': '30'
                  width: '72'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.statements.denials.rate
                    - type: STRING
                      name: reference
                      value: AAABH
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  x: '36'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.transactions.open
                    - type: STRING
                      name: reference
                      value: AAAAX
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  x: '36'
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: SQL: Traffic'
                    - type: STRING
                      name: reference
                      value: AAAAZ
                - type: graph
                  x: '36'
                  'y': '10'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.statements.errors.rate
                    - type: STRING
                      name: reference
                      value: AAABB
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  x: '36'
                  'y': '15'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.statements.flows.active.rate
                    - type: STRING
                      name: reference
                      value: AAABD
                    - type: INTEGER
                      name: source_type
                      value: '1'
                - type: graph
                  x: '36'
                  'y': '25'
                  width: '36'
                  height: '5'
                  fields:
                    - type: ITEM
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: cockroachdb.sql.schema_changes.rate
                    - type: STRING
                      name: reference
                      value: AAABG
                    - type: INTEGER
                      name: source_type
                      value: '1'
        - uuid: aa41ca45023c4d0eb126596f89f20f98
          name: Storage
          pages:
            - name: Storage
              widgets:
                - type: graphprototype
                  width: '36'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Storage [{#STORE}]: Capacity'
                    - type: STRING
                      name: reference
                      value: AAABI
                - type: graphprototype
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.rocksdb.[{#STORE},read_amp]'
                    - type: STRING
                      name: reference
                      value: AAABK
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graph
                  'y': '10'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: File descriptors'
                    - type: STRING
                      name: reference
                      value: AAABM
                - type: graphprototype
                  x: '36'
                  width: '36'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Storage [{#STORE}]: Bytes'
                    - type: STRING
                      name: reference
                      value: AAABJ
                - type: graphprototype
                  x: '36'
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: ITEM_PROTOTYPE
                      name: itemid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        key: 'cockroachdb.rocksdb.[{#STORE},sstables]'
                    - type: STRING
                      name: reference
                      value: AAABL
                    - type: INTEGER
                      name: source_type
                      value: '3'
                - type: graph
                  x: '36'
                  'y': '10'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'CockroachDB by HTTP'
                        name: 'CockroachDB: Time series'
                    - type: STRING
                      name: reference
                      value: AAABN
      valuemaps:
        - uuid: 2e7ddaadebce4b1089dcf01a91d01293
          name: 'Node health'
          mappings:
            - value: '200'
              newvalue: Healthy
            - value: '500'
              newvalue: 'Not healthy'
        - uuid: 705e364c9e1b44dbb3fb50a1b27a8cdb
          name: 'Node readiness'
          mappings:
            - value: '200'
              newvalue: Ready
            - value: '503'
              newvalue: 'Not ready'
        - uuid: cc5f50f62d4a4895aa64d167f56cb99c
          name: 'Service state'
          mappings:
            - value: '0'
              newvalue: Down
            - value: '1'
              newvalue: Up
    - uuid: 172ec7e51f1c4a6ba49baffbab3dda97
      template: 'HPE ProLiant BL460 by SNMP'
      name: 'HPE ProLiant BL460 by SNMP'
      description: |
        Template for HPE ProLiant BL460 servers with HP iLO version 4 and later.
        
        MIBs used:
        HOST-RESOURCES-MIB
        CPQHLTH-MIB
        SNMPv2-MIB
        CPQNIC-MIB
        CPQSINFO-MIB
        CPQIDA-MIB
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This is a template for monitoring HPE ProLiant BL460 servers with HP iLO version 4 and later via Zabbix SNMP agent that works without any external scripts.
      vendor:
        name: Zabbix
        version: 8.0-2
      groups:
        - name: 'Templates/Server hardware'
      items:
        - uuid: 0747f8f3cc624f469324c127577aa9f9
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'hp.server.contact[sysContact]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person.  If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: cc714f5445be431192dbeb553f0aa5c5
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'hp.server.descr[sysDescr]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: bf4baaaa76dc4f39bd39c62742f03e26
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]'
          key: 'hp.server.hw.model[cpqSiProductName]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The machine product name. The name of the machine used in this system.
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 6d5e2b9ae30b4c43a91cada24c4cc240
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]'
          key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The serial number of the physical system unit. The string will be empty if the system does not report the serial number function.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 1bc442ba67dc42d298d98feb845d8730
              expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0'
              name: 'HPE ProLiant BL460: Device has been replaced'
              event_name: 'HPE ProLiant BL460: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 22f0b65d03d44ae0be7133eb19ecc920
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'hp.server.hw.uptime[hrSystemUptime]'
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: b85a86fa36bd484cbd36cd25d2a605f9
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'hp.server.location[sysLocation]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The physical location of this node (e.g., `telephone closet, 3rd floor').  If the location is unknown, the value is the zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 3df8b71c3f14432e8cd43fbc24f12447
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: 'hp.server.name[sysName]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name.  If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 87570f607b174ebe887920034a1be1ef
              expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.name[sysName]))>0'
              name: 'HPE ProLiant BL460: System name has changed'
              event_name: 'HPE ProLiant BL460: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 65ec5672f1de4852b1ee52ce57e4f58f
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'hp.server.net.uptime[sysUpTime]'
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 8573488eb0114109bc3c94f2edf00792
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'hp.server.objectid[sysObjectID]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity.  This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 3891df22d63d4be5a62c8a27ac9d8965
          name: 'System temperature status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]'
          key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            This value specifies the overall condition of the system's thermal environment.
            This value will be one of the following:
            other(1)  Temperature could not be determined.
            ok(2)  The temperature sensor is within normal operating range.
            degraded(3)  The temperature sensor is outside of normal operating range.
            failed(4)  The temperature sensor detects a condition that could  permanently damage the system.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: temperature
        - uuid: a8ea3fc6a5914a868be12f21342a9678
          name: 'Overall system health status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]'
          key: 'hp.server.status[cpqHeMibCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            The overall condition. This object represents the overall status of the server information represented by this MIB.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 4d7ac12aec954df2b369ddd0536d3bd5
              expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              name: 'HPE ProLiant BL460: System status is in critical state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: HIGH
              description: 'Please check the device for errors.'
              tags:
                - tag: scope
                  value: available
            - uuid: 9ffbca9c012541b9a36956b4ae06d339
              expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}'
              name: 'HPE ProLiant BL460: System status is in warning state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Please check the device for warnings.'
              dependencies:
                - name: 'HPE ProLiant BL460: System status is in critical state'
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              tags:
                - tag: scope
                  value: available
        - uuid: 37dc9b6453184fe58435d12d422582d9
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: d2e80ecf16bb49af99eb52a45b8c11cf
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          valuemap:
            name: zabbix.host.available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 236a5d37e58a415aa81db6e59eb826dc
              expression: 'max(/HPE ProLiant BL460 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'HPE ProLiant BL460: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              tags:
                - tag: scope
                  value: available
      discovery_rules:
        - uuid: 79cb6edf94f441eea4b429e8474fa0c9
          name: 'Array controller cache discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]'
          key: array.cache.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable'
          item_prototypes:
            - uuid: 0cf60fc04cc243df95145b5e3128b598
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board.
                The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource.
                The following values are valid:
                Other (1)  Indicates that the instrument agent does not recognize  backup power status.  You may need to update your software.
                
                Ok (2)  The backup power source is fully charged.
                
                Recharging (3)  The array controller has one or more cache module backup power  sources that are recharging.
                Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged.
                Cache module operations will automatically resume  when charging is complete.
                
                Failed (4)  The battery pack is below the sufficient voltage level and  has not recharged in 36 hours.
                Your Cache Module board  needs to be serviced.
                
                Degraded (5)  The battery is still operating, however, one of the batteries  in the pack has failed to recharge properly.
                Your Cache  Module board should be serviced as soon as possible.
                
                NotPresent (6)  A backup power source is not present on the cache module board. Some controllers do not have backup power sources.
                
                Capacitor Failed (7)  The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes.  Your Cache Module board needs to be serviced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelBattery'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 42c0ff05c06f47089322dface6c54778
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 28f83720bdd84ab3acb43cc8caac7507
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
                  name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 10e011c0c8cf4571bfdd2ab414c1853b
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module/Operations Status. This describes the status of the cache module and/or cache operations.
                Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option.
                
                The status can be:
                Other (1)
                 Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent.
                
                Invalid (2)
                 Indicates that a cache module board has not been installed in this system or is present but not configured.
                
                Enabled (3)
                 Indicates that cache operations are currently configured and enabled for at least one logical drive.
                
                Temporarily Disabled (4)
                 Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled.
                
                Permanently Disabled (5)
                 Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled.
                
                Cache Module Flash Memory Not Attached (6)
                 Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory.
                
                Cache Module Degraded Failsafe Speed (7)
                 Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate.
                
                Cache Module Critical Failure (8)
                 Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode.
                
                Read Cache Could Not Be Mapped (9)
                 Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: d9fc0ecef7844e7190d89f4747f82661
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 9b60ae9eec734644bcff9cbac9407b08
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 61e28304c16f4855abfbcef8249a2fa6
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
                  name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                    - name: 'HPE ProLiant BL460: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 3e72130010414c7dbc3b7b050df9e577
          name: 'Array controller discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]'
          key: array.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable'
          item_prototypes:
            - uuid: be46bc977cdd4a85a364628a21df099d
              name: '{#CNTLR_LOCATION}: Disk array controller model'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Array Controller Model. The type of controller card.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaCntlrModel'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
            - uuid: d89a3b9bab6c4439a9797ee9208fec26
              name: '{#CNTLR_LOCATION}: Disk array controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                This value represents the overall condition of this controller,
                and any associated logical drives, physical drives, and array accelerators.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: d0e8bcc0510c4e86bfcd3e9d601f83e0
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: a38ea92527b44599b690c068a62481ed
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}'
                  name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: cbcd697782e34a5e87cef72d65229a87
          name: 'FAN discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]'
          key: fan.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition'
          item_prototypes:
            - uuid: 02b11840d01245cfbac4e3a5264c713e
              name: 'Fan {#SNMPINDEX}: Fan status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]'
              key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the fan.
                This value will be one of the following:
                other(1)  Fan status detection is not supported by this system or driver.
                ok(2)  The fan is operating properly.
                degraded(2)  A redundant fan is not operating properly.
                failed(4)  A non-redundant fan is not operating properly.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: fan
              trigger_prototypes:
                - uuid: ab33e6666fd14aac8f703c72fd9b760e
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the fan unit.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: a9098b4dcbe04b3a82f0353f115345d7
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}'
                  name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the fan unit.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: Fan {#SNMPINDEX}: Fan is in critical state'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: dbe83d07252743f2bc889ce320730d78
          name: 'Network interface discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]'
          key: net.if.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable'
          item_prototypes:
            - uuid: 1b446f4de8be4eeab2410756739eae6c
              name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]'
              key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]'
              description: |
                MIB: CPQNIC-MIB
                The physical adapter status. The following values are valid:
                unknown(1)
                  The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded.
                ok(2)
                  The physical adapter is operating properly.
                generalFailure(3)
                  The physical adapter has failed.
                linkFailure(4)
                  The physical adapter has lost link. Check the cable connections to this adapter.
              valuemap:
                name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: network
              trigger_prototypes:
                - uuid: 477f8237ed7c4d99af92e94f7563e01c
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the physical adapter.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 5962382262854335bc42ae47203e44a7
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4'
                  name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the cable connections to this adapter.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 4ec2950e764249dc9c091e92dbba4137
          name: 'Physical disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]'
          key: physicaldisk.discovery
          delay: 1h
          description: 'Scanning  table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.'
          item_prototypes:
            - uuid: 6ebfcb4a2bd44407920c47f060ec6307
              name: '{#DISK_LOCATION}: Physical disk media type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Drive Array Physical Drive Media Type. The following values are defined:
                other(1)  The instrument agent is unable to determine the physical drive's media type.
                rotatingPlatters(2)  The physical drive media is composed of rotating platters.
                solidState(3)  The physical drive media is composed of solid state electronics.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 6c59eaa90b964ad4b9f5a0511d620e9d
              name: '{#DISK_LOCATION}: Physical disk model name'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Model. This is a text description of the physical drive.
                The text that appears depends upon who manufactured the drive and the drive type.
                If a drive fails, note the model to identify the type of drive necessary for replacement.
                If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: f4f6e63dd1714c2ca721baebb478f5ab
              name: '{#DISK_LOCATION}: Physical disk serial number'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Serial Number.
                This is the serial number assigned to the physical drive.
                This value is based upon the serial number as returned by the SCSI inquiry command
                but may have been modified due to space limitations.  This can be used for identification purposes.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: d3dbef930bca4808ae3bf32ba84a987a
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0'
                  name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Disk has been replaced'
                  event_name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Disk has been replaced (new serial number received)'
                  priority: INFO
                  description: 'Disk serial number has changed. Acknowledge to close the problem manually.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
            - uuid: dee3a8bb94184bad80d058cb9ac3d324
              name: '{#DISK_LOCATION}: Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Size in MB.
                This is the size of the physical drive in megabytes.
                This value is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ
                from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives,
                and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated
                or if the controller does not support SCSI drives.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: e08b144330824b9f8a9df61f4e4016b4
              name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive S.M.A.R.T Status. The following values are defined:
                other(1)  The agent is unable to determine if the status of S.M.A.R.T  predictive failure monitoring for this drive.
                ok(2)  Indicates the drive is functioning properly.
                replaceDrive(3)  Indicates that the drive has a S.M.A.R.T predictive failure  error and should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 6fb9a3a867f74290974b106755763369
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
                  name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Disk probably requires replacement.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: d0449cc58efb4258ba71e8d6837cab20
              name: '{#DISK_LOCATION}: Physical disk status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status:
                other (1)  Indicates that the instrument agent does not recognize  the drive.
                You may need to upgrade your instrument agent  and/or driver software.
                ok (2)  Indicates the drive is functioning properly.
                failed (3)  Indicates that the drive is no longer operating and  should be replaced.
                predictiveFailure(4)  Indicates that the drive has a predictive failure error and  should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 21224423e69148a797e5ae4fcdda8ed5
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed'
                  opdata: 'Current status: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check physical disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: ff246b7598f24ab88aa6e7119750e57b
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}'
                  name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check physical disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 5b9a240a6b864513b2b0ac8a4f0a0c07
          name: 'PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]'
          key: psu.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus'
          item_prototypes:
            - uuid: c49420a345664c719d9eb02f0ee866c1
              name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the power supply. This value will be one of the following:
                other(1)  The status could not be determined or not present.
                ok(2)  The power supply is operating normally.
                degraded(3)  A temperature sensor, fan or other power supply component is  outside of normal operating range.
                failed(4)  A power supply component detects a condition that could  permanently damage the system.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
              trigger_prototypes:
                - uuid: c0976740671a4ee1b524b2be84eac05f
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the power supply unit for errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 4245fe8df0ec42fb8698cd54810357d0
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}'
                  name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the power supply unit for errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 641f9eebbb134b34960f92037c694802
          name: 'Temperature ambient discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.ambient.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '11'
              - macro: '{#SNMPINDEX}'
                value: 0\.1
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter
          item_prototypes:
            - uuid: 6d81b9d2bfff4312810a50d340f8ba17
              name: 'Ambient: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 12ca340ef2cc4d639940375e84fc1384
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: Ambient: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 83775e86b0b6450399f0739bcd7aeb42
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: Ambient: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1e61e8b2ba4346f2962a3498a147f65e
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: Ambient: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 1cfee00e1b4d49528589520036b4bf8d
              name: 'Ambient: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Ambient
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: aa4918f21cf14e2c94ac155ac3a0b0b4
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.cpu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '6'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter
          item_prototypes:
            - uuid: 0fa15e127d03487cb4fbfaaaacf4fe96
              name: 'CPU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: b3b17ce8480f4ff5bbc4cba02e53190d
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 1d2cc0b823134b9b901a0292e731f882
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: c9edcad3712d4915a5a3700916621525
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 4f67a2ca1b9d4b179770558df5b8edb7
              name: 'CPU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: CPU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: c3b3cfe6aa4c47d0ab66b9a969df85bd
          name: 'Temperature discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: (4|8|9|12|13)
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable
          item_prototypes:
            - uuid: 4f13e0a5d45e4847931829f9abd30795
              name: '{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 1978105618f44f439f40b7e6b7dbb5dc
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: {#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: feee1c3e792044ecbb07ffed47b2fddd
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 250291ba7b404dd287b14034145d7ee0
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: {#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: c21a7b49d03f4b2e9c532777d4931236
              name: '{#SNMPINDEX}: Temperature sensor location'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                This specifies the location of the temperature sensor present in the system.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
            - uuid: 8ac8567f26884cab9d175d9f9934d575
              name: '{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: {#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: be33f30661ba4c3e88ace96906b0a74c
          name: 'Temperature I/O discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.io.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '5'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter
          item_prototypes:
            - uuid: 0addee41af6e489fbf2a9747d9cab50e
              name: 'I/O-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 2d06da621e5946ea88bf158cabd4fcbd
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1'
                  name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 5ca16e1ea7d84aa7bed31ba05f7df50e
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4'
                  name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 8a2468bf1cd14065af733b0d045c6031
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3'
                  name: 'HPE ProLiant BL460: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 2fa250ea6f1e472d9e90984d0918c50d
              name: 'I/O-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: I/O-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: d4dc4e4e6fab415baae36e98877205c5
          name: 'Temperature memory discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.memory.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '7'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter
          item_prototypes:
            - uuid: 8468b9ca183e44569f6d467f7d103b11
              name: 'Memory-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 997f65c5ee1d473dbe22a8517091cf3e
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 8c3b5591160e4797ae1b49f9f14439ff
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 8665b434ba594073bc55f44b668dcee0
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 7441c5de35fd4ff2b6a20c1896525bd4
              name: 'Memory-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Memory-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 6df0ad42b4c74a19b9bdfc240db626bb
          name: 'Temperature PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.psu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '10'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter
          item_prototypes:
            - uuid: 222d768e05d442ecb12a4cc83100438d
              name: 'PSU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: a292c5aaa1b3428aa4b011854d9c5e1d
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: f557d93b186b42b4931e23640e54648f
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: e3cac6176199401181fbbeacf4838bad
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: ca1e5c260caa48368fa299a9dc007512
              name: 'PSU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: PSU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: dfa25ab78aab4cf081e3857f2a40dee4
          name: 'Temperature system discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.system.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '3'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter
          item_prototypes:
            - uuid: 10f22e6ea868460c98cc97f24a6c83e4
              name: 'System-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 1bad1b13dcdf4689b9a784e44726196b
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 42fff974036d4fb6b9181adf1b3efa09
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: d184f774ab614a0b9f1f7ebc82cd1356
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL460: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: e25f6cbbb1d444ff851895b37dfcde5d
              name: 'System-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: System-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 92ab660734234833adfe7108df529c24
          name: 'Virtual disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]'
          key: virtualdisk.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqDaLogDrvTable'
          item_prototypes:
            - uuid: a468686d8de44b958b26a69b4c8d11ed
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]'
              description: |
                Logical Drive Fault Tolerance.
                This shows the fault tolerance mode of the logical drive.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 1e890df502e04b5ba34b3ddc8d9aea57
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                Logical Drive Size.
                This is the size of the logical drive in megabytes.  This value
                is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a
                megabyte when giving drive capacities so this value may
                differ from the advertised size of a drive.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 3702a04cf01a4390805535af4f0b8172
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]'
              description: 'Logical Drive Status.'
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
              trigger_prototypes:
                - uuid: e11c5781a34642c49ad15cdcd71dacc3
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check virtual disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 10f0bdba64184a9389a46b9bab18719a
                  expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}'
                  name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check virtual disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL460: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                      expression: 'last(/HPE ProLiant BL460 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
      tags:
        - tag: class
          value: hardware
        - tag: subclass
          value: server
        - tag: target
          value: hp
        - tag: target
          value: hp-bl460
      macros:
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
          value: '7'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Disk array cash battery critical status (capacitorFailed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}'
          value: '4'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '15'
            section_name: Other
            label: 'Disk array cash battery critical status (failed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
          value: '5'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '17'
            section_name: Other
            label: 'Disk array cash battery warning status (degraded)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}'
          value: '6'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '18'
            section_name: Other
            label: 'Disk array cash battery warning status (notPresent)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
          value: '8'
          description: 'The critical status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '9'
            section_name: Other
            label: 'Disk array cash critical status'
            description: 'The critical status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}'
          value: '3'
          description: 'The normal status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Other
            label: 'Disk array cash OK status'
            description: 'The normal status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}'
          value: '7'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '11'
            section_name: Other
            label: 'Disk array cash warning status (degraded)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
          value: '6'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Other
            label: 'Disk array cash warning status (not attached)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}'
          value: '9'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Other
            label: 'Disk array cash warning status (not mapped)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
          value: '2'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Other
            label: 'Disk array cash warning status (invalid)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '7'
            section_name: Other
            label: 'Disk array critical status'
            description: 'The critical status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '8'
            section_name: Other
            label: 'Disk array warning status'
            description: 'The warning status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}'
          value: '3'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '23'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDrive)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
          value: '4'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '24'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDriveSSDWearOut)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.FAIL}'
          value: '3'
          description: 'The critical status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '22'
            section_name: Other
            label: 'Disk critical status'
            description: 'The critical status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.WARN}'
          value: '4'
          description: 'The warning status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '21'
            section_name: Other
            label: 'Disk warning status'
            description: 'The warning status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '5'
            section_name: Other
            label: 'Fan critical status'
            description: 'The critical value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '6'
            section_name: Other
            label: 'Fan warning status'
            description: 'The warning value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '1'
            section_name: Other
            label: 'Health critical status'
            description: 'The critical status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '2'
            section_name: Other
            label: 'Health warning status'
            description: 'The warning status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '3'
            section_name: Other
            label: 'PSU critical status'
            description: 'The critical value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '4'
            section_name: Other
            label: 'PSU warning status'
            description: 'The warning value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'The time interval for SNMP agent availability trigger expression.'
          config:
            type: TEXT
            priority: '25'
            section_name: Other
            label: 'Time interval'
            description: 'The time interval for SNMP agent availability trigger expression.'
        - macro: '{$VDISK.STATUS.CRIT}'
          value: '3'
          description: 'The critical status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '19'
            section_name: Other
            label: 'Virtual disk critical status'
            description: 'The critical status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VDISK.STATUS.OK}'
          value: '2'
          description: 'The normal status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '20'
            section_name: Other
            label: 'Virtual disk OK status'
            description: 'The normal status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      valuemaps:
        - uuid: 1b67de295fef454cb89744b101cf5a19
          name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: 07d063dcbb3d4f1a8642bfd93afcd327
          name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: unknown
            - value: '3'
              newvalue: system
            - value: '4'
              newvalue: systemBoard
            - value: '5'
              newvalue: ioBoard
            - value: '6'
              newvalue: cpu
            - value: '7'
              newvalue: memory
            - value: '8'
              newvalue: storage
            - value: '9'
              newvalue: removableMedia
            - value: '10'
              newvalue: powerSupply
            - value: '11'
              newvalue: ambient
            - value: '12'
              newvalue: chassis
            - value: '13'
              newvalue: bridgeCard
        - uuid: 009fd99d3734459285fa037c4a0ca201
          name: 'CPQIDA-MIB::cpqDaAccelBattery'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: Ok
            - value: '3'
              newvalue: Recharging
            - value: '4'
              newvalue: Failed
            - value: '5'
              newvalue: Degraded
            - value: '6'
              newvalue: 'Not Present'
            - value: '7'
              newvalue: 'Capacitor failed'
        - uuid: e138320082fc4aa69f3b23dad80272b2
          name: 'CPQIDA-MIB::cpqDaAccelStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: invalid
            - value: '3'
              newvalue: enabled
            - value: '4'
              newvalue: tmpDisabled
            - value: '5'
              newvalue: permDisabled
            - value: '6'
              newvalue: cacheModFlashMemNotAttached
            - value: '7'
              newvalue: cacheModDegradedFailsafeSpeed
            - value: '8'
              newvalue: cacheModCriticalFailure
            - value: '9'
              newvalue: cacheReadCacheNotMapped
        - uuid: 4891472973f84343ade2c5b61d96fcef
          name: 'CPQIDA-MIB::cpqDaCntlrModel'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ida
            - value: '3'
              newvalue: idaExpansion
            - value: '4'
              newvalue: ida-2
            - value: '5'
              newvalue: smart
            - value: '6'
              newvalue: smart-2e
            - value: '7'
              newvalue: smart-2p
            - value: '8'
              newvalue: smart-2sl
            - value: '9'
              newvalue: smart-3100es
            - value: '10'
              newvalue: smart-3200
            - value: '11'
              newvalue: smart-2dh
            - value: '12'
              newvalue: smart-221
            - value: '13'
              newvalue: sa-4250es
            - value: '14'
              newvalue: sa-4200
            - value: '15'
              newvalue: sa-integrated
            - value: '16'
              newvalue: sa-431
            - value: '17'
              newvalue: sa-5300
            - value: '18'
              newvalue: raidLc2
            - value: '19'
              newvalue: sa-5i
            - value: '20'
              newvalue: sa-532
            - value: '21'
              newvalue: sa-5312
            - value: '22'
              newvalue: sa-641
            - value: '23'
              newvalue: sa-642
            - value: '24'
              newvalue: sa-6400
            - value: '25'
              newvalue: sa-6400em
            - value: '26'
              newvalue: sa-6i
            - value: '27'
              newvalue: sa-generic
            - value: '29'
              newvalue: sa-p600
            - value: '30'
              newvalue: sa-p400
            - value: '31'
              newvalue: sa-e200
            - value: '32'
              newvalue: sa-e200i
            - value: '33'
              newvalue: sa-p400i
            - value: '34'
              newvalue: sa-p800
            - value: '35'
              newvalue: sa-e500
            - value: '36'
              newvalue: sa-p700m
            - value: '37'
              newvalue: sa-p212
            - value: '38'
              newvalue: sa-p410
            - value: '39'
              newvalue: sa-p410i
            - value: '40'
              newvalue: sa-p411
            - value: '41'
              newvalue: sa-b110i
            - value: '42'
              newvalue: sa-p712m
            - value: '43'
              newvalue: sa-p711m
            - value: '44'
              newvalue: sa-p812
            - value: '45'
              newvalue: sw-1210m
            - value: '46'
              newvalue: sa-p220i
            - value: '47'
              newvalue: sa-p222
            - value: '48'
              newvalue: sa-p420
            - value: '49'
              newvalue: sa-p420i
            - value: '50'
              newvalue: sa-p421
            - value: '51'
              newvalue: sa-b320i
            - value: '52'
              newvalue: sa-p822
            - value: '53'
              newvalue: sa-p721m
            - value: '54'
              newvalue: sa-b120i
            - value: '55'
              newvalue: hps-1224
            - value: '56'
              newvalue: hps-1228
            - value: '57'
              newvalue: hps-1228m
            - value: '58'
              newvalue: sa-p822se
            - value: '59'
              newvalue: hps-1224e
            - value: '60'
              newvalue: hps-1228e
            - value: '61'
              newvalue: hps-1228em
            - value: '62'
              newvalue: sa-p230i
            - value: '63'
              newvalue: sa-p430i
            - value: '64'
              newvalue: sa-p430
            - value: '65'
              newvalue: sa-p431
            - value: '66'
              newvalue: sa-p731m
            - value: '67'
              newvalue: sa-p830i
            - value: '68'
              newvalue: sa-p830
            - value: '69'
              newvalue: sa-p831
            - value: '70'
              newvalue: sa-p530
            - value: '71'
              newvalue: sa-p531
            - value: '72'
              newvalue: sa-p244br
            - value: '73'
              newvalue: sa-p246br
            - value: '74'
              newvalue: sa-p440
            - value: '75'
              newvalue: sa-p440ar
            - value: '76'
              newvalue: sa-p441
            - value: '77'
              newvalue: sa-p741m
            - value: '78'
              newvalue: sa-p840
            - value: '79'
              newvalue: sa-p841
            - value: '80'
              newvalue: sh-h240ar
            - value: '81'
              newvalue: sh-h244br
            - value: '82'
              newvalue: sh-h240
            - value: '83'
              newvalue: sh-h241
            - value: '84'
              newvalue: sa-b140i
            - value: '85'
              newvalue: sh-generic
            - value: '86'
              newvalue: sa-p240nr
            - value: '87'
              newvalue: sh-h240nr
            - value: '88'
              newvalue: sa-p840ar
            - value: '89'
              newvalue: sa-p542d
            - value: '90'
              newvalue: s100i
            - value: '91'
              newvalue: e208i-p
            - value: '92'
              newvalue: e208i-a
            - value: '93'
              newvalue: e208i-c
            - value: '94'
              newvalue: e208e-p
            - value: '95'
              newvalue: p204i-b
            - value: '96'
              newvalue: p204i-c
            - value: '97'
              newvalue: p408i-p
            - value: '98'
              newvalue: p408i-a
            - value: '99'
              newvalue: p408e-p
            - value: '100'
              newvalue: p408i-c
            - value: '101'
              newvalue: p408e-m
            - value: '102'
              newvalue: p416ie-m
            - value: '103'
              newvalue: p816i-a
            - value: '104'
              newvalue: p408i-sb
        - uuid: a368b7472246477599d6278df8348bc9
          name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
          mappings:
            - value: '0'
              newvalue: other
            - value: '2'
              newvalue: none
            - value: '3'
              newvalue: RAID-1/RAID-10
            - value: '4'
              newvalue: RAID-4
            - value: '5'
              newvalue: RAID-5
            - value: '7'
              newvalue: RAID-6
            - value: '8'
              newvalue: RAID-50
            - value: '9'
              newvalue: RAID-60
            - value: '10'
              newvalue: 'RAID-1 ADM'
            - value: '11'
              newvalue: 'RAID-10 ADM'
        - uuid: aab16842347c4e58b9bbee274dad3c62
          name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: unconfigured
            - value: '5'
              newvalue: recovering
            - value: '6'
              newvalue: readyForRebuild
            - value: '7'
              newvalue: rebuilding
            - value: '8'
              newvalue: wrongDrive
            - value: '9'
              newvalue: badConnect
            - value: '10'
              newvalue: overheating
            - value: '11'
              newvalue: shutdown
            - value: '12'
              newvalue: expanding
            - value: '13'
              newvalue: notAvailable
            - value: '14'
              newvalue: queuedForExpansion
            - value: '15'
              newvalue: multipathAccessDegraded
            - value: '16'
              newvalue: erasing
            - value: '17'
              newvalue: predictiveSpareRebuildReady
            - value: '18'
              newvalue: rapidParityInitInProgress
            - value: '19'
              newvalue: rapidParityInitPending
            - value: '20'
              newvalue: noAccessEncryptedNoCntlrKey
            - value: '21'
              newvalue: unencryptedToEncryptedInProgress
            - value: '22'
              newvalue: newLogDrvKeyRekeyInProgress
            - value: '23'
              newvalue: noAccessEncryptedCntlrEncryptnNotEnbld
            - value: '24'
              newvalue: unencryptedToEncryptedNotStarted
            - value: '25'
              newvalue: newLogDrvKeyRekeyRequestReceived
        - uuid: b3b110016c8c4272b9228161798a9bbd
          name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: rotatingPlatters
            - value: '3'
              newvalue: solidState
        - uuid: 5b016d244c6845f7afcc80361aec2af1
          name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: replaceDrive
            - value: '4'
              newvalue: replaceDriveSSDWearOut
        - uuid: 2f4e1eb1f32847b3808372d02f752575
          name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: predictiveFailure
        - uuid: 3fe7ff0237a54f6cae3a1b8ffdabf157
          name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
          mappings:
            - value: '1'
              newvalue: unknown
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: generalFailure
            - value: '4'
              newvalue: linkFailure
        - uuid: 342d09a1cfe543b9ac1555daee9f2235
          name: 'CPQSINFO-MIB::status'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: c57a256a525b46b0a1d0646200de57e2
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 586119e5e27e4062a3cce8601ecb8d71
      template: 'HPE ProLiant BL920 by SNMP'
      name: 'HPE ProLiant BL920 by SNMP'
      description: |
        Template for HPE ProLiant BL920 servers with HP iLO version 4 and later.
        
        MIBs used:
        HOST-RESOURCES-MIB
        CPQHLTH-MIB
        SNMPv2-MIB
        CPQNIC-MIB
        CPQSINFO-MIB
        CPQIDA-MIB
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This is a template for monitoring HPE ProLiant BL920 servers with HP iLO version 4 and later via Zabbix SNMP agent that works without any external scripts.
      vendor:
        name: Zabbix
        version: 8.0-2
      groups:
        - name: 'Templates/Server hardware'
      items:
        - uuid: 1831d0a9399d4e41a0fd1dc392241640
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'hp.server.contact[sysContact]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person.  If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 342a1fb4781d4f4fbafa7728f0c54d44
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'hp.server.descr[sysDescr]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 1b4a890c4d244ce7920193f2fcd34cd0
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]'
          key: 'hp.server.hw.model[cpqSiProductName]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The machine product name. The name of the machine used in this system.
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: e0da21845f8b49fd8c4471db20cf7a31
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]'
          key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The serial number of the physical system unit. The string will be empty if the system does not report the serial number function.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 9eb77df5f95149e49d63a7191e68756c
              expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0'
              name: 'HPE ProLiant BL920: Device has been replaced'
              event_name: 'HPE ProLiant BL920: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 5cd1e01b10f3482e9ec5907bd2e55c26
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'hp.server.hw.uptime[hrSystemUptime]'
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: fa3cec21b4a64ba9990bb2adaaba8a00
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'hp.server.location[sysLocation]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The physical location of this node (e.g., `telephone closet, 3rd floor').  If the location is unknown, the value is the zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 01bf2613057541b082320fa81b07636f
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: 'hp.server.name[sysName]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name.  If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: c0eed9d2eccc4ae99128a318de92df8d
              expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.name[sysName]))>0'
              name: 'HPE ProLiant BL920: System name has changed'
              event_name: 'HPE ProLiant BL920: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 244691064ba54bf186a44219077fc804
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'hp.server.net.uptime[sysUpTime]'
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: abb51a946f5d4ee09895bef2e1df0fa6
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'hp.server.objectid[sysObjectID]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity.  This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 2a1af5ba5ee643c7b63e5eae10703e9c
          name: 'System temperature status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]'
          key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            This value specifies the overall condition of the system's thermal environment.
            This value will be one of the following:
            other(1)  Temperature could not be determined.
            ok(2)  The temperature sensor is within normal operating range.
            degraded(3)  The temperature sensor is outside of normal operating range.
            failed(4)  The temperature sensor detects a condition that could  permanently damage the system.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: temperature
        - uuid: 4b05f7e3700440ee81cb38851c561a09
          name: 'Overall system health status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]'
          key: 'hp.server.status[cpqHeMibCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            The overall condition. This object represents the overall status of the server information represented by this MIB.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 187f7a3872a2481f962f16c422911827
              expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              name: 'HPE ProLiant BL920: System status is in critical state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: HIGH
              description: 'Please check the device for errors.'
              tags:
                - tag: scope
                  value: available
            - uuid: 51c633cbed0d4684b2e0619e2f0ab64d
              expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}'
              name: 'HPE ProLiant BL920: System status is in warning state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Please check the device for warnings.'
              dependencies:
                - name: 'HPE ProLiant BL920: System status is in critical state'
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              tags:
                - tag: scope
                  value: available
        - uuid: 356100e223784f398701839a2e74b6ff
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: 1924b196b0af4b0ba91519187bf22c78
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          valuemap:
            name: zabbix.host.available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 35cce5a461c04163a0575d7f831ea3d9
              expression: 'max(/HPE ProLiant BL920 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'HPE ProLiant BL920: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              tags:
                - tag: scope
                  value: available
      discovery_rules:
        - uuid: 89fa0f7fbaf0442dae2994c94cc9ec01
          name: 'Array controller cache discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]'
          key: array.cache.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable'
          item_prototypes:
            - uuid: 8217a74bab1c4d31bc504d772ec3d98e
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board.
                The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource.
                The following values are valid:
                Other (1)  Indicates that the instrument agent does not recognize  backup power status.  You may need to update your software.
                
                Ok (2)  The backup power source is fully charged.
                
                Recharging (3)  The array controller has one or more cache module backup power  sources that are recharging.
                Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged.
                Cache module operations will automatically resume  when charging is complete.
                
                Failed (4)  The battery pack is below the sufficient voltage level and  has not recharged in 36 hours.
                Your Cache Module board  needs to be serviced.
                
                Degraded (5)  The battery is still operating, however, one of the batteries  in the pack has failed to recharge properly.
                Your Cache  Module board should be serviced as soon as possible.
                
                NotPresent (6)  A backup power source is not present on the cache module board. Some controllers do not have backup power sources.
                
                Capacitor Failed (7)  The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes.  Your Cache Module board needs to be serviced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelBattery'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 507e925180034f2d97d09f9fd5c9e311
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 20625bb4b0b74d98818685991ac5df66
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
                  name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: f96da82cf6da49a7a7d0d5240096f4f4
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module/Operations Status. This describes the status of the cache module and/or cache operations.
                Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option.
                
                The status can be:
                Other (1)
                 Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent.
                
                Invalid (2)
                 Indicates that a cache module board has not been installed in this system or is present but not configured.
                
                Enabled (3)
                 Indicates that cache operations are currently configured and enabled for at least one logical drive.
                
                Temporarily Disabled (4)
                 Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled.
                
                Permanently Disabled (5)
                 Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled.
                
                Cache Module Flash Memory Not Attached (6)
                 Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory.
                
                Cache Module Degraded Failsafe Speed (7)
                 Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate.
                
                Cache Module Critical Failure (8)
                 Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode.
                
                Read Cache Could Not Be Mapped (9)
                 Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: a470d994b661401882162dc2267eaa3d
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 5d0fd4a9b8bc49aaaeb213b310b85606
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1efe26e2e6a8404b86143b3fea812f23
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
                  name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                    - name: 'HPE ProLiant BL920: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: b0ef0784a3e6410c965d421e21cb8570
          name: 'Array controller discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]'
          key: array.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable'
          item_prototypes:
            - uuid: 4da3c6124f044cb18ee51874f385309f
              name: '{#CNTLR_LOCATION}: Disk array controller model'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Array Controller Model. The type of controller card.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaCntlrModel'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
            - uuid: acf2b673f18f40e292301402994c1f99
              name: '{#CNTLR_LOCATION}: Disk array controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                This value represents the overall condition of this controller,
                and any associated logical drives, physical drives, and array accelerators.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: a8c87ea0b6ba42e7ba6f97a2441237bb
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1cb40d36fda945df940c39f0ea1adf22
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}'
                  name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: af4174c63f3d4bf2b0ca523c195b56d8
          name: 'FAN discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]'
          key: fan.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition'
          item_prototypes:
            - uuid: c92f5ccc44b3466ea824cef2371e5226
              name: 'Fan {#SNMPINDEX}: Fan status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]'
              key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the fan.
                This value will be one of the following:
                other(1)  Fan status detection is not supported by this system or driver.
                ok(2)  The fan is operating properly.
                degraded(2)  A redundant fan is not operating properly.
                failed(4)  A non-redundant fan is not operating properly.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: fan
              trigger_prototypes:
                - uuid: c2a1f0726e6e46658bf236c7daea432c
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the fan unit.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: f8e66a8a7df84962be215388d6fd567b
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}'
                  name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the fan unit.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: Fan {#SNMPINDEX}: Fan is in critical state'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 32f1d3333d314ac28bd85b6d5d2a97d0
          name: 'Network interface discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]'
          key: net.if.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable'
          item_prototypes:
            - uuid: 30d1913dc3484b8596a0a600e68f2e6f
              name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]'
              key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]'
              description: |
                MIB: CPQNIC-MIB
                The physical adapter status. The following values are valid:
                unknown(1)
                  The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded.
                ok(2)
                  The physical adapter is operating properly.
                generalFailure(3)
                  The physical adapter has failed.
                linkFailure(4)
                  The physical adapter has lost link. Check the cable connections to this adapter.
              valuemap:
                name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: network
              trigger_prototypes:
                - uuid: 880d8c11080043f4a1b8e31823bee081
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the physical adapter.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 7894c073515c42abac3a3704acaf124c
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4'
                  name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the cable connections to this adapter.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 174f8fc9db6e4484a3f2c5f27def0b13
          name: 'Physical disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]'
          key: physicaldisk.discovery
          delay: 1h
          description: 'Scanning  table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.'
          item_prototypes:
            - uuid: 1e7dcaf5ef404bcbadaa2042895fc23c
              name: '{#DISK_LOCATION}: Physical disk media type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Drive Array Physical Drive Media Type. The following values are defined:
                other(1)  The instrument agent is unable to determine the physical drive's media type.
                rotatingPlatters(2)  The physical drive media is composed of rotating platters.
                solidState(3)  The physical drive media is composed of solid state electronics.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 8a1551e94dca47d5b90b31d474e01d0f
              name: '{#DISK_LOCATION}: Physical disk model name'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Model. This is a text description of the physical drive.
                The text that appears depends upon who manufactured the drive and the drive type.
                If a drive fails, note the model to identify the type of drive necessary for replacement.
                If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 4c1f6a97a6314ca4ab1bb6b7210b963c
              name: '{#DISK_LOCATION}: Physical disk serial number'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Serial Number.
                This is the serial number assigned to the physical drive.
                This value is based upon the serial number as returned by the SCSI inquiry command
                but may have been modified due to space limitations.  This can be used for identification purposes.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 97b42a2ce49f4a1786cfa8db1f6477ac
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0'
                  name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Disk has been replaced'
                  event_name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Disk has been replaced (new serial number received)'
                  priority: INFO
                  description: 'Disk serial number has changed. Acknowledge to close the problem manually.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
            - uuid: e54d9d7984974d28aa7a0ba52aec9362
              name: '{#DISK_LOCATION}: Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Size in MB.
                This is the size of the physical drive in megabytes.
                This value is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ
                from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives,
                and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated
                or if the controller does not support SCSI drives.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 293938d45e7a4022ac8ae31aaa4ec462
              name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive S.M.A.R.T Status. The following values are defined:
                other(1)  The agent is unable to determine if the status of S.M.A.R.T  predictive failure monitoring for this drive.
                ok(2)  Indicates the drive is functioning properly.
                replaceDrive(3)  Indicates that the drive has a S.M.A.R.T predictive failure  error and should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: fdd888b4e72344eda1845fdfe7d261e4
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
                  name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Disk probably requires replacement.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 0b566ca9b2df4a20a053b49a26f7be9a
              name: '{#DISK_LOCATION}: Physical disk status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status:
                other (1)  Indicates that the instrument agent does not recognize  the drive.
                You may need to upgrade your instrument agent  and/or driver software.
                ok (2)  Indicates the drive is functioning properly.
                failed (3)  Indicates that the drive is no longer operating and  should be replaced.
                predictiveFailure(4)  Indicates that the drive has a predictive failure error and  should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 1e8640dc080c4d19a94c6fcda2451cfb
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed'
                  opdata: 'Current status: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check physical disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 74eef1a7f26145d7963d8801c8a625e7
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}'
                  name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check physical disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 569998dd6c56424494154225b295a069
          name: 'PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]'
          key: psu.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus'
          item_prototypes:
            - uuid: ff3fc376d95c49e1aba66f253d1a12be
              name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the power supply. This value will be one of the following:
                other(1)  The status could not be determined or not present.
                ok(2)  The power supply is operating normally.
                degraded(3)  A temperature sensor, fan or other power supply component is  outside of normal operating range.
                failed(4)  A power supply component detects a condition that could  permanently damage the system.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
              trigger_prototypes:
                - uuid: a256fdd66c0043dfb337163bcf0c5ebe
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the power supply unit for errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 18e8aca665b34fb5a2af5d94cdd40f84
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}'
                  name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the power supply unit for errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 5442309de7164104b132c29ab74eeb96
          name: 'Temperature ambient discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.ambient.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '11'
              - macro: '{#SNMPINDEX}'
                value: 0\.1
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter
          item_prototypes:
            - uuid: 30ed5199c6d24757962c807d8c28cfa5
              name: 'Ambient: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 74b07fcf8ef34e20a142ae11f6dbfeb4
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: Ambient: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 0df275f3b0dd4c6d93936b39a88052fa
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: Ambient: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1052d51569c543619e38b48318baaa29
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: Ambient: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 5d5b689724804879b40cc60dc31502b0
              name: 'Ambient: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Ambient
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 2478800b0f934fe99ae1f8a3306dec75
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.cpu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '6'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter
          item_prototypes:
            - uuid: 1c8d32dcd5a34b51bf56adb150f84619
              name: 'CPU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 602bbb3e632540d4a46830c2c67d3b1c
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 25ea3db9def64b21b08f25f019c15fbd
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: f5ecaae4989f4e249138916b3657210d
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 9c764d85eefb4693a8eb0e0a7ee14b44
              name: 'CPU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: CPU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 3112cda4ca9c4e1cb51f9b02d0c08bf8
          name: 'Temperature discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: (4|8|9|12|13)
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable
          item_prototypes:
            - uuid: 9496137d5d614b63a5eee07316c653b2
              name: '{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 6ea76d08b1e64364b15a9daa95c72d7c
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: {#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 6287b204066e47d68871bc0783840b4c
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 8010259635ef4d92af61e935c9f62ff7
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: {#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: f9e29891384a4691b3350478720a6035
              name: '{#SNMPINDEX}: Temperature sensor location'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                This specifies the location of the temperature sensor present in the system.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
            - uuid: 0958391cde3a43c9a9ad581f61b1dba4
              name: '{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: {#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: d4a7f83a79c54b43b0e862d253893d14
          name: 'Temperature I/O discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.io.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '5'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter
          item_prototypes:
            - uuid: 5d432d216c664b35b1ac61ce4161d786
              name: 'I/O-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 5f7818d02b764218a481e59cbcfe5fd7
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1'
                  name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: fffdfe1c6d254f3fb096ab0561705223
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4'
                  name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: a00a767a3b8349c2846139a6c76f826d
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3'
                  name: 'HPE ProLiant BL920: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: fb07d42fb35f474687e3c294f1766acf
              name: 'I/O-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: I/O-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 3753e9accb0147a5a5a0c85b381c156a
          name: 'Temperature memory discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.memory.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '7'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter
          item_prototypes:
            - uuid: 01300fcd5a3743a89abebc8995f02b08
              name: 'Memory-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 78d936059d744eae8be8150dab2a6e5e
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: a6db4978fa834a7facd46a76f45f92a3
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: ee7cbf1997ca476283e3301856d22a5a
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 74f92cc323d74e90b03779f216b69d33
              name: 'Memory-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Memory-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 4badf00f164b4490820c1ad090000cf2
          name: 'Temperature PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.psu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '10'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter
          item_prototypes:
            - uuid: 8ece285778c0465ab222ea6e9a88c694
              name: 'PSU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 809aea1302064232a321c12f2256414f
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: b70bb5f4fe4b4d3bb6fa7027200f2b25
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: a4e3939f59a64dbfab377f68a62fa26b
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 00be792e728e48128eedcb3e1aa1a239
              name: 'PSU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: PSU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: aa477ce470d842e28481360fd01984f8
          name: 'Temperature system discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.system.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '3'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter
          item_prototypes:
            - uuid: f62552cf4ca64a6e801b127e956205fe
              name: 'System-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 6848521afcb54d72b136ee53176bc01d
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 6b15c19600f9433093aa8d7d624fb623
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 407c07a6d4f94ca1a8cf1f9db9d685db
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant BL920: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 468c378de2674fa2b68286f57d5795f2
              name: 'System-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: System-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: d9385990317b4bf6a973fd463697f172
          name: 'Virtual disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]'
          key: virtualdisk.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqDaLogDrvTable'
          item_prototypes:
            - uuid: 0f455a7e24494f2cba362479f4b27959
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]'
              description: |
                Logical Drive Fault Tolerance.
                This shows the fault tolerance mode of the logical drive.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 1c2377f711424a5e9cfb038e136192c9
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                Logical Drive Size.
                This is the size of the logical drive in megabytes.  This value
                is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a
                megabyte when giving drive capacities so this value may
                differ from the advertised size of a drive.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: dd28f993fc6c42a6b600246b9714a179
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]'
              description: 'Logical Drive Status.'
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
              trigger_prototypes:
                - uuid: 7dadede9eb5640c5920b95dafc7191bb
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check virtual disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: ffdd42c48a7b493a941887b46be64fb0
                  expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}'
                  name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check virtual disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant BL920: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                      expression: 'last(/HPE ProLiant BL920 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
      tags:
        - tag: class
          value: hardware
        - tag: subclass
          value: server
        - tag: target
          value: hp
        - tag: target
          value: hp-bl920
      macros:
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
          value: '7'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Disk array cash battery critical status (capacitorFailed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}'
          value: '4'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '15'
            section_name: Other
            label: 'Disk array cash battery critical status (failed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
          value: '5'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '17'
            section_name: Other
            label: 'Disk array cash battery warning status (degraded)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}'
          value: '6'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '18'
            section_name: Other
            label: 'Disk array cash battery warning status (notPresent)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
          value: '8'
          description: 'The critical status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '9'
            section_name: Other
            label: 'Disk array cash critical status'
            description: 'The critical status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}'
          value: '3'
          description: 'The normal status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Other
            label: 'Disk array cash OK status'
            description: 'The normal status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}'
          value: '7'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '11'
            section_name: Other
            label: 'Disk array cash warning status (degraded)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
          value: '6'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Other
            label: 'Disk array cash warning status (not attached)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}'
          value: '9'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Other
            label: 'Disk array cash warning status (not mapped)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
          value: '2'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Other
            label: 'Disk array cash warning status (invalid)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '7'
            section_name: Other
            label: 'Disk array critical status'
            description: 'The critical status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '8'
            section_name: Other
            label: 'Disk array warning status'
            description: 'The warning status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}'
          value: '3'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '23'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDrive)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
          value: '4'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '24'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDriveSSDWearOut)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.FAIL}'
          value: '3'
          description: 'The critical status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '22'
            section_name: Other
            label: 'Disk critical status'
            description: 'The critical status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.WARN}'
          value: '4'
          description: 'The warning status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '21'
            section_name: Other
            label: 'Disk warning status'
            description: 'The warning status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '5'
            section_name: Other
            label: 'Fan critical status'
            description: 'The critical value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '6'
            section_name: Other
            label: 'Fan warning status'
            description: 'The warning value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '1'
            section_name: Other
            label: 'Health critical status'
            description: 'The critical status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '2'
            section_name: Other
            label: 'Health warning status'
            description: 'The warning status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '3'
            section_name: Other
            label: 'PSU critical status'
            description: 'The critical value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '4'
            section_name: Other
            label: 'PSU warning status'
            description: 'The warning value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'The time interval for SNMP agent availability trigger expression.'
          config:
            type: TEXT
            priority: '25'
            section_name: Other
            label: 'Time interval'
            description: 'The time interval for SNMP agent availability trigger expression.'
        - macro: '{$VDISK.STATUS.CRIT}'
          value: '3'
          description: 'The critical status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '19'
            section_name: Other
            label: 'Virtual disk critical status'
            description: 'The critical status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VDISK.STATUS.OK}'
          value: '2'
          description: 'The normal status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '20'
            section_name: Other
            label: 'Virtual disk OK status'
            description: 'The normal status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      valuemaps:
        - uuid: 1f0d43fc8b334b6da324b6ce4f838f81
          name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: 96287ed099c14e09b2e1708487f64d8d
          name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: unknown
            - value: '3'
              newvalue: system
            - value: '4'
              newvalue: systemBoard
            - value: '5'
              newvalue: ioBoard
            - value: '6'
              newvalue: cpu
            - value: '7'
              newvalue: memory
            - value: '8'
              newvalue: storage
            - value: '9'
              newvalue: removableMedia
            - value: '10'
              newvalue: powerSupply
            - value: '11'
              newvalue: ambient
            - value: '12'
              newvalue: chassis
            - value: '13'
              newvalue: bridgeCard
        - uuid: 684758347f0740e08af4986ed148e81f
          name: 'CPQIDA-MIB::cpqDaAccelBattery'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: Ok
            - value: '3'
              newvalue: Recharging
            - value: '4'
              newvalue: Failed
            - value: '5'
              newvalue: Degraded
            - value: '6'
              newvalue: 'Not Present'
            - value: '7'
              newvalue: 'Capacitor failed'
        - uuid: ff25d5d2484f40ea99b212e19c48e375
          name: 'CPQIDA-MIB::cpqDaAccelStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: invalid
            - value: '3'
              newvalue: enabled
            - value: '4'
              newvalue: tmpDisabled
            - value: '5'
              newvalue: permDisabled
            - value: '6'
              newvalue: cacheModFlashMemNotAttached
            - value: '7'
              newvalue: cacheModDegradedFailsafeSpeed
            - value: '8'
              newvalue: cacheModCriticalFailure
            - value: '9'
              newvalue: cacheReadCacheNotMapped
        - uuid: 4dc1441ab9964badbcb73e0dc213fe39
          name: 'CPQIDA-MIB::cpqDaCntlrModel'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ida
            - value: '3'
              newvalue: idaExpansion
            - value: '4'
              newvalue: ida-2
            - value: '5'
              newvalue: smart
            - value: '6'
              newvalue: smart-2e
            - value: '7'
              newvalue: smart-2p
            - value: '8'
              newvalue: smart-2sl
            - value: '9'
              newvalue: smart-3100es
            - value: '10'
              newvalue: smart-3200
            - value: '11'
              newvalue: smart-2dh
            - value: '12'
              newvalue: smart-221
            - value: '13'
              newvalue: sa-4250es
            - value: '14'
              newvalue: sa-4200
            - value: '15'
              newvalue: sa-integrated
            - value: '16'
              newvalue: sa-431
            - value: '17'
              newvalue: sa-5300
            - value: '18'
              newvalue: raidLc2
            - value: '19'
              newvalue: sa-5i
            - value: '20'
              newvalue: sa-532
            - value: '21'
              newvalue: sa-5312
            - value: '22'
              newvalue: sa-641
            - value: '23'
              newvalue: sa-642
            - value: '24'
              newvalue: sa-6400
            - value: '25'
              newvalue: sa-6400em
            - value: '26'
              newvalue: sa-6i
            - value: '27'
              newvalue: sa-generic
            - value: '29'
              newvalue: sa-p600
            - value: '30'
              newvalue: sa-p400
            - value: '31'
              newvalue: sa-e200
            - value: '32'
              newvalue: sa-e200i
            - value: '33'
              newvalue: sa-p400i
            - value: '34'
              newvalue: sa-p800
            - value: '35'
              newvalue: sa-e500
            - value: '36'
              newvalue: sa-p700m
            - value: '37'
              newvalue: sa-p212
            - value: '38'
              newvalue: sa-p410
            - value: '39'
              newvalue: sa-p410i
            - value: '40'
              newvalue: sa-p411
            - value: '41'
              newvalue: sa-b110i
            - value: '42'
              newvalue: sa-p712m
            - value: '43'
              newvalue: sa-p711m
            - value: '44'
              newvalue: sa-p812
            - value: '45'
              newvalue: sw-1210m
            - value: '46'
              newvalue: sa-p220i
            - value: '47'
              newvalue: sa-p222
            - value: '48'
              newvalue: sa-p420
            - value: '49'
              newvalue: sa-p420i
            - value: '50'
              newvalue: sa-p421
            - value: '51'
              newvalue: sa-b320i
            - value: '52'
              newvalue: sa-p822
            - value: '53'
              newvalue: sa-p721m
            - value: '54'
              newvalue: sa-b120i
            - value: '55'
              newvalue: hps-1224
            - value: '56'
              newvalue: hps-1228
            - value: '57'
              newvalue: hps-1228m
            - value: '58'
              newvalue: sa-p822se
            - value: '59'
              newvalue: hps-1224e
            - value: '60'
              newvalue: hps-1228e
            - value: '61'
              newvalue: hps-1228em
            - value: '62'
              newvalue: sa-p230i
            - value: '63'
              newvalue: sa-p430i
            - value: '64'
              newvalue: sa-p430
            - value: '65'
              newvalue: sa-p431
            - value: '66'
              newvalue: sa-p731m
            - value: '67'
              newvalue: sa-p830i
            - value: '68'
              newvalue: sa-p830
            - value: '69'
              newvalue: sa-p831
            - value: '70'
              newvalue: sa-p530
            - value: '71'
              newvalue: sa-p531
            - value: '72'
              newvalue: sa-p244br
            - value: '73'
              newvalue: sa-p246br
            - value: '74'
              newvalue: sa-p440
            - value: '75'
              newvalue: sa-p440ar
            - value: '76'
              newvalue: sa-p441
            - value: '77'
              newvalue: sa-p741m
            - value: '78'
              newvalue: sa-p840
            - value: '79'
              newvalue: sa-p841
            - value: '80'
              newvalue: sh-h240ar
            - value: '81'
              newvalue: sh-h244br
            - value: '82'
              newvalue: sh-h240
            - value: '83'
              newvalue: sh-h241
            - value: '84'
              newvalue: sa-b140i
            - value: '85'
              newvalue: sh-generic
            - value: '86'
              newvalue: sa-p240nr
            - value: '87'
              newvalue: sh-h240nr
            - value: '88'
              newvalue: sa-p840ar
            - value: '89'
              newvalue: sa-p542d
            - value: '90'
              newvalue: s100i
            - value: '91'
              newvalue: e208i-p
            - value: '92'
              newvalue: e208i-a
            - value: '93'
              newvalue: e208i-c
            - value: '94'
              newvalue: e208e-p
            - value: '95'
              newvalue: p204i-b
            - value: '96'
              newvalue: p204i-c
            - value: '97'
              newvalue: p408i-p
            - value: '98'
              newvalue: p408i-a
            - value: '99'
              newvalue: p408e-p
            - value: '100'
              newvalue: p408i-c
            - value: '101'
              newvalue: p408e-m
            - value: '102'
              newvalue: p416ie-m
            - value: '103'
              newvalue: p816i-a
            - value: '104'
              newvalue: p408i-sb
        - uuid: 3fd86d20618b43f39911746d72c2c242
          name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
          mappings:
            - value: '0'
              newvalue: other
            - value: '2'
              newvalue: none
            - value: '3'
              newvalue: RAID-1/RAID-10
            - value: '4'
              newvalue: RAID-4
            - value: '5'
              newvalue: RAID-5
            - value: '7'
              newvalue: RAID-6
            - value: '8'
              newvalue: RAID-50
            - value: '9'
              newvalue: RAID-60
            - value: '10'
              newvalue: 'RAID-1 ADM'
            - value: '11'
              newvalue: 'RAID-10 ADM'
        - uuid: e72171bf818e4ee1bdf9638cb0494693
          name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: unconfigured
            - value: '5'
              newvalue: recovering
            - value: '6'
              newvalue: readyForRebuild
            - value: '7'
              newvalue: rebuilding
            - value: '8'
              newvalue: wrongDrive
            - value: '9'
              newvalue: badConnect
            - value: '10'
              newvalue: overheating
            - value: '11'
              newvalue: shutdown
            - value: '12'
              newvalue: expanding
            - value: '13'
              newvalue: notAvailable
            - value: '14'
              newvalue: queuedForExpansion
            - value: '15'
              newvalue: multipathAccessDegraded
            - value: '16'
              newvalue: erasing
            - value: '17'
              newvalue: predictiveSpareRebuildReady
            - value: '18'
              newvalue: rapidParityInitInProgress
            - value: '19'
              newvalue: rapidParityInitPending
            - value: '20'
              newvalue: noAccessEncryptedNoCntlrKey
            - value: '21'
              newvalue: unencryptedToEncryptedInProgress
            - value: '22'
              newvalue: newLogDrvKeyRekeyInProgress
            - value: '23'
              newvalue: noAccessEncryptedCntlrEncryptnNotEnbld
            - value: '24'
              newvalue: unencryptedToEncryptedNotStarted
            - value: '25'
              newvalue: newLogDrvKeyRekeyRequestReceived
        - uuid: 3d32638b989d4d3e87f727baaef8b051
          name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: rotatingPlatters
            - value: '3'
              newvalue: solidState
        - uuid: 137c69d61b394c979d7d25d91bcc2f0b
          name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: replaceDrive
            - value: '4'
              newvalue: replaceDriveSSDWearOut
        - uuid: 9af698a37bd844069eb2235f7f5d4800
          name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: predictiveFailure
        - uuid: 04dcfa6e36ca4a0590475d84186a5d62
          name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
          mappings:
            - value: '1'
              newvalue: unknown
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: generalFailure
            - value: '4'
              newvalue: linkFailure
        - uuid: 83162a1a3b124ab2ae9b4cf1149486f9
          name: 'CPQSINFO-MIB::status'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: 63b879b39b084a318547620421164c05
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 60cb9ccb922e4fd194a1d9573db10237
      template: 'HPE ProLiant DL360 by SNMP'
      name: 'HPE ProLiant DL360 by SNMP'
      description: |
        Template for HPE ProLiant DL360 servers with HP iLO version 4 and later.
        
        MIBs used:
        HOST-RESOURCES-MIB
        CPQHLTH-MIB
        SNMPv2-MIB
        CPQNIC-MIB
        CPQSINFO-MIB
        CPQIDA-MIB
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This is a template for monitoring HPE ProLiant DL360 servers with HP iLO version 4 and later via Zabbix SNMP agent that works without any external scripts.
      vendor:
        name: Zabbix
        version: 8.0-2
      groups:
        - name: 'Templates/Server hardware'
      items:
        - uuid: 5f90d6150d544b13b659a4023ced96fc
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'hp.server.contact[sysContact]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person.  If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 2594044e5b6046c3944cc54744f7f133
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'hp.server.descr[sysDescr]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 2a807f6dd73e41418df98e294470ed67
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]'
          key: 'hp.server.hw.model[cpqSiProductName]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The machine product name. The name of the machine used in this system.
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 0aab370a165b42208ddc7e0ae693dabf
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]'
          key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The serial number of the physical system unit. The string will be empty if the system does not report the serial number function.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 1316d7def24a4a80adfdf4bc8ac5a12c
              expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0'
              name: 'HPE ProLiant DL360: Device has been replaced'
              event_name: 'HPE ProLiant DL360: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 8026a919077f4373adf774a18beb95eb
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'hp.server.hw.uptime[hrSystemUptime]'
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 71486d7865174980a004d566e0a9e885
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'hp.server.location[sysLocation]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The physical location of this node (e.g., `telephone closet, 3rd floor').  If the location is unknown, the value is the zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 2b0f62e1317c4900a7daee824cb360a3
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: 'hp.server.name[sysName]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name.  If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 6431a1a0b8494b50bcbd18e283e7158e
              expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.name[sysName]))>0'
              name: 'HPE ProLiant DL360: System name has changed'
              event_name: 'HPE ProLiant DL360: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 361fa26e08284bbd822e17efde9a7856
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'hp.server.net.uptime[sysUpTime]'
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: b554640957a04d1fa2fc4bf91a0b81a2
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'hp.server.objectid[sysObjectID]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity.  This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 2c9f9d96d50442bd99d6c46db6970d3d
          name: 'System temperature status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]'
          key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            This value specifies the overall condition of the system's thermal environment.
            This value will be one of the following:
            other(1)  Temperature could not be determined.
            ok(2)  The temperature sensor is within normal operating range.
            degraded(3)  The temperature sensor is outside of normal operating range.
            failed(4)  The temperature sensor detects a condition that could  permanently damage the system.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: temperature
        - uuid: f61796d773b94de6b5177102cfb72005
          name: 'Overall system health status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]'
          key: 'hp.server.status[cpqHeMibCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            The overall condition. This object represents the overall status of the server information represented by this MIB.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 6cc840d5bccc4f1abfd7df6a161154ad
              expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              name: 'HPE ProLiant DL360: System status is in critical state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: HIGH
              description: 'Please check the device for errors.'
              tags:
                - tag: scope
                  value: available
            - uuid: eab6760dda124629a9edcb2218ad3ad3
              expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}'
              name: 'HPE ProLiant DL360: System status is in warning state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Please check the device for warnings.'
              dependencies:
                - name: 'HPE ProLiant DL360: System status is in critical state'
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              tags:
                - tag: scope
                  value: available
        - uuid: 730b5262f94c4643bbcc4feb59b614da
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: cb8fe041c0344b8f807a61a0d53344de
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          valuemap:
            name: zabbix.host.available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 0b91663d4b684e46aaccdf480d1622f0
              expression: 'max(/HPE ProLiant DL360 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'HPE ProLiant DL360: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              tags:
                - tag: scope
                  value: available
      discovery_rules:
        - uuid: 81158a1ef55449568a453214435d9332
          name: 'Array controller cache discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]'
          key: array.cache.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable'
          item_prototypes:
            - uuid: 5fd8817af6b24ced8ce04ea092bda5ee
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board.
                The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource.
                The following values are valid:
                Other (1)  Indicates that the instrument agent does not recognize  backup power status.  You may need to update your software.
                
                Ok (2)  The backup power source is fully charged.
                
                Recharging (3)  The array controller has one or more cache module backup power  sources that are recharging.
                Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged.
                Cache module operations will automatically resume  when charging is complete.
                
                Failed (4)  The battery pack is below the sufficient voltage level and  has not recharged in 36 hours.
                Your Cache Module board  needs to be serviced.
                
                Degraded (5)  The battery is still operating, however, one of the batteries  in the pack has failed to recharge properly.
                Your Cache  Module board should be serviced as soon as possible.
                
                NotPresent (6)  A backup power source is not present on the cache module board. Some controllers do not have backup power sources.
                
                Capacitor Failed (7)  The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes.  Your Cache Module board needs to be serviced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelBattery'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: a6cd582e11804f0f939e841287305edc
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: bb1f9560a6d74bd9aaca3ffa04aec311
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
                  name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 28dc0b13c364443c8026e03ad00a33cb
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module/Operations Status. This describes the status of the cache module and/or cache operations.
                Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option.
                
                The status can be:
                Other (1)
                 Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent.
                
                Invalid (2)
                 Indicates that a cache module board has not been installed in this system or is present but not configured.
                
                Enabled (3)
                 Indicates that cache operations are currently configured and enabled for at least one logical drive.
                
                Temporarily Disabled (4)
                 Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled.
                
                Permanently Disabled (5)
                 Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled.
                
                Cache Module Flash Memory Not Attached (6)
                 Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory.
                
                Cache Module Degraded Failsafe Speed (7)
                 Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate.
                
                Cache Module Critical Failure (8)
                 Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode.
                
                Read Cache Could Not Be Mapped (9)
                 Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 6a3002495b7540a981c9909c540ede36
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 2ee4cf4ddd9944c985ac522a04371a13
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 2cbed500a4c34f138623c31a86e227c4
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
                  name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                    - name: 'HPE ProLiant DL360: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 4bcefb33e0f545e0bcdc8fb92c8376c9
          name: 'Array controller discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]'
          key: array.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable'
          item_prototypes:
            - uuid: 3bf1b9b2574440d88b4c1fde09a89810
              name: '{#CNTLR_LOCATION}: Disk array controller model'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Array Controller Model. The type of controller card.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaCntlrModel'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
            - uuid: ef99c5df575646f3a4f29b6e1b4761c1
              name: '{#CNTLR_LOCATION}: Disk array controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                This value represents the overall condition of this controller,
                and any associated logical drives, physical drives, and array accelerators.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 1c518fee6dbc49228768b3dd61a98057
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 2dd65457ec524248ac5b1c1cfd9f3821
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}'
                  name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 42b03d399c8c420ab540fc2736e58a44
          name: 'FAN discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]'
          key: fan.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition'
          item_prototypes:
            - uuid: d153662e4a16479a806c8b6b0d247823
              name: 'Fan {#SNMPINDEX}: Fan status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]'
              key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the fan.
                This value will be one of the following:
                other(1)  Fan status detection is not supported by this system or driver.
                ok(2)  The fan is operating properly.
                degraded(2)  A redundant fan is not operating properly.
                failed(4)  A non-redundant fan is not operating properly.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: fan
              trigger_prototypes:
                - uuid: 90cc1704d8c340309e23deb78620c861
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the fan unit.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 9b7692f49b604f0791934b58294881cd
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}'
                  name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the fan unit.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: Fan {#SNMPINDEX}: Fan is in critical state'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: f8ab5448b85f44f09263de1e173760ea
          name: 'Network interface discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]'
          key: net.if.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable'
          item_prototypes:
            - uuid: 3d0b8a8038c848e69559fb3273da7546
              name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]'
              key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]'
              description: |
                MIB: CPQNIC-MIB
                The physical adapter status. The following values are valid:
                unknown(1)
                  The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded.
                ok(2)
                  The physical adapter is operating properly.
                generalFailure(3)
                  The physical adapter has failed.
                linkFailure(4)
                  The physical adapter has lost link. Check the cable connections to this adapter.
              valuemap:
                name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: network
              trigger_prototypes:
                - uuid: aaf66f1530f74d59919a1c505a8ae147
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the physical adapter.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: f943117ce7004390854a21c2e1cdb514
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4'
                  name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the cable connections to this adapter.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 51066791fd384fc49518f507ec925ade
          name: 'Physical disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]'
          key: physicaldisk.discovery
          delay: 1h
          description: 'Scanning  table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.'
          item_prototypes:
            - uuid: 0444a75b820a4fa18baa8a846d51202f
              name: '{#DISK_LOCATION}: Physical disk media type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Drive Array Physical Drive Media Type. The following values are defined:
                other(1)  The instrument agent is unable to determine the physical drive's media type.
                rotatingPlatters(2)  The physical drive media is composed of rotating platters.
                solidState(3)  The physical drive media is composed of solid state electronics.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 440f9a6fab244970bd1a9cb8691c6871
              name: '{#DISK_LOCATION}: Physical disk model name'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Model. This is a text description of the physical drive.
                The text that appears depends upon who manufactured the drive and the drive type.
                If a drive fails, note the model to identify the type of drive necessary for replacement.
                If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 6ec3e18ffc214abaa35bd8d82f8a9bf3
              name: '{#DISK_LOCATION}: Physical disk serial number'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Serial Number.
                This is the serial number assigned to the physical drive.
                This value is based upon the serial number as returned by the SCSI inquiry command
                but may have been modified due to space limitations.  This can be used for identification purposes.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: ad74fc6568a0487e834b9e9da4127bb7
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0'
                  name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Disk has been replaced'
                  event_name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Disk has been replaced (new serial number received)'
                  priority: INFO
                  description: 'Disk serial number has changed. Acknowledge to close the problem manually.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
            - uuid: 96fdb84f875243a0904f5ad4b9f0fc65
              name: '{#DISK_LOCATION}: Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Size in MB.
                This is the size of the physical drive in megabytes.
                This value is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ
                from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives,
                and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated
                or if the controller does not support SCSI drives.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: ac29b3b9ec8d4edca37eaba2207c5585
              name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive S.M.A.R.T Status. The following values are defined:
                other(1)  The agent is unable to determine if the status of S.M.A.R.T  predictive failure monitoring for this drive.
                ok(2)  Indicates the drive is functioning properly.
                replaceDrive(3)  Indicates that the drive has a S.M.A.R.T predictive failure  error and should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: d0a86e4ee6ef46e8ade36dae70f69ad6
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
                  name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Disk probably requires replacement.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: cfd49d624f1b4980ac71a115df1cdfdf
              name: '{#DISK_LOCATION}: Physical disk status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status:
                other (1)  Indicates that the instrument agent does not recognize  the drive.
                You may need to upgrade your instrument agent  and/or driver software.
                ok (2)  Indicates the drive is functioning properly.
                failed (3)  Indicates that the drive is no longer operating and  should be replaced.
                predictiveFailure(4)  Indicates that the drive has a predictive failure error and  should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 3eb8efcf6caa46ff892bd1d693996a4f
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed'
                  opdata: 'Current status: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check physical disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1559184494d849cda3946a2b05b81cf3
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}'
                  name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check physical disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 9f4e53ed613049e1a4c23b13e666c849
          name: 'PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]'
          key: psu.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus'
          item_prototypes:
            - uuid: a9911ac100104b578860a29e8fbed521
              name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the power supply. This value will be one of the following:
                other(1)  The status could not be determined or not present.
                ok(2)  The power supply is operating normally.
                degraded(3)  A temperature sensor, fan or other power supply component is  outside of normal operating range.
                failed(4)  A power supply component detects a condition that could  permanently damage the system.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
              trigger_prototypes:
                - uuid: e01e8d01d65a4ce7a2990ee30ab02d84
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the power supply unit for errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: cbd3d4d3d3e0427f89a0972fbef56f63
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}'
                  name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the power supply unit for errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 413a7167b1864ee69250096459e7eac9
          name: 'Temperature ambient discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.ambient.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '11'
              - macro: '{#SNMPINDEX}'
                value: 0\.1
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter
          item_prototypes:
            - uuid: 6cc334e5558749a2ad78985a3a11bb29
              name: 'Ambient: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 7a56b1e7bc7a4464abdf3004a903020e
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: Ambient: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: d0e3ccfb13a9489f877e07cccbecf89f
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: Ambient: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 4f40a124d4c949a89e6c31796faf37ae
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: Ambient: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 6fa0ecd1551f469ba61b9efe1120a164
              name: 'Ambient: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Ambient
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: efad502d9a304457a55b73fc51007b0d
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.cpu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '6'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter
          item_prototypes:
            - uuid: 2c7dccb9af4a4364924452edba91f6ca
              name: 'CPU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: a27ee21d95ff46f78807eaf31cdc0db4
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 97d97920b65c418186af30fdc8fea55e
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: f06e48cef80d4e13b8e1d1ba89b60d9d
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: b137b39eccc24e49a775234076816f17
              name: 'CPU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: CPU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 28c47461dfd64df995e72212d6798479
          name: 'Temperature discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: (4|8|9|12|13)
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable
          item_prototypes:
            - uuid: 62e9ac33b79c48988946dd79f701aa45
              name: '{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: fbbfe6536c1b4852916e93c6a6d8efd9
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: {#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: ef76129efb9a4744809682ff041cca21
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 1a2dd7941efa4792b0e933c26e4e9802
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: {#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: cf6090b148534fd38fd6f9d769a4ac0f
              name: '{#SNMPINDEX}: Temperature sensor location'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                This specifies the location of the temperature sensor present in the system.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
            - uuid: cad2c5d64bf84f18ab1e0037579c1d1c
              name: '{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: {#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 37ceae2e5635456695e3c8ed6d91ea60
          name: 'Temperature I/O discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.io.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '5'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter
          item_prototypes:
            - uuid: e0e31534c41a4bf69eea5bab3f5831fd
              name: 'I/O-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 1918208a434145668d0a196ad53bdefd
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1'
                  name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: e6d9e708b1704c229e010cb0ae3f53c1
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4'
                  name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 325bf55e8d374d97ab240873ea177636
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3'
                  name: 'HPE ProLiant DL360: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: d6403c935b8e44a2baa2805898b85696
              name: 'I/O-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: I/O-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: a668aae03dfd4012a71dd70c43e20eb0
          name: 'Temperature memory discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.memory.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '7'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter
          item_prototypes:
            - uuid: 09dc4ba365a64b5d8585e7c00380dd53
              name: 'Memory-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 3d335c0712dd40eaa085714cbac51cca
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: e4b619a640d549099ead16e2c5085746
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 7be4e1200cdf418497158e59979edf86
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 01dd0a5b92fe4071b43d20f52d4f4b52
              name: 'Memory-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Memory-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: b9cda4cedd5f4e43a65126d5a5cef67d
          name: 'Temperature PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.psu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '10'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter
          item_prototypes:
            - uuid: cf425ae8caed4061960b71daec7ba273
              name: 'PSU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: fc3a93d232b144b9b2f2d8b95538b941
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 2f95466ff7ee4cf0bb45dfc800d680d3
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 147e9de1a91d4473be384c5951812d9f
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 96b82f3f3ff8415ca613a87edc83c34b
              name: 'PSU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: PSU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 8402ab901d3744508f46713034ae26fb
          name: 'Temperature system discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.system.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '3'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter
          item_prototypes:
            - uuid: 4ce80892fad4497aadff5c2adc9c44b2
              name: 'System-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 31a1d664064644cba700ef61e4602523
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: c51ac08efa464b91a44e01387a9c3a6d
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: cca796d265034389afd8236ec26a1990
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL360: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 477b63282a034574b3e395fcd54b02c0
              name: 'System-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: System-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 1bd919cfcd3a4225b81997e3d75a0d32
          name: 'Virtual disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]'
          key: virtualdisk.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqDaLogDrvTable'
          item_prototypes:
            - uuid: 1635da24ff484926900f086afde33448
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]'
              description: |
                Logical Drive Fault Tolerance.
                This shows the fault tolerance mode of the logical drive.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 91f0d0cacf1b4dc7a25168be320c5281
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                Logical Drive Size.
                This is the size of the logical drive in megabytes.  This value
                is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a
                megabyte when giving drive capacities so this value may
                differ from the advertised size of a drive.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 3e7826d4fb834aa9853955d348ece29b
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]'
              description: 'Logical Drive Status.'
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
              trigger_prototypes:
                - uuid: c49fb63092eb4764aae145d93f9daa33
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check virtual disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 698ef7d90e95463c8ea7a14c5fa72be9
                  expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}'
                  name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check virtual disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL360: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                      expression: 'last(/HPE ProLiant DL360 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
      tags:
        - tag: class
          value: hardware
        - tag: subclass
          value: server
        - tag: target
          value: hp
        - tag: target
          value: hp-dl360
      macros:
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
          value: '7'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Disk array cash battery critical status (capacitorFailed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}'
          value: '4'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '15'
            section_name: Other
            label: 'Disk array cash battery critical status (failed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
          value: '5'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '17'
            section_name: Other
            label: 'Disk array cash battery warning status (degraded)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}'
          value: '6'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '18'
            section_name: Other
            label: 'Disk array cash battery warning status (notPresent)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
          value: '8'
          description: 'The critical status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '9'
            section_name: Other
            label: 'Disk array cash critical status'
            description: 'The critical status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}'
          value: '3'
          description: 'The normal status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Other
            label: 'Disk array cash OK status'
            description: 'The normal status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}'
          value: '7'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '11'
            section_name: Other
            label: 'Disk array cash warning status (degraded)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
          value: '6'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Other
            label: 'Disk array cash warning status (not attached)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}'
          value: '9'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Other
            label: 'Disk array cash warning status (not mapped)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
          value: '2'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Other
            label: 'Disk array cash warning status (invalid)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '7'
            section_name: Other
            label: 'Disk array critical status'
            description: 'The critical status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '8'
            section_name: Other
            label: 'Disk array warning status'
            description: 'The warning status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}'
          value: '3'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '23'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDrive)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
          value: '4'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '24'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDriveSSDWearOut)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.FAIL}'
          value: '3'
          description: 'The critical status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '22'
            section_name: Other
            label: 'Disk critical status'
            description: 'The critical status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.WARN}'
          value: '4'
          description: 'The warning status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '21'
            section_name: Other
            label: 'Disk warning status'
            description: 'The warning status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '5'
            section_name: Other
            label: 'Fan critical status'
            description: 'The critical value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '6'
            section_name: Other
            label: 'Fan warning status'
            description: 'The warning value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '1'
            section_name: Other
            label: 'Health critical status'
            description: 'The critical status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '2'
            section_name: Other
            label: 'Health warning status'
            description: 'The warning status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '3'
            section_name: Other
            label: 'PSU critical status'
            description: 'The critical value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '4'
            section_name: Other
            label: 'PSU warning status'
            description: 'The warning value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'The time interval for SNMP agent availability trigger expression.'
          config:
            type: TEXT
            priority: '25'
            section_name: Other
            label: 'Time interval'
            description: 'The time interval for SNMP agent availability trigger expression.'
        - macro: '{$VDISK.STATUS.CRIT}'
          value: '3'
          description: 'The critical status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '19'
            section_name: Other
            label: 'Virtual disk critical status'
            description: 'The critical status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VDISK.STATUS.OK}'
          value: '2'
          description: 'The normal status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '20'
            section_name: Other
            label: 'Virtual disk OK status'
            description: 'The normal status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      valuemaps:
        - uuid: eb946b7168084341870c9157173b5c1e
          name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: a293ad4b90c14fe188623341b954d852
          name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: unknown
            - value: '3'
              newvalue: system
            - value: '4'
              newvalue: systemBoard
            - value: '5'
              newvalue: ioBoard
            - value: '6'
              newvalue: cpu
            - value: '7'
              newvalue: memory
            - value: '8'
              newvalue: storage
            - value: '9'
              newvalue: removableMedia
            - value: '10'
              newvalue: powerSupply
            - value: '11'
              newvalue: ambient
            - value: '12'
              newvalue: chassis
            - value: '13'
              newvalue: bridgeCard
        - uuid: ca2a5be5f3cf4fa7a9812d483ba043c5
          name: 'CPQIDA-MIB::cpqDaAccelBattery'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: Ok
            - value: '3'
              newvalue: Recharging
            - value: '4'
              newvalue: Failed
            - value: '5'
              newvalue: Degraded
            - value: '6'
              newvalue: 'Not Present'
            - value: '7'
              newvalue: 'Capacitor failed'
        - uuid: f15cd1d7fa7e4e05b46e872daa3a3c83
          name: 'CPQIDA-MIB::cpqDaAccelStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: invalid
            - value: '3'
              newvalue: enabled
            - value: '4'
              newvalue: tmpDisabled
            - value: '5'
              newvalue: permDisabled
            - value: '6'
              newvalue: cacheModFlashMemNotAttached
            - value: '7'
              newvalue: cacheModDegradedFailsafeSpeed
            - value: '8'
              newvalue: cacheModCriticalFailure
            - value: '9'
              newvalue: cacheReadCacheNotMapped
        - uuid: abaffb0a2a1f47ec8aa64f6264d29092
          name: 'CPQIDA-MIB::cpqDaCntlrModel'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ida
            - value: '3'
              newvalue: idaExpansion
            - value: '4'
              newvalue: ida-2
            - value: '5'
              newvalue: smart
            - value: '6'
              newvalue: smart-2e
            - value: '7'
              newvalue: smart-2p
            - value: '8'
              newvalue: smart-2sl
            - value: '9'
              newvalue: smart-3100es
            - value: '10'
              newvalue: smart-3200
            - value: '11'
              newvalue: smart-2dh
            - value: '12'
              newvalue: smart-221
            - value: '13'
              newvalue: sa-4250es
            - value: '14'
              newvalue: sa-4200
            - value: '15'
              newvalue: sa-integrated
            - value: '16'
              newvalue: sa-431
            - value: '17'
              newvalue: sa-5300
            - value: '18'
              newvalue: raidLc2
            - value: '19'
              newvalue: sa-5i
            - value: '20'
              newvalue: sa-532
            - value: '21'
              newvalue: sa-5312
            - value: '22'
              newvalue: sa-641
            - value: '23'
              newvalue: sa-642
            - value: '24'
              newvalue: sa-6400
            - value: '25'
              newvalue: sa-6400em
            - value: '26'
              newvalue: sa-6i
            - value: '27'
              newvalue: sa-generic
            - value: '29'
              newvalue: sa-p600
            - value: '30'
              newvalue: sa-p400
            - value: '31'
              newvalue: sa-e200
            - value: '32'
              newvalue: sa-e200i
            - value: '33'
              newvalue: sa-p400i
            - value: '34'
              newvalue: sa-p800
            - value: '35'
              newvalue: sa-e500
            - value: '36'
              newvalue: sa-p700m
            - value: '37'
              newvalue: sa-p212
            - value: '38'
              newvalue: sa-p410
            - value: '39'
              newvalue: sa-p410i
            - value: '40'
              newvalue: sa-p411
            - value: '41'
              newvalue: sa-b110i
            - value: '42'
              newvalue: sa-p712m
            - value: '43'
              newvalue: sa-p711m
            - value: '44'
              newvalue: sa-p812
            - value: '45'
              newvalue: sw-1210m
            - value: '46'
              newvalue: sa-p220i
            - value: '47'
              newvalue: sa-p222
            - value: '48'
              newvalue: sa-p420
            - value: '49'
              newvalue: sa-p420i
            - value: '50'
              newvalue: sa-p421
            - value: '51'
              newvalue: sa-b320i
            - value: '52'
              newvalue: sa-p822
            - value: '53'
              newvalue: sa-p721m
            - value: '54'
              newvalue: sa-b120i
            - value: '55'
              newvalue: hps-1224
            - value: '56'
              newvalue: hps-1228
            - value: '57'
              newvalue: hps-1228m
            - value: '58'
              newvalue: sa-p822se
            - value: '59'
              newvalue: hps-1224e
            - value: '60'
              newvalue: hps-1228e
            - value: '61'
              newvalue: hps-1228em
            - value: '62'
              newvalue: sa-p230i
            - value: '63'
              newvalue: sa-p430i
            - value: '64'
              newvalue: sa-p430
            - value: '65'
              newvalue: sa-p431
            - value: '66'
              newvalue: sa-p731m
            - value: '67'
              newvalue: sa-p830i
            - value: '68'
              newvalue: sa-p830
            - value: '69'
              newvalue: sa-p831
            - value: '70'
              newvalue: sa-p530
            - value: '71'
              newvalue: sa-p531
            - value: '72'
              newvalue: sa-p244br
            - value: '73'
              newvalue: sa-p246br
            - value: '74'
              newvalue: sa-p440
            - value: '75'
              newvalue: sa-p440ar
            - value: '76'
              newvalue: sa-p441
            - value: '77'
              newvalue: sa-p741m
            - value: '78'
              newvalue: sa-p840
            - value: '79'
              newvalue: sa-p841
            - value: '80'
              newvalue: sh-h240ar
            - value: '81'
              newvalue: sh-h244br
            - value: '82'
              newvalue: sh-h240
            - value: '83'
              newvalue: sh-h241
            - value: '84'
              newvalue: sa-b140i
            - value: '85'
              newvalue: sh-generic
            - value: '86'
              newvalue: sa-p240nr
            - value: '87'
              newvalue: sh-h240nr
            - value: '88'
              newvalue: sa-p840ar
            - value: '89'
              newvalue: sa-p542d
            - value: '90'
              newvalue: s100i
            - value: '91'
              newvalue: e208i-p
            - value: '92'
              newvalue: e208i-a
            - value: '93'
              newvalue: e208i-c
            - value: '94'
              newvalue: e208e-p
            - value: '95'
              newvalue: p204i-b
            - value: '96'
              newvalue: p204i-c
            - value: '97'
              newvalue: p408i-p
            - value: '98'
              newvalue: p408i-a
            - value: '99'
              newvalue: p408e-p
            - value: '100'
              newvalue: p408i-c
            - value: '101'
              newvalue: p408e-m
            - value: '102'
              newvalue: p416ie-m
            - value: '103'
              newvalue: p816i-a
            - value: '104'
              newvalue: p408i-sb
        - uuid: 204396956bfe4ff5808dfa93bb35705c
          name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
          mappings:
            - value: '0'
              newvalue: other
            - value: '2'
              newvalue: none
            - value: '3'
              newvalue: RAID-1/RAID-10
            - value: '4'
              newvalue: RAID-4
            - value: '5'
              newvalue: RAID-5
            - value: '7'
              newvalue: RAID-6
            - value: '8'
              newvalue: RAID-50
            - value: '9'
              newvalue: RAID-60
            - value: '10'
              newvalue: 'RAID-1 ADM'
            - value: '11'
              newvalue: 'RAID-10 ADM'
        - uuid: adb434bee0104007a4c0d053211bc2e7
          name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: unconfigured
            - value: '5'
              newvalue: recovering
            - value: '6'
              newvalue: readyForRebuild
            - value: '7'
              newvalue: rebuilding
            - value: '8'
              newvalue: wrongDrive
            - value: '9'
              newvalue: badConnect
            - value: '10'
              newvalue: overheating
            - value: '11'
              newvalue: shutdown
            - value: '12'
              newvalue: expanding
            - value: '13'
              newvalue: notAvailable
            - value: '14'
              newvalue: queuedForExpansion
            - value: '15'
              newvalue: multipathAccessDegraded
            - value: '16'
              newvalue: erasing
            - value: '17'
              newvalue: predictiveSpareRebuildReady
            - value: '18'
              newvalue: rapidParityInitInProgress
            - value: '19'
              newvalue: rapidParityInitPending
            - value: '20'
              newvalue: noAccessEncryptedNoCntlrKey
            - value: '21'
              newvalue: unencryptedToEncryptedInProgress
            - value: '22'
              newvalue: newLogDrvKeyRekeyInProgress
            - value: '23'
              newvalue: noAccessEncryptedCntlrEncryptnNotEnbld
            - value: '24'
              newvalue: unencryptedToEncryptedNotStarted
            - value: '25'
              newvalue: newLogDrvKeyRekeyRequestReceived
        - uuid: 6cc6b46021f74cae83b29a62fc2cd1c0
          name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: rotatingPlatters
            - value: '3'
              newvalue: solidState
        - uuid: 02eab0a3c02d440c82b86ddbd4ed1af6
          name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: replaceDrive
            - value: '4'
              newvalue: replaceDriveSSDWearOut
        - uuid: 8ab32bfce9f143da86a458427804a5f4
          name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: predictiveFailure
        - uuid: d7ae95f8b813415c8d35cfe8debf8f2d
          name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
          mappings:
            - value: '1'
              newvalue: unknown
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: generalFailure
            - value: '4'
              newvalue: linkFailure
        - uuid: 365afa633545431482f2ec054750da88
          name: 'CPQSINFO-MIB::status'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: 9665746d6c2a4ad0b85b2f1f7d1cb12d
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 379aaf7e87574debb4f5c3947a22ec68
      template: 'HPE ProLiant DL380 by SNMP'
      name: 'HPE ProLiant DL380 by SNMP'
      description: |
        Template for HPE ProLiant DL380 servers with HP iLO version 4 and later.
        
        MIBs used:
        HOST-RESOURCES-MIB
        CPQHLTH-MIB
        SNMPv2-MIB
        CPQNIC-MIB
        CPQSINFO-MIB
        CPQIDA-MIB
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This is a template for monitoring HPE ProLiant DL380 servers with HP iLO version 4 and later via Zabbix SNMP agent that works without any external scripts.
      vendor:
        name: Zabbix
        version: 8.0-2
      groups:
        - name: 'Templates/Server hardware'
      items:
        - uuid: 19ed955aeefa493883a151ddb550b8ff
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'hp.server.contact[sysContact]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person.  If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 7b9fc7a143c74d1b812d14413c1f53b0
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'hp.server.descr[sysDescr]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: d2cad986747643658bee67492d90d106
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.4.2.0]'
          key: 'hp.server.hw.model[cpqSiProductName]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The machine product name. The name of the machine used in this system.
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 6cdacf190c584227b822fee9c112b849
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.2.2.2.1.0]'
          key: 'hp.server.hw.serialnumber[cpqSiSysSerialNum]'
          value_type: CHAR
          description: |
            MIB: CPQSINFO-MIB
            The serial number of the physical system unit. The string will be empty if the system does not report the serial number function.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: bd81b8c420904f0bafa4fbf90d195967
              expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.serialnumber[cpqSiSysSerialNum]))>0'
              name: 'HPE ProLiant DL380: Device has been replaced'
              event_name: 'HPE ProLiant DL380: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 437a251079a44869ba9b11b2184d85e7
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'hp.server.hw.uptime[hrSystemUptime]'
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 622dd9bef33b4db7bf5899a6f6ccb7b3
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'hp.server.location[sysLocation]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The physical location of this node (e.g., `telephone closet, 3rd floor').  If the location is unknown, the value is the zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 2726dcd682d340b681f5dfa8d1e3ef07
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: 'hp.server.name[sysName]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name.  If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 168b1742abc340558631a577a1a3c4d9
              expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.name[sysName]))>0'
              name: 'HPE ProLiant DL380: System name has changed'
              event_name: 'HPE ProLiant DL380: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 5576766f3a004fd3894ff22da515aedc
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'hp.server.net.uptime[sysUpTime]'
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 1394f5cfccb64c53abd8cff0f095906f
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'hp.server.objectid[sysObjectID]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity.  This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: system
        - uuid: 09930c5b67d44de49bedfe7465697d40
          name: 'System temperature status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.1.0]'
          key: 'hp.server.sensor.temp.status[cpqHeThermalCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            This value specifies the overall condition of the system's thermal environment.
            This value will be one of the following:
            other(1)  Temperature could not be determined.
            ok(2)  The temperature sensor is within normal operating range.
            degraded(3)  The temperature sensor is outside of normal operating range.
            failed(4)  The temperature sensor detects a condition that could  permanently damage the system.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: temperature
        - uuid: e980a83b24bd4bdb9d2b7369d41c9aea
          name: 'Overall system health status'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.232.6.1.3.0]'
          key: 'hp.server.status[cpqHeMibCondition]'
          trends: '0'
          description: |
            MIB: CPQHLTH-MIB
            The overall condition. This object represents the overall status of the server information represented by this MIB.
          valuemap:
            name: 'CPQSINFO-MIB::status'
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: e9bf032edb2e45f0b64cb904bf8d8403
              expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              name: 'HPE ProLiant DL380: System status is in critical state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: HIGH
              description: 'Please check the device for errors.'
              tags:
                - tag: scope
                  value: available
            - uuid: 537c411a3d454a8b9dc64378e0e9a6cd
              expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.WARN}'
              name: 'HPE ProLiant DL380: System status is in warning state'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Please check the device for warnings.'
              dependencies:
                - name: 'HPE ProLiant DL380: System status is in critical state'
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.status[cpqHeMibCondition])={$HEALTH.STATUS.CRIT}'
              tags:
                - tag: scope
                  value: available
        - uuid: 1170728f4f534d19acfa001d1b00dcc4
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items.'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: 53bf83d6a797436da2d1d8498410a113
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          valuemap:
            name: zabbix.host.available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
          tags:
            - tag: component
              value: health
            - tag: component
              value: system
          triggers:
            - uuid: 97c3665497ae46eb91d81c14c5f4ac06
              expression: 'max(/HPE ProLiant DL380 by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'HPE ProLiant DL380: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              tags:
                - tag: scope
                  value: available
      discovery_rules:
        - uuid: 43aa549fc1584a68a9d86375aa491b41
          name: 'Array controller cache discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#CACHE_STATUS},1.3.6.1.4.1.232.3.2.2.2.1.2,{#CACHE_CNTRL_INDEX},1.3.6.1.4.1.232.3.2.2.2.1.1]'
          key: array.cache.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaAccelTable'
          item_prototypes:
            - uuid: 11c4de648fe041c288ca7bcf062df6e4
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller battery status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module Board Backup Power Status. This monitors the status of each backup power source on the board.
                The backup power source can only recharge when the system has power applied. The type of backup power source used is indicated by cpqDaAccelBackupPowerSource.
                The following values are valid:
                Other (1)  Indicates that the instrument agent does not recognize  backup power status.  You may need to update your software.
                
                Ok (2)  The backup power source is fully charged.
                
                Recharging (3)  The array controller has one or more cache module backup power  sources that are recharging.
                Cache module operations such as Battery/Flash Backed Write Cache, Expansion, Extension and Migration are temporarily suspended until the backup power source is fully charged.
                Cache module operations will automatically resume  when charging is complete.
                
                Failed (4)  The battery pack is below the sufficient voltage level and  has not recharged in 36 hours.
                Your Cache Module board  needs to be serviced.
                
                Degraded (5)  The battery is still operating, however, one of the batteries  in the pack has failed to recharge properly.
                Your Cache  Module board should be serviced as soon as possible.
                
                NotPresent (6)  A backup power source is not present on the cache module board. Some controllers do not have backup power sources.
                
                Capacitor Failed (7)  The flash backed cache module capacitor is below the sufficient voltage level and has not recharged in 10 minutes.  Your Cache Module board needs to be serviced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelBattery'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 4eb29401f4c7400ca87bb2449eb0f8e2
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 0378b7339a3d482ea92f523f3d84c498
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
                  name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller battery is in critical state'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.battery.status[cpqDaAccelBattery.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 941ef3a8d3994186b16a1a82aed3649b
              name: '#{#CACHE_CNTRL_INDEX}: Disk array cache controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.2.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Cache Module/Operations Status. This describes the status of the cache module and/or cache operations.
                Note that for some controller models, a cache module board that physically attaches to the controller or chipset may not be an available option.
                
                The status can be:
                Other (1)
                 Indicates that the instrument agent does not recognize the status of the cache module. You may need to upgrade the instrument agent.
                
                Invalid (2)
                 Indicates that a cache module board has not been installed in this system or is present but not configured.
                
                Enabled (3)
                 Indicates that cache operations are currently configured and enabled for at least one logical drive.
                
                Temporarily Disabled (4)
                 Indicates that cache operations have been temporarily disabled. View the cache module board error code object to determine why the write cache operations have been temporarily disabled.
                
                Permanently Disabled (5)
                 Indicates that cache operations have been permanently disabled. View the cache module board error code object to determine why the write cache operations have been disabled.
                
                Cache Module Flash Memory Not Attached (6)
                 Indicates that the flash memory component of the flash backed cache module is not attached. This status will be set when the flash memory is not attached and the Supercap is attached. This value is only used on flash backed cache modules that support removable flash memory.
                
                Cache Module Degraded Failsafe Speed (7)
                 Indicates that the cache module board is currently degraded and operating at a failsafe speed. View variables cpqDaCacheMemoryDataWidth and cpqDaCacheMemoryTransferRate to obtain the cache module board`s current memory data width and memory transfer rate.
                
                Cache Module Critical Failure (8)
                 Indicates that the cache module board has encountered a critical failure. The controller is currently operating in Zero Memory Raid mode.
                
                Read Cache Could Not Be Mapped (9)
                 Indicates that the read cache memory in a split cache configuration could not be mapped by the operating system and as a result is not available. This status may be caused by virtual space limitations in certain operating systems and is only applicable to B-Series controllers.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaAccelStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 26955f1b216a493c9faa95b95359aa79
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: fc24efc3b41f410e9b0e806692f3dcf6
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                  tags:
                    - tag: scope
                      value: available
                - uuid: d5a1edb8f9ea46f08344a07a84bd8865
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"} and last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])<>{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
                  name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is not in optimal state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in critical state!'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
                    - name: 'HPE ProLiant DL380: #{#CACHE_CNTRL_INDEX}: Disk array cache controller is in warning state'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.cache.status[cpqDaAccelStatus.{#SNMPINDEX}])={$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: b35b69931e57486dbb40116512fd1242
          name: 'Array controller discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.2.1.1.1,{#CNTLR_SLOT},1.3.6.1.4.1.232.3.2.2.1.1.5,{#CNTLR_LOCATION},1.3.6.1.4.1.232.3.2.2.1.1.20]'
          key: array.discovery
          delay: 1h
          description: 'Scanning table of Array controllers: CPQIDA-MIB::cpqDaCntlrTable'
          item_prototypes:
            - uuid: db28dbd324304d07b20de5055d158c82
              name: '{#CNTLR_LOCATION}: Disk array controller model'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.2.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.model[cpqDaCntlrModel.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Array Controller Model. The type of controller card.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaCntlrModel'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
            - uuid: 114e43daf33d4842aa435031aca2bf22
              name: '{#CNTLR_LOCATION}: Disk array controller status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.2.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                This value represents the overall condition of this controller,
                and any associated logical drives, physical drives, and array accelerators.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: diskarray
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 0e57c741a6d248b69cdc70b75fc63a0f
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the device for faults.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 4a66354e25c949d4aaaad02114f09e44
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.WARN}'
                  name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the device for faults.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: {#CNTLR_LOCATION}: Disk array controller is in critical state'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.diskarray.status[cpqDaCntlrCondition.{#SNMPINDEX}])={$DISK.ARRAY.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 850b34fb782e463a9a0fe75336c166f7
          name: 'FAN discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.7.1.9]'
          key: fan.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolFanCondition'
          item_prototypes:
            - uuid: f33c7ee5675f4f35ae6e781c693e03c4
              name: 'Fan {#SNMPINDEX}: Fan status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.7.1.9.{#SNMPINDEX}]'
              key: 'hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the fan.
                This value will be one of the following:
                other(1)  Fan status detection is not supported by this system or driver.
                ok(2)  The fan is operating properly.
                degraded(2)  A redundant fan is not operating properly.
                failed(4)  A non-redundant fan is not operating properly.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: fan
              trigger_prototypes:
                - uuid: f246a5184ea94ae3a793efec27998d5f
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the fan unit.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: ba7f63e795764d77aae0b7ce62a19514
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.WARN}'
                  name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the fan unit.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: Fan {#SNMPINDEX}: Fan is in critical state'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.fan.status[cpqHeFltTolFanCondition.{#SNMPINDEX}])={$FAN.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 647156a1894340a88bd6eb08c9ee60b6
          name: 'Network interface discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#ADAPTER_INDEX},1.3.6.1.4.1.232.18.2.3.1.1.1,{#ADAPTER_NAME},1.3.6.1.4.1.232.18.2.3.1.1.39]'
          key: net.if.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqNicIfPhysAdapterTable'
          item_prototypes:
            - uuid: 2b3d5fc665744319b247261f301ec5e9
              name: '{#ADAPTER_NAME} port {#ADAPTER_INDEX}: Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.18.2.3.1.1.14.{#SNMPINDEX}]'
              key: 'hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}]'
              description: |
                MIB: CPQNIC-MIB
                The physical adapter status. The following values are valid:
                unknown(1)
                  The instrument agent was not able to determine the status of the adapter. The instrument agent may need to be upgraded.
                ok(2)
                  The physical adapter is operating properly.
                generalFailure(3)
                  The physical adapter has failed.
                linkFailure(4)
                  The physical adapter has lost link. Check the cable connections to this adapter.
              valuemap:
                name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: network
              trigger_prototypes:
                - uuid: 917ab8f90c3e43b887eb7fd851cf3b25
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check the physical adapter.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 51bb602b67624c5d932109a5e04068d3
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=4'
                  name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has lost link'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the cable connections to this adapter.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: {#ADAPTER_NAME} port {#ADAPTER_INDEX}: Adapter has failed'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.net.if.status[cpqNicIfPhysAdapterStatus.{#SNMPINDEX}])=3'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: b4c4a7f18ef44003acbccfc274f76a2d
          name: 'Physical disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.5.1.1.5,{#DISK_LOCATION},1.3.6.1.4.1.232.3.2.5.1.1.64]'
          key: physicaldisk.discovery
          delay: 1h
          description: 'Scanning  table of physical drive entries CPQIDA-MIB::cpqDaPhyDrvTable.'
          item_prototypes:
            - uuid: d5b6315a3faf471baa20b7a0a0d6691b
              name: '{#DISK_LOCATION}: Physical disk media type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.69.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.media_type[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Drive Array Physical Drive Media Type. The following values are defined:
                other(1)  The instrument agent is unable to determine the physical drive's media type.
                rotatingPlatters(2)  The physical drive media is composed of rotating platters.
                solidState(3)  The physical drive media is composed of solid state electronics.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: 8d04fc4ffec947c5ad53d037c038ed1d
              name: '{#DISK_LOCATION}: Physical disk model name'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.model[cpqDaPhyDrvModel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Model. This is a text description of the physical drive.
                The text that appears depends upon who manufactured the drive and the drive type.
                If a drive fails, note the model to identify the type of drive necessary for replacement.
                If a model number is not present, you may not have properly initialized the drive array to which the physical drive is attached for monitoring.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: aa090bf031f444508eae9c853cac1109
              name: '{#DISK_LOCATION}: Physical disk serial number'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.51.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Serial Number.
                This is the serial number assigned to the physical drive.
                This value is based upon the serial number as returned by the SCSI inquiry command
                but may have been modified due to space limitations.  This can be used for identification purposes.
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 2b173fa3eec941e3b3d73c732740e210
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#1)<>last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}],#2) and length(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.serialnumber[cpqDaPhyDrvSerialNum.{#SNMPINDEX}]))>0'
                  name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Disk has been replaced'
                  event_name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Disk has been replaced (new serial number received)'
                  priority: INFO
                  description: 'Disk serial number has changed. Acknowledge to close the problem manually.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
            - uuid: 3c4c4e680bb943c3a172e0e3e049aa8b
              name: '{#DISK_LOCATION}: Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.45.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.size[cpqDaPhyDrvMediaType.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Size in MB.
                This is the size of the physical drive in megabytes.
                This value is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a megabyte when giving drive capacities so this value may differ
                from the advertised size of a drive. This field is only applicable for controllers which support SCSI drives,
                and therefore is not supported by the IDA or IDA-2 controllers. The field will contain 0xFFFFFFFF if the drive capacity cannot be calculated
                or if the controller does not support SCSI drives.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
            - uuid: d4b7c6cb7c3d4c46a92028e80b564bf5
              name: '{#DISK_LOCATION}: Physical disk S.M.A.R.T. status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.57.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive S.M.A.R.T Status. The following values are defined:
                other(1)  The agent is unable to determine if the status of S.M.A.R.T  predictive failure monitoring for this drive.
                ok(2)  Indicates the drive is functioning properly.
                replaceDrive(3)  Indicates that the drive has a S.M.A.R.T predictive failure  error and should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 531875c8a5f54ca8ad2dabfa8a47b36b
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDrive"} or last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.smart_status[cpqDaPhyDrvSmartStatus.{#SNMPINDEX}])={$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
                  name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk S.M.A.R.T. failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Disk probably requires replacement.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 609c79d9a89e46778bc7c419a31db26b
              name: '{#DISK_LOCATION}: Physical disk status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.5.1.1.6.{#SNMPINDEX}]'
              key: 'hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQIDA-MIB
                Physical Drive Status. This shows the status of the physical drive. The following values are valid for the physical drive status:
                other (1)  Indicates that the instrument agent does not recognize  the drive.
                You may need to upgrade your instrument agent  and/or driver software.
                ok (2)  Indicates the drive is functioning properly.
                failed (3)  Indicates that the drive is no longer operating and  should be replaced.
                predictiveFailure(4)  Indicates that the drive has a predictive failure error and  should be replaced.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: physicaldisk
                - tag: component
                  value: storage
              trigger_prototypes:
                - uuid: 12eac58ddff14f7dbbdba48eca464a5f
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed'
                  opdata: 'Current status: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check physical disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 977a4d4fb6604877a0f02bb2455691c4
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.WARN}'
                  name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check physical disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: {#DISK_LOCATION}: Physical disk failed'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.physicaldisk.status[cpqDaPhyDrvStatus.{#SNMPINDEX}])={$DISK.STATUS.FAIL}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 8e0a11054b46479c9124d03c89967618
          name: 'PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.9.3.1.5,{#CHASSIS_NUM},1.3.6.1.4.1.232.6.2.9.3.1.1,{#BAY_NUM},1.3.6.1.4.1.232.6.2.9.3.1.2]'
          key: psu.discovery
          delay: 1h
          description: 'CPQHLTH-MIB::cpqHeFltTolPowerSupplyStatus'
          item_prototypes:
            - uuid: a86478d1584640f784e984ff90768cfa
              name: 'Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.9.3.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: CPQHLTH-MIB
                The condition of the power supply. This value will be one of the following:
                other(1)  The status could not be determined or not present.
                ok(2)  The power supply is operating normally.
                degraded(3)  A temperature sensor, fan or other power supply component is  outside of normal operating range.
                failed(4)  A power supply component detects a condition that could  permanently damage the system.
              valuemap:
                name: 'CPQSINFO-MIB::status'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
              trigger_prototypes:
                - uuid: b42e415d5eb941989daaed3d1ac2e762
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Please check the power supply unit for errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: d5b8b12a72934bcfb7ad6675a68a5297
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.WARN}'
                  name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in warning state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check the power supply unit for errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: Chassis {#CHASSIS_NUM}, bay {#BAY_NUM}: Power supply is in critical state'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.psu.status[cpqHeFltTolPowerSupplyCondition.{#SNMPINDEX}])={$PSU.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 718aebe90d154170b6d05d5fc97ac024
          name: 'Temperature ambient discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.ambient.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '11'
              - macro: '{#SNMPINDEX}'
                value: 0\.1
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ambient(11) and 0.1 index filter
          item_prototypes:
            - uuid: 8d413e8e6aa54c2a94c3c59fd5190ced
              name: 'Ambient: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 1af0ddbc9ffd43b2b6800d634d8186bb
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: Ambient: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: c49e51ac10c941798213d0f086e0631f
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: Ambient: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: b1cfbc1702f54670b3f486da26c4887b
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Ambient.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: Ambient: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 29afae6dceac4eadbd7a0d67029e602c
              name: 'Ambient: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Ambient.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Ambient
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 79e388de30c64430ac9f15f94cf8fec2
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.cpu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '6'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with cpu(6) filter
          item_prototypes:
            - uuid: 9d6e722dc01649199a8891d663b37f00
              name: 'CPU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 039ab34804f446e580b779d1ab25ed4f
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 2cf8b917076440aa8209938cec69b905
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: cf69b02334e541b7a912a14c182dd56a
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.CPU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: CPU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 5bafde0dc89d483786cff3b1121fca55
              name: 'CPU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.CPU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: CPU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: cpu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: ee9de30ee97842fe801118cb42b92ab9
          name: 'Temperature discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: (4|8|9|12|13)
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable
          item_prototypes:
            - uuid: d3a32885e1c24b3688d768236d930dab
              name: '{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 6d7eb6bd348b43a2b584ceb1694c8bce
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: {#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 43911269576b435db928e83901a16c5a
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: {#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: b26842b776c545449354ccafb809d115
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: {#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: cd6b1ba3a2174a879a00507ce843acaa
              name: '{#SNMPINDEX}: Temperature sensor location'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.3.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.locale[cpqHeTemperatureLocale.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                This specifies the location of the temperature sensor present in the system.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
            - uuid: 1a9d8b9409e243c9b25ff434271d0049
              name: '{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: {#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 725c3cf3a398494faf3f330fb25a146c
          name: 'Temperature I/O discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.io.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '5'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with ioBoard(5) filter
          item_prototypes:
            - uuid: 893efbae4cfa49dbae9fb6707e142cc1
              name: 'I/O-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: c8f2ef7311804357bff65d2d5c7f5d90
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 1'
                  name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: dda9f8bf4a094b69bb30affb26e23dd3
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 4'
                  name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: a0220dea091d4aca8d68a21a3d976496
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition."I/O.{#SNMPINDEX}"]) = 3'
                  name: 'HPE ProLiant DL380: I/O-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 155afcc02e0443539683c193792c1770
              name: 'I/O-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius."I/O.{#SNMPINDEX}"]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: I/O-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 353c1660698744608f0e67b4cd27f0b3
          name: 'Temperature memory discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.memory.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '7'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with memory(7) filter
          item_prototypes:
            - uuid: af4c1659d5ca4c07978baea386694989
              name: 'Memory-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: eca9c54385084934b88f4dc9d914b2e2
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 70b139e0c8c644918c7f01cd09604078
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 89aab6bad94e4d188475d6e36084593e
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.Memory.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: Memory-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 400b357139a945c38cf222c5c1ce25cd
              name: 'Memory-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.Memory.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: Memory-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: memory
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: e34420d2583145feafb4d89d010e067f
          name: 'Temperature PSU discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.psu.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '10'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with powerSupply(10) filter
          item_prototypes:
            - uuid: d1552a2c2238453aa1d376482aaf2d1b
              name: 'PSU-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: e792b530014d45b6ac7fc819db776c37
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 803317e9eaf04b519e63b7d1b9bfd610
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 98616a3bae174922a0108b7c90339f08
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.PSU.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: PSU-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 146bf385738444bfb7faa60b073865f5
              name: 'PSU-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.PSU.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: PSU-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: psu
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 043c4fa05fcb4bf7917cf56c2513fbdd
          name: 'Temperature system discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.6.2.6.8.1.1,{#SENSOR_LOCALE},1.3.6.1.4.1.232.6.2.6.8.1.3]'
          key: temp.system.discovery
          delay: 1h
          filter:
            conditions:
              - macro: '{#SENSOR_LOCALE}'
                value: '3'
          description: |
            Scanning table of Temperature Sensor Entries:
            CPQHLTH-MIB::cpqHeTemperatureTable with system(3) filter
          item_prototypes:
            - uuid: 7b7b07d52c144d23901ad9f636fca521
              name: 'System-{#SNMPINDEX}: Temperature sensor condition'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.6.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]'
              description: |
                MIB: CPQHLTH-MIB
                The Temperature sensor condition.
                This value will be one of the following:
                other(1)
                  Temperature could not be determined.
                ok(2)
                  The temperature sensor is within normal operating range.
                degraded(3)
                  The temperature sensor is outside of normal operating range.
                failed(4)
                  The temperature sensor detects a condition that could
                  permanently damage the system.
                The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.  If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.
              valuemap:
                name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 2a0503b359904c71b355cb9e3da1b8fa
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 1'
                  name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: Temperature could not be determined'
                  priority: INFO
                  description: 'Temperature could not be determined.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: notice
                - uuid: 09287730b82a47c4b365c09047d0b8e2
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 4'
                  name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: The temperature sensor detects a condition that could permanently damage the system.'
                  priority: HIGH
                  description: 'The system will automatically shutdown if the failed(4) condition results, so it is unlikely that this value will ever be returned by the agent.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 5c7097cb91184a619fee33bd4faa296b
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.sensor.temp.condition[cpqHeTemperatureCondition.System.{#SNMPINDEX}]) = 3'
                  name: 'HPE ProLiant DL380: System-{#SNMPINDEX}: The temperature sensor is outside of normal operating range'
                  priority: WARNING
                  description: 'If the cpqHeThermalDegradedAction is set to shutdown(3) the system will be shutdown if the degraded(3) condition occurs.'
                  tags:
                    - tag: scope
                      value: available
            - uuid: 33793b349df841c1aa46fada307e4427
              name: 'System-{#SNMPINDEX}: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.6.2.6.8.1.4.{#SNMPINDEX}]'
              key: 'hp.server.sensor.temp.value[cpqHeTemperatureCelsius.System.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: CPQHLTH-MIB
                Temperature readings of testpoint: System-{#SNMPINDEX}
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: temperature
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
        - uuid: 2fa5e2604e5649cca3f04c759dfe2321
          name: 'Virtual disk discovery'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},1.3.6.1.4.1.232.3.2.3.1.1.2,{#DISK_NAME},1.3.6.1.4.1.232.3.2.3.1.1.14]'
          key: virtualdisk.discovery
          delay: 1h
          description: 'CPQIDA-MIB::cpqDaLogDrvTable'
          item_prototypes:
            - uuid: a77031074aed4314b5b825c565f0ed67
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Layout type'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.3.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.layout[cpqDaLogDrvFaultTol.{#SNMPINDEX}]'
              description: |
                Logical Drive Fault Tolerance.
                This shows the fault tolerance mode of the logical drive.
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 33e1ea62016846b5ab97263605c4dcc5
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Disk size'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.9.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.size[cpqDaLogDrvSize.{#SNMPINDEX}]'
              trends: '0'
              units: B
              description: |
                Logical Drive Size.
                This is the size of the logical drive in megabytes.  This value
                is calculated using the value 1,048,576 (2^20) as a megabyte.
                Drive manufacturers sometimes use the number 1,000,000 as a
                megabyte when giving drive capacities so this value may
                differ from the advertised size of a drive.
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '1048576'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
            - uuid: 783532d2de814096ac0ce9b36c5d2552
              name: 'Disk {#SNMPINDEX}({#DISK_NAME}): Status'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.232.3.2.3.1.1.4.{#SNMPINDEX}]'
              key: 'hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}]'
              description: 'Logical Drive Status.'
              valuemap:
                name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
              preprocessing:
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 6h
              tags:
                - tag: component
                  value: storage
                - tag: component
                  value: virtualdisk
              trigger_prototypes:
                - uuid: a59f9e473b7a4afd900edce47b11443d
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'Please check virtual disk for warnings or errors.'
                  tags:
                    - tag: scope
                      value: available
                - uuid: 776bff7fb02e4948be7d81347c0c8624
                  expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])<>{$VDISK.STATUS.OK}'
                  name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk is not in OK state'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Please check virtual disk for warnings or errors.'
                  dependencies:
                    - name: 'HPE ProLiant DL380: Disk {#SNMPINDEX}({#DISK_NAME}): Virtual disk failed'
                      expression: 'last(/HPE ProLiant DL380 by SNMP/hp.server.hw.virtualdisk.status[cpqDaLogDrvStatus.{#SNMPINDEX}])={$VDISK.STATUS.CRIT}'
                  tags:
                    - tag: scope
                      value: available
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
      tags:
        - tag: class
          value: hardware
        - tag: subclass
          value: server
        - tag: target
          value: hp
        - tag: target
          value: hp-dl380
      macros:
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"capacitorFailed"}'
          value: '7'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Disk array cash battery critical status (capacitorFailed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.CRIT:"failed"}'
          value: '4'
          description: 'The critical status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '15'
            section_name: Other
            label: 'Disk array cash battery critical status (failed)'
            description: 'The critical status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"degraded"}'
          value: '5'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '17'
            section_name: Other
            label: 'Disk array cash battery warning status (degraded)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.BATTERY.STATUS.WARN:"notPresent"}'
          value: '6'
          description: 'The warning status of the disk array cache battery for trigger expression.'
          config:
            type: TEXT
            priority: '18'
            section_name: Other
            label: 'Disk array cash battery warning status (notPresent)'
            description: 'The warning status of the disk array cache battery for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.CRIT:"cacheModCriticalFailure"}'
          value: '8'
          description: 'The critical status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '9'
            section_name: Other
            label: 'Disk array cash critical status'
            description: 'The critical status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.OK:"enabled"}'
          value: '3'
          description: 'The normal status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Other
            label: 'Disk array cash OK status'
            description: 'The normal status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModDegradedFailsafeSpeed"}'
          value: '7'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '11'
            section_name: Other
            label: 'Disk array cash warning status (degraded)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheModFlashMemNotAttached"}'
          value: '6'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Other
            label: 'Disk array cash warning status (not attached)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"cacheReadCacheNotMapped"}'
          value: '9'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Other
            label: 'Disk array cash warning status (not mapped)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.CACHE.STATUS.WARN:"invalid"}'
          value: '2'
          description: 'The warning status of the disk array cache for trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Other
            label: 'Disk array cash warning status (invalid)'
            description: 'The warning status of the disk array cache for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '7'
            section_name: Other
            label: 'Disk array critical status'
            description: 'The critical status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.ARRAY.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the disk array for trigger expression.'
          config:
            type: TEXT
            priority: '8'
            section_name: Other
            label: 'Disk array warning status'
            description: 'The warning status of the disk array for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDrive"}'
          value: '3'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '23'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDrive)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.SMART.STATUS.FAIL:"replaceDriveSSDWearOut"}'
          value: '4'
          description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '24'
            section_name: Other
            label: 'Disk S.M.A.R.T critical status (replaceDriveSSDWearOut)'
            description: 'The critical S.M.A.R.T status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.FAIL}'
          value: '3'
          description: 'The critical status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '22'
            section_name: Other
            label: 'Disk critical status'
            description: 'The critical status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$DISK.STATUS.WARN}'
          value: '4'
          description: 'The warning status of the disk for trigger expression.'
          config:
            type: TEXT
            priority: '21'
            section_name: Other
            label: 'Disk warning status'
            description: 'The warning status of the disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '5'
            section_name: Other
            label: 'Fan critical status'
            description: 'The critical value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$FAN.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the FAN sensor for trigger expression.'
          config:
            type: TEXT
            priority: '6'
            section_name: Other
            label: 'Fan warning status'
            description: 'The warning value of the FAN sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.CRIT}'
          value: '4'
          description: 'The critical status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '1'
            section_name: Other
            label: 'Health critical status'
            description: 'The critical status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$HEALTH.STATUS.WARN}'
          value: '3'
          description: 'The warning status of the health for trigger expression.'
          config:
            type: TEXT
            priority: '2'
            section_name: Other
            label: 'Health warning status'
            description: 'The warning status of the health for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.CRIT}'
          value: '4'
          description: 'The critical value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '3'
            section_name: Other
            label: 'PSU critical status'
            description: 'The critical value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$PSU.STATUS.WARN}'
          value: '3'
          description: 'The warning value of the PSU sensor for trigger expression.'
          config:
            type: TEXT
            priority: '4'
            section_name: Other
            label: 'PSU warning status'
            description: 'The warning value of the PSU sensor for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'The time interval for SNMP agent availability trigger expression.'
          config:
            type: TEXT
            priority: '25'
            section_name: Other
            label: 'Time interval'
            description: 'The time interval for SNMP agent availability trigger expression.'
        - macro: '{$VDISK.STATUS.CRIT}'
          value: '3'
          description: 'The critical status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '19'
            section_name: Other
            label: 'Virtual disk critical status'
            description: 'The critical status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VDISK.STATUS.OK}'
          value: '2'
          description: 'The normal status of the virtual disk for trigger expression.'
          config:
            type: TEXT
            priority: '20'
            section_name: Other
            label: 'Virtual disk OK status'
            description: 'The normal status of the virtual disk for trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      valuemaps:
        - uuid: 5655717fa32f4711b3062b97f1e5895b
          name: 'CPQHLTH-MIB::cpqHeTemperatureCondition'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: ae1477baf3c046cbb5519346f28c7017
          name: 'CPQHLTH-MIB::cpqHeTemperatureLocale'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: unknown
            - value: '3'
              newvalue: system
            - value: '4'
              newvalue: systemBoard
            - value: '5'
              newvalue: ioBoard
            - value: '6'
              newvalue: cpu
            - value: '7'
              newvalue: memory
            - value: '8'
              newvalue: storage
            - value: '9'
              newvalue: removableMedia
            - value: '10'
              newvalue: powerSupply
            - value: '11'
              newvalue: ambient
            - value: '12'
              newvalue: chassis
            - value: '13'
              newvalue: bridgeCard
        - uuid: af8340b5070f47e085eb91eb4580d728
          name: 'CPQIDA-MIB::cpqDaAccelBattery'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: Ok
            - value: '3'
              newvalue: Recharging
            - value: '4'
              newvalue: Failed
            - value: '5'
              newvalue: Degraded
            - value: '6'
              newvalue: 'Not Present'
            - value: '7'
              newvalue: 'Capacitor failed'
        - uuid: 4c4378c0d1af4a6693f8c03bfaa9ad40
          name: 'CPQIDA-MIB::cpqDaAccelStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: invalid
            - value: '3'
              newvalue: enabled
            - value: '4'
              newvalue: tmpDisabled
            - value: '5'
              newvalue: permDisabled
            - value: '6'
              newvalue: cacheModFlashMemNotAttached
            - value: '7'
              newvalue: cacheModDegradedFailsafeSpeed
            - value: '8'
              newvalue: cacheModCriticalFailure
            - value: '9'
              newvalue: cacheReadCacheNotMapped
        - uuid: 23a855763fc346ea8a3559399ffa7428
          name: 'CPQIDA-MIB::cpqDaCntlrModel'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ida
            - value: '3'
              newvalue: idaExpansion
            - value: '4'
              newvalue: ida-2
            - value: '5'
              newvalue: smart
            - value: '6'
              newvalue: smart-2e
            - value: '7'
              newvalue: smart-2p
            - value: '8'
              newvalue: smart-2sl
            - value: '9'
              newvalue: smart-3100es
            - value: '10'
              newvalue: smart-3200
            - value: '11'
              newvalue: smart-2dh
            - value: '12'
              newvalue: smart-221
            - value: '13'
              newvalue: sa-4250es
            - value: '14'
              newvalue: sa-4200
            - value: '15'
              newvalue: sa-integrated
            - value: '16'
              newvalue: sa-431
            - value: '17'
              newvalue: sa-5300
            - value: '18'
              newvalue: raidLc2
            - value: '19'
              newvalue: sa-5i
            - value: '20'
              newvalue: sa-532
            - value: '21'
              newvalue: sa-5312
            - value: '22'
              newvalue: sa-641
            - value: '23'
              newvalue: sa-642
            - value: '24'
              newvalue: sa-6400
            - value: '25'
              newvalue: sa-6400em
            - value: '26'
              newvalue: sa-6i
            - value: '27'
              newvalue: sa-generic
            - value: '29'
              newvalue: sa-p600
            - value: '30'
              newvalue: sa-p400
            - value: '31'
              newvalue: sa-e200
            - value: '32'
              newvalue: sa-e200i
            - value: '33'
              newvalue: sa-p400i
            - value: '34'
              newvalue: sa-p800
            - value: '35'
              newvalue: sa-e500
            - value: '36'
              newvalue: sa-p700m
            - value: '37'
              newvalue: sa-p212
            - value: '38'
              newvalue: sa-p410
            - value: '39'
              newvalue: sa-p410i
            - value: '40'
              newvalue: sa-p411
            - value: '41'
              newvalue: sa-b110i
            - value: '42'
              newvalue: sa-p712m
            - value: '43'
              newvalue: sa-p711m
            - value: '44'
              newvalue: sa-p812
            - value: '45'
              newvalue: sw-1210m
            - value: '46'
              newvalue: sa-p220i
            - value: '47'
              newvalue: sa-p222
            - value: '48'
              newvalue: sa-p420
            - value: '49'
              newvalue: sa-p420i
            - value: '50'
              newvalue: sa-p421
            - value: '51'
              newvalue: sa-b320i
            - value: '52'
              newvalue: sa-p822
            - value: '53'
              newvalue: sa-p721m
            - value: '54'
              newvalue: sa-b120i
            - value: '55'
              newvalue: hps-1224
            - value: '56'
              newvalue: hps-1228
            - value: '57'
              newvalue: hps-1228m
            - value: '58'
              newvalue: sa-p822se
            - value: '59'
              newvalue: hps-1224e
            - value: '60'
              newvalue: hps-1228e
            - value: '61'
              newvalue: hps-1228em
            - value: '62'
              newvalue: sa-p230i
            - value: '63'
              newvalue: sa-p430i
            - value: '64'
              newvalue: sa-p430
            - value: '65'
              newvalue: sa-p431
            - value: '66'
              newvalue: sa-p731m
            - value: '67'
              newvalue: sa-p830i
            - value: '68'
              newvalue: sa-p830
            - value: '69'
              newvalue: sa-p831
            - value: '70'
              newvalue: sa-p530
            - value: '71'
              newvalue: sa-p531
            - value: '72'
              newvalue: sa-p244br
            - value: '73'
              newvalue: sa-p246br
            - value: '74'
              newvalue: sa-p440
            - value: '75'
              newvalue: sa-p440ar
            - value: '76'
              newvalue: sa-p441
            - value: '77'
              newvalue: sa-p741m
            - value: '78'
              newvalue: sa-p840
            - value: '79'
              newvalue: sa-p841
            - value: '80'
              newvalue: sh-h240ar
            - value: '81'
              newvalue: sh-h244br
            - value: '82'
              newvalue: sh-h240
            - value: '83'
              newvalue: sh-h241
            - value: '84'
              newvalue: sa-b140i
            - value: '85'
              newvalue: sh-generic
            - value: '86'
              newvalue: sa-p240nr
            - value: '87'
              newvalue: sh-h240nr
            - value: '88'
              newvalue: sa-p840ar
            - value: '89'
              newvalue: sa-p542d
            - value: '90'
              newvalue: s100i
            - value: '91'
              newvalue: e208i-p
            - value: '92'
              newvalue: e208i-a
            - value: '93'
              newvalue: e208i-c
            - value: '94'
              newvalue: e208e-p
            - value: '95'
              newvalue: p204i-b
            - value: '96'
              newvalue: p204i-c
            - value: '97'
              newvalue: p408i-p
            - value: '98'
              newvalue: p408i-a
            - value: '99'
              newvalue: p408e-p
            - value: '100'
              newvalue: p408i-c
            - value: '101'
              newvalue: p408e-m
            - value: '102'
              newvalue: p416ie-m
            - value: '103'
              newvalue: p816i-a
            - value: '104'
              newvalue: p408i-sb
        - uuid: 87ad87e768bc4d8ab77841e29176c36f
          name: 'CPQIDA-MIB::cpqDaLogDrvFaultTol'
          mappings:
            - value: '0'
              newvalue: other
            - value: '2'
              newvalue: none
            - value: '3'
              newvalue: RAID-1/RAID-10
            - value: '4'
              newvalue: RAID-4
            - value: '5'
              newvalue: RAID-5
            - value: '7'
              newvalue: RAID-6
            - value: '8'
              newvalue: RAID-50
            - value: '9'
              newvalue: RAID-60
            - value: '10'
              newvalue: 'RAID-1 ADM'
            - value: '11'
              newvalue: 'RAID-10 ADM'
        - uuid: 46a2f599d46d438899ea4d8c552f51b4
          name: 'CPQIDA-MIB::cpqDaLogDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: unconfigured
            - value: '5'
              newvalue: recovering
            - value: '6'
              newvalue: readyForRebuild
            - value: '7'
              newvalue: rebuilding
            - value: '8'
              newvalue: wrongDrive
            - value: '9'
              newvalue: badConnect
            - value: '10'
              newvalue: overheating
            - value: '11'
              newvalue: shutdown
            - value: '12'
              newvalue: expanding
            - value: '13'
              newvalue: notAvailable
            - value: '14'
              newvalue: queuedForExpansion
            - value: '15'
              newvalue: multipathAccessDegraded
            - value: '16'
              newvalue: erasing
            - value: '17'
              newvalue: predictiveSpareRebuildReady
            - value: '18'
              newvalue: rapidParityInitInProgress
            - value: '19'
              newvalue: rapidParityInitPending
            - value: '20'
              newvalue: noAccessEncryptedNoCntlrKey
            - value: '21'
              newvalue: unencryptedToEncryptedInProgress
            - value: '22'
              newvalue: newLogDrvKeyRekeyInProgress
            - value: '23'
              newvalue: noAccessEncryptedCntlrEncryptnNotEnbld
            - value: '24'
              newvalue: unencryptedToEncryptedNotStarted
            - value: '25'
              newvalue: newLogDrvKeyRekeyRequestReceived
        - uuid: 5f6868416f454beba585a0d2e9038117
          name: 'CPQIDA-MIB::cpqDaPhyDrvMediaType'
          mappings:
            - value: '1'
              newvalue: Other
            - value: '2'
              newvalue: rotatingPlatters
            - value: '3'
              newvalue: solidState
        - uuid: f78e361d31d94c479594b9d73257f80a
          name: 'CPQIDA-MIB::cpqDaPhyDrvSmartStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: replaceDrive
            - value: '4'
              newvalue: replaceDriveSSDWearOut
        - uuid: 0efa6b7ed90f4edebc3282af5dbaf6c4
          name: 'CPQIDA-MIB::cpqDaPhyDrvStatus'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: failed
            - value: '4'
              newvalue: predictiveFailure
        - uuid: 1d312bcad99c43b8931fb128f6250afa
          name: 'CPQNIC-MIB::cpqNicIfPhysAdapterStatus'
          mappings:
            - value: '1'
              newvalue: unknown
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: generalFailure
            - value: '4'
              newvalue: linkFailure
        - uuid: 48e68c2789334818b5536be3f8628f66
          name: 'CPQSINFO-MIB::status'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: ok
            - value: '3'
              newvalue: degraded
            - value: '4'
              newvalue: failed
        - uuid: 1b63c6eea5fc42a99501408d603c158b
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 2506b0ca01884903b547b1e19b76ce6d
      template: 'Linux by Prom'
      name: 'Linux by Prom'
      description: |
        This template collects Linux metrics from node_exporter 0.18 and above. Support for older node_exporter versions is provided as 'best effort'.
        
        Setup:
        
        1. Set up the node_exporter according to the official documentation:
        https://prometheus.io/docs/guides/node-exporter/
        
        Use node_exporter v0.18.0 or above.
        
        2. Set the hostname or IP address of the node_exporter host in the '{$NODE_EXPORTER_HOST}' macro. You can also change the Prometheus endpoint port in the '{$NODE_EXPORTER_PORT}' macro if necessary.
        
        Known Issues:
        
          - Node Exporter 0.16.0 renamed many metrics. CPU utilization for "guest" and "guest_nice" metrics are not supported in this template with Node Exporter < 0.16. Disk IO metrics are not supported. Other metrics provided as best effort. See https://github.com/prometheus/node_exporter/releases/tag/v0.16.0 for details.
            - Version: below 0.16.0
          - Metric node_network_info with label 'device' cannot be found, so network discovery is not possible.
            - Version: below 0.18
        
        Notes on filesystem (FS) discovery:
          - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
          - BTRFS allocates a default of 10% of the volume for its own needs.
          - To mitigate potential disasters, FS usage triggers are based on the maximum available space.
            - Utilization formula: 'pused = 100 - 100 * (available / total - free + available)'
          - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This template collects Linux metrics from Node Exporter 0.18 and above. Support for older Node Exporter versions is provided as best effort.
        
        ### Known Issues
        
          - Node Exporter 0.16.0 renamed many metrics. CPU utilization for "guest" and "guest_nice" metrics are not supported in this template with Node Exporter < 0.16. Disk IO metrics are not supported. Other metrics provided as best effort. See https://github.com/prometheus/node_exporter/releases/tag/v0.16.0 for details.
            - Version: below 0.16.0
          - Metric node_network_info with label 'device' cannot be found, so network discovery is not possible.
            - Version: below 0.18
        
        #### Notes on filesystem (FS) discovery:
          - The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
          - BTRFS allocates a default of 10% of the volume for its own needs.
          - To mitigate potential disasters, FS usage triggers are based on the maximum available space.
            - Utilization formula: `pused = 100 - 100 * (available / total - free + available)`
          - The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
        
        ## Setup
        
        1. Set up the node_exporter according to the [`official documentation`](https://prometheus.io/docs/guides/node-exporter/). Use node_exporter v0.18.0 or above.
        
        2. Set the hostname or IP address of the node_exporter host in the `The node_exporter host` parameter. You can also change the Prometheus endpoint port in the `TCP Port node_exporter` parameter if necessary.
      vendor:
        name: Zabbix
        version: 8.0-1
      groups:
        - name: 'Templates/Operating systems'
      items:
        - uuid: 9a60d1e53caa4049a33aa52f3f55ad75
          name: 'Version of node_exporter running'
          type: DEPENDENT
          key: 'agent.version[node_exporter]'
          value_type: CHAR
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_exporter_build_info
                - label
                - version
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: application
        - uuid: d3631bd7effc4cd1bc45c991b3c3038f
          name: 'Number of open file descriptors'
          type: DEPENDENT
          key: 'fd.open[node_exporter]'
          value_type: FLOAT
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_filefd_allocated
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
        - uuid: a8b78e776e1d4011bbcb6dd54e32b40b
          name: 'Maximum number of open file descriptors'
          type: DEPENDENT
          key: 'kernel.maxfiles[node_exporter]'
          value_type: FLOAT
          description: 'May be increased by using `sysctl` utility or modifying the file `/etc/sysctl.conf`.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_filefd_maximum
                - value
                - ''
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: c0002ad071d7497ab32633c93624e0c2
              expression: 'last(/Linux by Prom/kernel.maxfiles[node_exporter])<{$KERNEL.MAXFILES.MIN}'
              name: 'Linux: Configured max number of open filedescriptors is too low'
              event_name: 'Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})'
              priority: INFO
              dependencies:
                - name: 'Linux: Running out of file descriptors'
                  expression: 'last(/Linux by Prom/fd.open[node_exporter])/last(/Linux by Prom/kernel.maxfiles[node_exporter])*100>80'
              tags:
                - tag: scope
                  value: performance
        - uuid: 8b2fffcba0b24ca8a687361645ffaa1d
          name: 'Get node_exporter metrics'
          type: HTTP_AGENT
          key: node_exporter.get
          history: 1h
          value_type: TEXT
          url: 'http://{$NODE_EXPORTER_HOST}:{$NODE_EXPORTER_PORT}/metrics'
          tags:
            - tag: component
              value: raw
          triggers:
            - uuid: e33fafc8476e404aa4150d0d491f4c83
              expression: 'nodata(/Linux by Prom/node_exporter.get,30m)=1'
              name: 'Linux: node_exporter is not available'
              event_name: 'Linux: node_exporter is not available (or no data for 30m)'
              priority: WARNING
              description: 'Failed to fetch system metrics from node_exporter in time.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: availability
        - uuid: 75afcb39d2d7496e9490cd14f1431600
          name: 'System boot time'
          type: DEPENDENT
          key: 'system.boottime[node_exporter]'
          value_type: FLOAT
          units: unixtime
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"^node_boot_time(?:_seconds)?$"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
        - uuid: a732c4df8af047fbb874e1fb363b5e9e
          name: 'CPU guest time'
          type: DEPENDENT
          key: 'system.cpu.guest[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time spent on running a virtual CPU for a guest operating system.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_guest_seconds_total)?$",cpu=~".+",mode=~"^(?:user|guest)$"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 759809ee6c9e43cf8ff44f987221a90e
          name: 'CPU guest nice time'
          type: DEPENDENT
          key: 'system.cpu.guest_nice[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'The time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_guest_seconds_total)?$",cpu=~".+",mode=~"^(?:nice|guest_nice)$"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 7bb99c606c6b497aaef279663b60829b
          name: 'CPU idle time'
          type: DEPENDENT
          key: 'system.cpu.idle[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent doing nothing.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="idle"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 4d3f64c79c684d55bcde14ca5bf3022a
          name: 'CPU interrupt time'
          type: DEPENDENT
          key: 'system.cpu.interrupt[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent servicing hardware interrupts.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="irq"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 76206cf435fd4a979dbbf74807b532de
          name: 'Interrupts per second'
          type: DEPENDENT
          key: 'system.cpu.intr[node_exporter]'
          value_type: FLOAT
          description: 'Number of interrupts processed.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_intr"}'
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 6a727e148a2c4956bcfb6de0a3486c2d
          name: 'CPU iowait time'
          type: DEPENDENT
          key: 'system.cpu.iowait[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has been waiting for I/O to complete.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="iowait"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 78fb393fe3d64cd7bf79be5427715add
          name: 'Load average (1m avg)'
          type: DEPENDENT
          key: 'system.cpu.load.avg1[node_exporter]'
          value_type: FLOAT
          description: 'Calculated as the system CPU load divided by the number of CPU cores.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_load1
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 7fc62b26b9ff43429632f1985dc07851
          name: 'Load average (5m avg)'
          type: DEPENDENT
          key: 'system.cpu.load.avg5[node_exporter]'
          value_type: FLOAT
          description: 'Calculated as the system CPU load divided by the number of CPU cores.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_load5
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 35fb0319c599403bbea0e616c9066e27
          name: 'Load average (15m avg)'
          type: DEPENDENT
          key: 'system.cpu.load.avg15[node_exporter]'
          value_type: FLOAT
          description: 'Calculated as the system CPU load divided by the number of CPU cores.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_load15
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 86de794832794f57ba428cca31031005
          name: 'CPU nice time'
          type: DEPENDENT
          key: 'system.cpu.nice[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent running users'' processes that have been niced.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="nice"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: d7db65cfeaac4541bd98d06dc35f89e2
          name: 'Number of CPUs'
          type: DEPENDENT
          key: 'system.cpu.num[node_exporter]'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="idle"}'
            - type: JAVASCRIPT
              parameters:
                - 'return JSON.parse(value).length'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: cf3cd5840b91477d8e9254820896b978
          name: 'CPU softirq time'
          type: DEPENDENT
          key: 'system.cpu.softirq[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent servicing software interrupts.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="softirq"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 2ee5885c4de646c0926f0c1a48890e68
          name: 'CPU steal time'
          type: DEPENDENT
          key: 'system.cpu.steal[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="steal"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: b873e0d178d144fca3597d617fc119e7
          name: 'Context switches per second'
          type: DEPENDENT
          key: 'system.cpu.switches[node_exporter]'
          value_type: FLOAT
          description: 'The combined rate at which all processors on the computer are switched from one thread to another.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_context_switches"}'
                - value
                - ''
            - type: CHANGE_PER_SECOND
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: e296be976c5944b19a7178304ed6140c
          name: 'CPU system time'
          type: DEPENDENT
          key: 'system.cpu.system[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent running the kernel and its processes.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="system"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 832698e707d14bad8171ca71a2533350
          name: 'CPU user time'
          type: DEPENDENT
          key: 'system.cpu.user[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'Time the CPU has spent running users'' processes that are not niced.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_cpu(?:_seconds_total)?$",cpu=~".+",mode="user"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var valueArr = JSON.parse(value);
                  return valueArr.reduce(function(acc,obj){
                  	return acc + parseFloat(obj['value'])
                  },0)/valueArr.length;
            - type: CHANGE_PER_SECOND
            - type: MULTIPLIER
              parameters:
                - '100'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: cpu
        - uuid: 76f60c7e4f1a482198ff4f101020bbcc
          name: 'CPU utilization'
          type: DEPENDENT
          key: 'system.cpu.util[node_exporter]'
          value_type: FLOAT
          units: '%'
          description: 'CPU utilization expressed in %.'
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - 'return (100 - value)'
          master_item:
            key: 'system.cpu.idle[node_exporter]'
          tags:
            - tag: component
              value: cpu
          triggers:
            - uuid: 4c924f8243a7431886a2d69368cb7142
              expression: 'min(/Linux by Prom/system.cpu.util[node_exporter],5m)>{$CPU.UTIL.CRIT}'
              name: 'Linux: High CPU utilization'
              event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
              opdata: 'Current utilization: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'The CPU utilization is too high. The system might be slow to respond.'
              dependencies:
                - name: 'Linux: Load average is too high'
                  expression: |
                    min(/Linux by Prom/system.cpu.load.avg1[node_exporter],5m)/last(/Linux by Prom/system.cpu.num[node_exporter])>{$LOAD_AVG_PER_CPU.MAX.WARN}
                    and last(/Linux by Prom/system.cpu.load.avg5[node_exporter])>0
                    and last(/Linux by Prom/system.cpu.load.avg15[node_exporter])>0
              tags:
                - tag: scope
                  value: performance
        - uuid: c47995760ef3458eb6237e434ef4eef8
          name: 'System description'
          type: DEPENDENT
          key: 'system.descr[node_exporter]'
          value_type: CHAR
          description: 'Labeled system information as provided by the uname system call.'
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - node_uname_info
            - type: JAVASCRIPT
              parameters:
                - |
                  var info = JSON.parse(value)[0];
                  return info.labels.sysname+' version: '+info.labels.release+' '+info.labels.version
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
        - uuid: 9fcb3dd70dc244f2b2ff86560b37ec7e
          name: 'System local time'
          type: DEPENDENT
          key: 'system.localtime[node_exporter]'
          value_type: FLOAT
          units: unixtime
          description: 'The local system time of the host.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"^node_time(?:_seconds)?$"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: e91c10be1c4a4c3fadfe06aec6c1e4e4
              expression: 'fuzzytime(/Linux by Prom/system.localtime[node_exporter],{$SYSTEM.FUZZYTIME.MAX})=0'
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: 'fuzzytime(/Linux by Prom/system.localtime[node_exporter],{$SYSTEM.FUZZYTIME.MIN})=1'
              name: 'Linux: System time is out of sync'
              event_name: 'Linux: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX})'
              priority: WARNING
              description: 'The host''s system time is different from Zabbix server time.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
        - uuid: c70cfa2ad5754089935883c5b3172656
          name: 'System name'
          type: DEPENDENT
          key: 'system.name[node_exporter]'
          value_type: CHAR
          description: 'The host name of the system.'
          inventory_link: NAME
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_uname_info
                - label
                - nodename
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: e827e944568b46e284820630482317bd
              expression: 'last(/Linux by Prom/system.name[node_exporter],#1)<>last(/Linux by Prom/system.name[node_exporter],#2) and length(last(/Linux by Prom/system.name[node_exporter]))>0'
              name: 'Linux: System name has changed'
              event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
                - tag: scope
                  value: security
        - uuid: ce4bb6c485cc4b739dce31b631634790
          name: 'Operating system architecture'
          type: DEPENDENT
          key: 'system.sw.arch[node_exporter]'
          value_type: CHAR
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - node_uname_info
                - label
                - machine
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: os
        - uuid: 11ff4e02245f4c2e9ce00e55c1a77b39
          name: 'Operating system'
          type: DEPENDENT
          key: 'system.sw.os[node_exporter]'
          value_type: CHAR
          inventory_link: OS
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          master_item:
            key: 'system.descr[node_exporter]'
          tags:
            - tag: component
              value: os
          triggers:
            - uuid: 00974d5b128c4b1db64ca100770fb11b
              expression: 'last(/Linux by Prom/system.sw.os[node_exporter],#1)<>last(/Linux by Prom/system.sw.os[node_exporter],#2) and length(last(/Linux by Prom/system.sw.os[node_exporter]))>0'
              name: 'Linux: Operating system description has changed'
              priority: INFO
              description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'Linux: System name has changed'
                  expression: 'last(/Linux by Prom/system.name[node_exporter],#1)<>last(/Linux by Prom/system.name[node_exporter],#2) and length(last(/Linux by Prom/system.name[node_exporter]))>0'
              tags:
                - tag: scope
                  value: notice
        - uuid: ccc3c4d69fef412aa53c6a7320ef44fb
          name: 'Free swap space'
          type: DEPENDENT
          key: 'system.swap.free[node_exporter]'
          value_type: FLOAT
          units: B
          description: 'The free space of the swap volume/file expressed in bytes.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_memory_SwapFree"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
        - uuid: 99feb76b7da04b00a0d191b92bf979a1
          name: 'Free swap space in %'
          type: CALCULATED
          key: 'system.swap.pfree[node_exporter]'
          value_type: FLOAT
          units: '%'
          params: 'last(//system.swap.free[node_exporter])/last(//system.swap.total[node_exporter])*100'
          description: 'The free space of the swap volume/file expressed in %.'
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
        - uuid: d0c1ef0a679546d780df30a02a27df44
          name: 'Total swap space'
          type: DEPENDENT
          key: 'system.swap.total[node_exporter]'
          value_type: FLOAT
          units: B
          description: 'Total space of the swap volume/file expressed in bytes.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_memory_SwapTotal"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: memory
            - tag: component
              value: storage
        - uuid: 7eeabdb6bf44483bab91faaab8bb24d5
          name: 'System uptime'
          type: DEPENDENT
          key: 'system.uptime[node_exporter]'
          trends: '0'
          units: uptime
          description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"^node_boot_time(?:_seconds)?$"}'
                - value
                - ''
            - type: JAVASCRIPT
              parameters:
                - 'return (Math.floor(Date.now()/1000)-Number(value));'
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 83311a7c73c441d39d88fe0fc7b55af9
              expression: 'last(/Linux by Prom/system.uptime[node_exporter])<10m'
              name: 'Linux: {HOST.NAME} has been restarted'
              event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)'
              priority: WARNING
              description: 'The device uptime is less than 10 minutes.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 70a75efafbc84cbebd1bb262ec797523
          name: 'Available memory'
          type: DEPENDENT
          key: 'vm.memory.available[node_exporter]'
          value_type: FLOAT
          units: B
          description: |
            The available memory:
            - in Linux - available = free + buffers + cache;
            - on other platforms calculation may vary.
            
            See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_memory_MemAvailable"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: memory
        - uuid: e3ad296f16084e9caa923b449d8c725f
          name: 'Total memory'
          type: DEPENDENT
          key: 'vm.memory.total[node_exporter]'
          value_type: FLOAT
          units: B
          description: 'Total memory expressed in bytes.'
          preprocessing:
            - type: PROMETHEUS_PATTERN
              parameters:
                - '{__name__=~"node_memory_MemTotal"}'
                - value
                - ''
          master_item:
            key: node_exporter.get
          tags:
            - tag: component
              value: memory
        - uuid: 60c716c692fb482f9abffb0fc9ce4324
          name: 'Memory utilization'
          type: CALCULATED
          key: 'vm.memory.util[node_exporter]'
          value_type: FLOAT
          units: '%'
          params: '(last(//vm.memory.total[node_exporter])-last(//vm.memory.available[node_exporter]))/last(//vm.memory.total[node_exporter])*100'
          description: 'Percentage calculated as (total-available)/total*100.'
          tags:
            - tag: component
              value: memory
          triggers:
            - uuid: 72304b3a167e41ccbcdb75568c65294a
              expression: 'min(/Linux by Prom/vm.memory.util[node_exporter],5m)>{$MEMORY.UTIL.MAX}'
              name: 'Linux: High memory utilization'
              event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
              priority: AVERAGE
              description: 'The system is running out of free memory.'
              dependencies:
                - name: 'Linux: Lack of available memory'
                  expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0'
              tags:
                - tag: scope
                  value: capacity
                - tag: scope
                  value: performance
      discovery_rules:
        - uuid: 91531a7a68564860976096df6899fe88
          name: 'Network interface discovery'
          type: DEPENDENT
          key: 'net.if.discovery[node_exporter]'
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.MATCHES}'
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.MATCHES}'
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.MATCHES}'
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          description: 'Discovery of network interfaces. Requires node_exporter v0.18 and up.'
          item_prototypes:
            - uuid: ee28aff27b4f40eaa8e903ce3fab8555
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded'
              type: DEPENDENT
              key: 'net.if.in.discards[node_exporter,"{#IFNAME}"]'
              value_type: FLOAT
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_receive_drop_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: f6b39f743bb6438d876236ae651f68ee
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors'
              type: DEPENDENT
              key: 'net.if.in.errors[node_exporter,"{#IFNAME}"]'
              value_type: FLOAT
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_receive_errs_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: eea37c3779994ac5b35bb3b125429340
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits received'
              type: DEPENDENT
              key: 'net.if.in[node_exporter,"{#IFNAME}"]'
              value_type: FLOAT
              units: bps
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_receive_bytes_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: aec995b7fe724823bdb41f134594b648
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded'
              type: DEPENDENT
              key: 'net.if.out.discards[node_exporter,"{#IFNAME}"]'
              value_type: FLOAT
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_transmit_drop_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 4ffe74b94eb14a4ea61c0df790d0920f
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors'
              type: DEPENDENT
              key: 'net.if.out.errors[node_exporter"{#IFNAME}"]'
              value_type: FLOAT
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_transmit_errs_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: ddc4111fefec473e8d8b079f6eb50c05
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent'
              type: DEPENDENT
              key: 'net.if.out[node_exporter,"{#IFNAME}"]'
              value_type: FLOAT
              units: bps
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_transmit_bytes_total{device="{#IFNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 51f9a39ad6d940ae914cd0a350d83dab
              name: 'Interface {#IFNAME}({#IFALIAS}): Speed'
              type: DEPENDENT
              key: 'net.if.speed[node_exporter,"{#IFNAME}"]'
              trends: '0'
              units: bps
              description: 'Sets value to "0" if metric is missing in `node_exporter` output.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_speed_bytes{device="{#IFNAME}"}'
                    - value
                    - ''
                  error_handler: CUSTOM_VALUE
                  error_handler_params: '0'
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 4097f76d86cd417db586c5973e1da90b
              name: 'Interface {#IFNAME}({#IFALIAS}): Operational status'
              type: DEPENDENT
              key: 'net.if.status[node_exporter,"{#IFNAME}"]'
              trends: '0'
              description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt'
              valuemap:
                name: ifOperStatus
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_info{device="{#IFNAME}"}'
                    - label
                    - operstate
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var newvalue;
                      switch(value) {
                        case "unknown":
                      	newvalue = 0;
                      	break;
                        case "notpresent":
                      	newvalue = 1;
                      	break;
                        case "down":
                      	newvalue = 2;
                      	break;
                        case "lowerlayerdown":
                      	newvalue = 3;
                      	break;
                        case "testing":
                      	newvalue = 4;
                      	break;
                        case "dormant":
                      	newvalue = 5;
                      	break;
                        case "up":
                      	newvalue = 6;
                      	break;  default:
                      	newvalue = "Problem parsing interface operstate in JS";
                      }
                      return newvalue;
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: e35b59dc09754451a721793831edc3d4
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
                  name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: |
                    This trigger expression works as follows:
                    1. It can be triggered if the operations status is down.
                    2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine context macro to value "0", marking this interface as not important. No new trigger will be fired if this interface is down.
                    3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.)
                    
                    WARNING: if closed manually - it will not fire again on the next poll, because of .diff.
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: availability
            - uuid: ce9cfd9880c44aaea18cfa2ab2fdf0e1
              name: 'Interface {#IFNAME}({#IFALIAS}): Interface type'
              type: DEPENDENT
              key: 'net.if.type[node_exporter,"{#IFNAME}"]'
              trends: '0'
              description: 'node_network_protocol_type protocol_type value of /sys/class/net/<iface>.'
              valuemap:
                name: 'Linux::Interface protocol types'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_network_protocol_type{device="{#IFNAME}"}'
                    - value
                    - ''
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
          trigger_prototypes:
            - uuid: 96bbb9726ef149a5b97f96d54502593a
              expression: |
                change(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])<0 and last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0
                and (
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=6 or
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=7 or
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=11 or
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=62 or
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=69 or
                last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=117
                )
                and
                (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2)
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                (change(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0 and last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"],#2)>0) or
                (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2)
              name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before'
              opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))'
                  recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 08d5857e474042b5906288156c8c5d52
              expression: |
                change(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])<0 and last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])>0
                and
                (last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=6
                or last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])=1)
                and
                (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2)
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                (change(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"])>0 and last(/Linux by Prom/net.if.type[node_exporter,"{#IFNAME}"],#2)>0) or
                (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2)
              name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before'
              opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))'
                  recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 11e2c8023463482da878cdad5bb7de76
              expression: |
                (avg(/Linux by Prom/net.if.in[node_exporter,"{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"]) or
                avg(/Linux by Prom/net.if.out[node_exporter,"{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])) and
                last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])>0
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                avg(/Linux by Prom/net.if.in[node_exporter,"{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"]) and
                avg(/Linux by Prom/net.if.out[node_exporter,"{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Prom/net.if.speed[node_exporter,"{#IFNAME}"])
              name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage'
              event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)'
              opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'The utilization of the network interface is close to its estimated maximum bandwidth.'
              manual_close: 'YES'
              dependencies:
                - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))'
                  recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 6e8269b2260e42de97aec08043a768df
              expression: |
                min(/Linux by Prom/net.if.in.errors[node_exporter,"{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
                or min(/Linux by Prom/net.if.out.errors[node_exporter"{#IFNAME}"],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                max(/Linux by Prom/net.if.in.errors[node_exporter,"{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
                and max(/Linux by Prom/net.if.out.errors[node_exporter"{#IFNAME}"],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
              name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate'
              event_name: 'Linux: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)'
              opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.'
              manual_close: 'YES'
              dependencies:
                - name: 'Linux: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])=2 and (last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#1)<>last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"],#2))'
                  recovery_expression: 'last(/Linux by Prom/net.if.status[node_exporter,"{#IFNAME}"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
          graph_prototypes:
            - uuid: cf143a7bb6d548fc9d3b089dcbb47ccf
              name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.in[node_exporter,"{#IFNAME}"]'
                - sortorder: '1'
                  drawtype: BOLD_LINE
                  color: F63100
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.out[node_exporter,"{#IFNAME}"]'
                - sortorder: '2'
                  color: 00611C
                  yaxisside: RIGHT
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.out.errors[node_exporter"{#IFNAME}"]'
                - sortorder: '3'
                  color: F7941D
                  yaxisside: RIGHT
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.in.errors[node_exporter,"{#IFNAME}"]'
                - sortorder: '4'
                  color: FC6EA3
                  yaxisside: RIGHT
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.out.discards[node_exporter,"{#IFNAME}"]'
                - sortorder: '5'
                  color: 6C59DC
                  yaxisside: RIGHT
                  item:
                    host: 'Linux by Prom'
                    key: 'net.if.in.discards[node_exporter,"{#IFNAME}"]'
          master_item:
            key: node_exporter.get
          lld_macro_paths:
            - lld_macro: '{#HELP}'
              path: $.help
            - lld_macro: '{#IFALIAS}'
              path: $.labels.ifalias
            - lld_macro: '{#IFNAME}'
              path: $.labels.device
            - lld_macro: '{#IFOPERSTATUS}'
              path: $.labels.operstate
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_network_info$"}'
        - uuid: 920f367e232945b8992d0f32e6f9324d
          name: 'Block devices discovery'
          type: DEPENDENT
          key: 'vfs.dev.discovery[node_exporter]'
          filter:
            evaltype: AND
            conditions:
              - macro: '{#DEVNAME}'
                value: '{$VFS.DEV.DEVNAME.MATCHES}'
              - macro: '{#DEVNAME}'
                value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: 0a0949bcdf754fbe82e772ffbd69b5ba
              name: '{#DEVNAME}: Disk average queue size (avgqu-sz)'
              type: DEPENDENT
              key: 'vfs.dev.queue_size[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_io_time_weighted_seconds_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: 9d158ecffdaa43f6bd0ab867ca68620b
              name: '{#DEVNAME}: Disk read request avg waiting time (r_await)'
              type: CALCULATED
              key: 'vfs.dev.read.await[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              units: '!ms'
              params: '(last(//vfs.dev.read.time.rate[node_exporter,"{#DEVNAME}"])/(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"])+(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"])=0)))*1000*(last(//vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]) > 0)'
              description: 'This formula contains two Boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.'
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: dcd6f61ffb2f491ba78845514654a8cf
              name: '{#DEVNAME}: Disk read rate'
              type: DEPENDENT
              key: 'vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              units: '!r/s'
              description: 'r/s. The number (after merges) of read requests completed per second for the device.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_reads_completed_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: 73940f30ea2b4b88b0047e54b773b747
              name: '{#DEVNAME}: Disk read time (rate)'
              type: DEPENDENT
              key: 'vfs.dev.read.time.rate[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              description: 'Rate of total read time counter. Used in `r_await` calculation.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_read_time_seconds_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: d087a0525500450c9a307ff21f58482a
              name: '{#DEVNAME}: Disk utilization'
              type: DEPENDENT
              key: 'vfs.dev.util[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              units: '%'
              description: 'This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_io_time_seconds_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '100'
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: 94203a49081047b6bc76cd66aecd55ce
              name: '{#DEVNAME}: Disk write request avg waiting time (w_await)'
              type: CALCULATED
              key: 'vfs.dev.write.await[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              units: '!ms'
              params: '(last(//vfs.dev.write.time.rate[node_exporter,"{#DEVNAME}"])/(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"])+(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"])=0)))*1000*(last(//vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]) > 0)'
              description: 'This formula contains two Boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.'
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: 806ba0a56fab4b5094008c98bb817e2b
              name: '{#DEVNAME}: Disk write rate'
              type: DEPENDENT
              key: 'vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              units: '!w/s'
              description: 'w/s. The number (after merges) of write requests completed per second for the device.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_writes_completed_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
            - uuid: 601cc30457934b7f8f050b2cea13ccea
              name: '{#DEVNAME}: Disk write time (rate)'
              type: DEPENDENT
              key: 'vfs.dev.write.time.rate[node_exporter,"{#DEVNAME}"]'
              value_type: FLOAT
              description: 'Rate of total write time counter. Used in `w_await` calculation.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - 'node_disk_write_time_seconds_total{device="{#DEVNAME}"}'
                    - value
                    - ''
                - type: CHANGE_PER_SECOND
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: disk
                  value: '{#DEVNAME}'
          trigger_prototypes:
            - uuid: 412381f71bba441b955898839f81d51c
              expression: 'min(/Linux by Prom/vfs.dev.read.await[node_exporter,"{#DEVNAME}"],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Prom/vfs.dev.write.await[node_exporter,"{#DEVNAME}"],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}'
              name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high'
              event_name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} ms for 15m)'
              priority: WARNING
              description: 'This trigger might indicate the disk `{#DEVNAME}` saturation.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: performance
          graph_prototypes:
            - uuid: 13a5a74a99734449b08075bbb25bb498
              name: '{#DEVNAME}: Disk average waiting time'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.read.await[node_exporter,"{#DEVNAME}"]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.write.await[node_exporter,"{#DEVNAME}"]'
            - uuid: bad3d3ba32534ef194a4837d666ddccb
              name: '{#DEVNAME}: Disk read/write rates'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.read.rate[node_exporter,"{#DEVNAME}"]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.write.rate[node_exporter,"{#DEVNAME}"]'
            - uuid: aa53b66adaac4e62863ea2dd59ba3ea1
              name: '{#DEVNAME}: Disk utilization and queue'
              graph_items:
                - color: 199C0D
                  yaxisside: RIGHT
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.queue_size[node_exporter,"{#DEVNAME}"]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.dev.util[node_exporter,"{#DEVNAME}"]'
          master_item:
            key: node_exporter.get
          lld_macro_paths:
            - lld_macro: '{#DEVNAME}'
              path: $.labels.device
            - lld_macro: '{#HELP}'
              path: $.help
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - 'node_disk_io_now{device=~".+"}'
        - uuid: 85d047920c1342b992fa1905eb489a44
          name: 'Mounted filesystem discovery'
          type: DEPENDENT
          key: 'vfs.fs.discovery[node_exporter]'
          filter:
            evaltype: AND
            conditions:
              - macro: '{#FSDEVICE}'
                value: '{$VFS.FS.FSDEVICE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#FSNAME}'
                value: '{$VFS.FS.FSDEVICE.MATCHES}'
              - macro: '{#FSNAME}'
                value: '{$VFS.FS.FSNAME.MATCHES}'
              - macro: '{#FSNAME}'
                value: '{$VFS.FS.FSNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#FSTYPE}'
                value: '{$VFS.FS.FSTYPE.MATCHES}'
              - macro: '{#FSTYPE}'
                value: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          description: 'Discovery of file systems of different types.'
          item_prototypes:
            - uuid: 3a3edb8bf5a74a63baa27c64d1a44493
              name: 'FS [{#FSNAME}]: Space: Available'
              type: DEPENDENT
              key: 'vfs.fs.free[node_exporter,"{#FSNAME}"]'
              value_type: FLOAT
              units: B
              description: 'Available storage space expressed in bytes.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - '{__name__=~"^node_filesystem_avail(?:_bytes)?$", mountpoint="{#FSNAME}"}'
                    - value
                    - ''
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
            - uuid: ee1dad3677214561baafa6d930358ee0
              name: 'FS [{#FSNAME}]: Inodes: Free, in %'
              type: DEPENDENT
              key: 'vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"]'
              value_type: FLOAT
              units: '%'
              description: 'Free metadata space expressed as a percentage.'
              preprocessing:
                - type: PROMETHEUS_TO_JSON
                  parameters:
                    - '{__name__=~"node_filesystem_files.*",mountpoint="{#FSNAME}"}'
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var inode_free;
                      var inode_total;
                      
                      JSON.parse(value).forEach(function (metric) {
                      	if (metric['name'] == 'node_filesystem_files') {
                      		inode_total = parseFloat(metric['value']);
                      	} else if (metric['name'] == 'node_filesystem_files_free') {
                      		inode_free = parseFloat(metric['value']);
                      	}
                      });
                      
                      return (inode_free / inode_total) * 100;
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
              trigger_prototypes:
                - uuid: 27cabcc9d9644ba6b7bd8c92a740e3cc
                  expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
                  name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
                  event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)'
                  opdata: 'Free inodes: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.'
                  tags:
                    - tag: scope
                      value: capacity
                    - tag: scope
                      value: performance
                - uuid: c639215f6dd94c71aebf97265a282a0d
                  expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}'
                  name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
                  event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)'
                  opdata: 'Free inodes: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.'
                  dependencies:
                    - name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
                      expression: 'min(/Linux by Prom/vfs.fs.inode.pfree[node_exporter,"{#FSNAME}"],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
                  tags:
                    - tag: scope
                      value: capacity
                    - tag: scope
                      value: performance
            - uuid: 89afe41bb0d74c579a9cff8b036d30dc
              name: 'FS [{#FSNAME}]: Space: Used, in %'
              type: DEPENDENT
              key: 'vfs.fs.pused[node_exporter,"{#FSNAME}"]'
              value_type: FLOAT
              units: '%'
              description: 'Calculated as the percentage of currently used space compared to the maximum available space.'
              preprocessing:
                - type: PROMETHEUS_TO_JSON
                  parameters:
                    - '{__name__=~"^node_filesystem_(avail|free|size)(?:_bytes)?$",mountpoint="{#FSNAME}"}'
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var available,
                      	free,
                      	total;
                      
                      JSON.parse(value).forEach(function(metric) {
                      	if (metric['name'] == 'node_filesystem_size_bytes'){
                      		total = parseFloat(metric['value']);
                      	} else if (metric['name'] == 'node_filesystem_free_bytes'){
                      		free = parseFloat(metric['value']);
                      	} else if (metric['name'] == 'node_filesystem_avail_bytes'){
                      		available = parseFloat(metric['value']);
                      	}
                      });
                      if ((total - free + available) <= 0){
                      	return 0;
                      } else {
                      	return (100 - 100 * available / (total - free + available));
                      }
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
              trigger_prototypes:
                - uuid: d5687d7aa0484b389f0bd168d50ee1e6
                  expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
                  name: 'Linux: FS [{#FSNAME}]: Space is critically low'
                  event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[node_exporter,"{#FSNAME}"])/1024/1024/1024}.fmtnum(1)}GB)'
                  opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%'
                  priority: AVERAGE
                  description: |
                    The storage space usage exceeds the '{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%' limit.
                    The trigger expression is based on the current used and maximum available spaces.
                    Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type.
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: capacity
                - uuid: 8f765148cfd64d5ebda93f39d0b20e36
                  expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}'
                  name: 'Linux: FS [{#FSNAME}]: Space is low'
                  event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.total[node_exporter,"{#FSNAME}"])/1024/1024/1024}.fmtnum(1)}GB)'
                  opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%'
                  priority: WARNING
                  description: |
                    The storage space usage exceeds the '{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%' limit.
                    The trigger expression is based on the current used and maximum available spaces.
                    Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type.
                  manual_close: 'YES'
                  dependencies:
                    - name: 'Linux: FS [{#FSNAME}]: Space is critically low'
                      expression: 'min(/Linux by Prom/vfs.fs.pused[node_exporter,"{#FSNAME}"],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: capacity
            - uuid: acb3d42ae23b48cbacd0e99c27697798
              name: 'FS [{#FSNAME}]: Space: Total'
              type: DEPENDENT
              key: 'vfs.fs.total[node_exporter,"{#FSNAME}"]'
              value_type: FLOAT
              units: B
              description: 'Total space expressed in bytes.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - '{__name__=~"^node_filesystem_size(?:_bytes)?$", mountpoint="{#FSNAME}"}'
                    - value
                    - ''
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
            - uuid: 89e559a7ff364dd78b638454896692c5
              name: 'FS [{#FSNAME}]: Space: Used'
              type: DEPENDENT
              key: 'vfs.fs.used[node_exporter,"{#FSNAME}"]'
              value_type: FLOAT
              units: B
              description: |
                Used storage expressed in bytes.
                Reserved space is not counted in.
              preprocessing:
                - type: PROMETHEUS_TO_JSON
                  parameters:
                    - '{__name__=~"^node_filesystem_(free|size)(?:_bytes)?$",mountpoint="{#FSNAME}"}'
                - type: JAVASCRIPT
                  parameters:
                    - |
                      var free;
                      var total;
                      
                      JSON.parse(value).forEach(function(metric) {
                      	if (metric['name'] == 'node_filesystem_size_bytes'){
                      		total = parseFloat(metric['value']);
                      	} else if (metric['name'] == 'node_filesystem_free_bytes'){
                      		free = parseFloat(metric['value']);
                      	}
                      });
                      
                      return (total-free);
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
            - uuid: 3946668d2bbf47ef85ae7fcea639c622
              name: 'FS [{#FSNAME}]: Filesystem is read-only'
              type: DEPENDENT
              key: 'vfs.fs.[node_exporter,"{#FSNAME}"]'
              description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.'
              preprocessing:
                - type: PROMETHEUS_PATTERN
                  parameters:
                    - '{__name__=~"^node_filesystem_readonly$", mountpoint="{#FSNAME}"}'
                    - value
                    - ''
              master_item:
                key: node_exporter.get
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
                - tag: fstype
                  value: '{#FSTYPE}'
              trigger_prototypes:
                - uuid: a17990454b7e4f96b659e61f426453c8
                  expression: 'last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"],#2)=0 and last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"])=1'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/Linux by Prom/vfs.fs.[node_exporter,"{#FSNAME}"])=0'
                  name: 'Linux: FS [{#FSNAME}]: Filesystem has become read-only'
                  priority: AVERAGE
                  description: 'The filesystem has become read-only, possibly due to an I/O error. It is available only for Zabbix agents 6.4 and higher.'
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          graph_prototypes:
            - uuid: 4c6237d835a34d458de8cf2c108d1290
              name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)'
              width: '600'
              height: '340'
              ymin_type_1: FIXED
              ymax_type_1: FIXED
              graph_items:
                - drawtype: FILLED_REGION
                  color: F63100
                  calc_fnc: ALL
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.fs.pused[node_exporter,"{#FSNAME}"]'
            - uuid: 1febfc95ae1945b3a620cc49264d0eae
              name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
              width: '600'
              height: '340'
              type: PIE
              show_3d: 'YES'
              graph_items:
                - color: '787878'
                  calc_fnc: LAST
                  type: GRAPH_SUM
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.fs.total[node_exporter,"{#FSNAME}"]'
                - sortorder: '1'
                  color: F63100
                  calc_fnc: LAST
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.fs.used[node_exporter,"{#FSNAME}"]'
                - sortorder: '2'
                  color: 199C09
                  calc_fnc: LAST
                  item:
                    host: 'Linux by Prom'
                    key: 'vfs.fs.free[node_exporter,"{#FSNAME}"]'
          master_item:
            key: node_exporter.get
          lld_macro_paths:
            - lld_macro: '{#FSDEVICE}'
              path: $.device
            - lld_macro: '{#FSNAME}'
              path: $.mountpoint
            - lld_macro: '{#FSTYPE}'
              path: $.fstype
          preprocessing:
            - type: PROMETHEUS_TO_JSON
              parameters:
                - '{__name__=~"^node_filesystem_size(?:_bytes)?$", mountpoint=~".+"}'
            - type: JAVASCRIPT
              parameters:
                - |
                  var filesystems = JSON.parse(value);
                  
                  result = filesystems.map(function (filesystem) {
                  	return {
                  		'mountpoint': filesystem.labels.mountpoint,
                  		'fstype': filesystem.labels.fstype,
                  		'device': filesystem.labels.device
                  	};
                  });
                  
                  return JSON.stringify(result);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          overrides:
            - name: 'Skip metadata collection for dynamic FS'
              step: '1'
              filter:
                conditions:
                  - macro: '{#FSTYPE}'
                    value: ^(btrfs|zfs)$
              operations:
                - operator: LIKE
                  value: Inodes
                  discover: NO_DISCOVER
      tags:
        - tag: class
          value: os
        - tag: target
          value: linux
      macros:
        - macro: '{$CPU.UTIL.CRIT}'
          value: '90'
          description: 'Critical threshold of CPU utilization expressed in %.'
          config:
            type: TEXT
            priority: '1'
            section_name: Thresholds
            label: 'Threshold of CPU utilization expressed'
            description: 'Critical threshold of CPU utilization expressed in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.ERRORS.WARN}'
          value: '2'
          description: 'Warning threshold of error packet rate. Can be used with interface name as context.'
          config:
            type: TEXT
            priority: '8'
            section_name: Thresholds
            label: 'Threshold of error packet rate'
            description: 'Warning threshold of error packet rate. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.UTIL.MAX}'
          value: '90'
          description: 'Used as a threshold in the interface utilization trigger.'
          config:
            type: TEXT
            priority: '7'
            section_name: Thresholds
            label: 'The threshold in the interface utilization'
            description: 'Used as a threshold in the interface utilization trigger. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IFCONTROL}'
          value: '1'
          description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".'
          config:
            type: CHECKBOX
            priority: '6'
            label: 'Interfaces control'
            description: 'Fire a trigger when the interface operational status changes to "Link down".'
            options:
              - checked: '1'
                unchecked: '0'
        - macro: '{$KERNEL.MAXFILES.MIN}'
          value: '256'
          config:
            type: TEXT
            priority: '9'
            section_name: Thresholds
            label: 'Number of open filedescriptors'
            description: 'Configured max number of open filedescriptors. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}'
          value: '1.5'
          description: 'Load per CPU considered sustainable. Tune if needed.'
          config:
            type: TEXT
            priority: '2'
            section_name: Thresholds
            label: 'The CPU load per core'
            description: 'CPU load per core is considered sustainable. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$MEMORY.AVAILABLE.MIN}'
          value: 20M
          description: 'Used as a threshold in the memory available trigger.'
          config:
            type: TEXT
            priority: '4'
            section_name: Thresholds
            label: 'Threshold in the available memory'
            description: 'Used as a threshold in the available memory trigger.'
        - macro: '{$MEMORY.UTIL.MAX}'
          value: '90'
          description: 'Used as a threshold in the memory utilization trigger.'
          config:
            type: TEXT
            priority: '3'
            section_name: Thresholds
            label: 'Threshold in the memory utilization'
            description: 'Used as a threshold in the memory utilization trigger. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NET.IF.IFALIAS.MATCHES}'
          value: '^.*$'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '26'
            section_name: Filters
            label: 'Filter network interface by alias'
            description: 'Regex string to include discovered interface by alias.'
        - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '27'
            section_name: Filters
            label: 'Filter network interface by alias (exclude)'
            description: 'Regex string to exclude discovered interface by alias.'
        - macro: '{$NET.IF.IFNAME.MATCHES}'
          value: '^.*$'
          description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '22'
            section_name: Filters
            label: 'Filter for network interface by name'
            description: 'Regex string to include discovered interface by name.'
        - macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
          value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
          description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.'
          config:
            type: TEXT
            priority: '23'
            section_name: Filters
            label: 'Filter for network interface by name (exclude)'
            description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.'
        - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}'
          value: '^.*$'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '24'
            section_name: Filters
            label: 'Filter network interface by status'
            description: 'Regex string to include discovered interface by status.'
        - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
          value: ^notpresent$
          description: 'Ignore `notpresent(1)`.'
          config:
            type: TEXT
            priority: '25'
            section_name: Filters
            label: 'Filter network interface by status (exclude)'
            description: 'Regex string to exclude discovered interface by status.'
        - macro: '{$NODE_EXPORTER_HOST}'
          value: '<SET NODE EXPORTER HOST>'
          description: 'The hostname or IP address of the node_exporter host.'
          config:
            type: TEXT
            priority: '12'
            label: 'The node_exporter host'
            description: 'Hostname or IP address of the node_exporter host.'
        - macro: '{$NODE_EXPORTER_PORT}'
          value: '9100'
          description: 'TCP Port node_exporter is listening on.'
          config:
            type: TEXT
            priority: '13'
            label: 'TCP Port node_exporter'
            description: 'TCP Port node_exporter is listening on. In the range from 1 to 65535 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SWAP.PFREE.MIN.WARN}'
          value: '50'
          description: 'Warning threshold of the minimum free swap.'
          config:
            type: TEXT
            priority: '5'
            section_name: Thresholds
            label: 'Threshold of the minimum free swap'
            description: 'In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$SYSTEM.FUZZYTIME.MAX}'
          value: 60s
          description: 'The upper threshold for difference of system time.'
          config:
            type: TEXT
            priority: '11'
            section_name: Thresholds
            label: 'The upper threshold for difference of system time'
            description: 'Upper threshold for difference of system time.'
        - macro: '{$SYSTEM.FUZZYTIME.MIN}'
          value: 10s
          description: 'The lower threshold for difference of system time. Used in recovery expression to avoid trigger flapping.'
          config:
            type: TEXT
            priority: '10'
            section_name: Thresholds
            label: 'The lower threshold for difference of system time'
            description: 'Lower threshold for difference of system time.'
        - macro: '{$VFS.DEV.DEVNAME.MATCHES}'
          value: .+
          description: 'Used in block device discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '20'
            section_name: Filters
            label: 'Filter for block device discovery'
            description: 'Regex string to include discovered block device.'
        - macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
          value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)'
          description: 'Used in block device discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '21'
            section_name: Filters
            label: 'Filter for block device discovery (exclude)'
            description: 'Regex string to exclude discovered block device.'
        - macro: '{$VFS.DEV.READ.AWAIT.WARN}'
          value: '20'
          description: 'Disk read average response time (in ms) before the trigger fires.'
          config:
            type: TEXT
            priority: '14'
            label: 'The average read time (in ms)'
            description: 'Average response time (in ms) of disk read before the trigger fires. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.DEV.WRITE.AWAIT.WARN}'
          value: '20'
          description: 'Disk write average response time (in ms) before the trigger fires.'
          config:
            type: TEXT
            priority: '15'
            label: 'The average write time (in ms)'
            description: 'Average response time (in ms) of disk write before the trigger fires. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.FSDEVICE.MATCHES}'
          value: ^.+$
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '32'
            section_name: Filters
            label: 'Filter filesystem for device'
            description: 'Regex string to include discovered filesystem by device.'
        - macro: '{$VFS.FS.FSDEVICE.NOT_MATCHES}'
          value: ^\s$
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '33'
            section_name: Filters
            label: 'Filter filesystem for device (exclude)'
            description: 'Regex string to exclude discovered filesystem by device.'
        - macro: '{$VFS.FS.FSNAME.MATCHES}'
          value: .+
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '29'
            section_name: Filters
            label: 'Filter filesystem by name'
            description: 'Regex string to exclude discovered filesystem by name.'
        - macro: '{$VFS.FS.FSNAME.NOT_MATCHES}'
          value: ^(/dev|/sys|/run|/proc|.+/shm$)
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '28'
            section_name: Filters
            label: 'Filter filesystem by name (exclude)'
            description: 'Regex string to include discovered filesystem by name.'
        - macro: '{$VFS.FS.FSTYPE.MATCHES}'
          value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '30'
            section_name: Filters
            label: 'Filter filesystem by type'
            description: 'Regex string to include discovered filesystem by type.'
        - macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
          value: ^\s$
          description: 'Used in filesystem discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '31'
            section_name: Filters
            label: 'Filter filesystem by type (exclude)'
            description: 'Regex string to exclude discovered filesystem by type.'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}'
          value: '10'
          description: 'The critical threshold of the filesystem metadata utilization.'
          config:
            type: TEXT
            priority: '19'
            section_name: Thresholds
            label: 'Threshold of the filesystem metadata utilization (critical)'
            description: 'Critical threshold of the filesystem metadata utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}'
          value: '20'
          description: 'The warning threshold of the filesystem metadata utilization.'
          config:
            type: TEXT
            priority: '18'
            section_name: Thresholds
            label: 'Threshold of the filesystem metadata utilization'
            description: 'Warning threshold of the filesystem metadata utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.CRIT}'
          value: '90'
          description: 'The critical threshold of the filesystem utilization.'
          config:
            type: TEXT
            priority: '17'
            section_name: Thresholds
            label: 'Threshold of the filesystem utilization (critical)'
            description: 'Critical threshold of the filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.WARN}'
          value: '80'
          description: 'The warning threshold of the filesystem utilization.'
          config:
            type: TEXT
            priority: '16'
            section_name: Thresholds
            label: 'Threshold of the filesystem utilization'
            description: 'Warning threshold of the filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      dashboards:
        - uuid: d0966792c5d04c4a92d9422114a09385
          name: Filesystems
          pages:
            - name: Overview
              widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '3'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
                    - type: STRING
                      name: reference
                      value: AAAEB
                - type: graphprototype
                  'y': '5'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)'
                    - type: STRING
                      name: reference
                      value: AAAEC
        - uuid: 19dac6b780aa49558bf4a3782ba4b3b6
          name: 'Network interfaces'
          pages:
            - widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
                    - type: STRING
                      name: reference
                      value: AAAAJ
        - uuid: 558606056f464970a7c544ba75d544f2
          name: 'System performance'
          pages:
            - widgets:
                - type: graph
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Linux: System load'
                    - type: STRING
                      name: reference
                      value: AAAAA
                - type: graph
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Linux: Memory usage'
                    - type: STRING
                      name: reference
                      value: AAAAC
                - type: graphprototype
                  'y': '10'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '3'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
                    - type: STRING
                      name: reference
                      value: AAAEA
                - type: graphprototype
                  'y': '15'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: '{#DEVNAME}: Disk read/write rates'
                    - type: STRING
                      name: reference
                      value: AAAAF
                - type: graphprototype
                  'y': '20'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: '{#DEVNAME}: Disk average waiting time'
                    - type: STRING
                      name: reference
                      value: AAAAG
                - type: graphprototype
                  'y': '25'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: '{#DEVNAME}: Disk utilization and queue'
                    - type: STRING
                      name: reference
                      value: AAAAH
                - type: graphprototype
                  'y': '30'
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
                    - type: STRING
                      name: reference
                      value: AAAAI
                - type: graph
                  x: '36'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Linux: CPU usage'
                    - type: STRING
                      name: reference
                      value: AAAAB
                - type: graph
                  x: '36'
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'Linux by Prom'
                        name: 'Linux: Swap usage'
                    - type: STRING
                      name: reference
                      value: AAAAD
      valuemaps:
        - uuid: 4827063819f14d539f509552c84f5f94
          name: ifOperStatus
          mappings:
            - value: '0'
              newvalue: unknown
            - value: '1'
              newvalue: notpresent
            - value: '2'
              newvalue: down
            - value: '3'
              newvalue: lowerlayerdown
            - value: '4'
              newvalue: testing
            - value: '5'
              newvalue: dormant
            - value: '6'
              newvalue: up
        - uuid: 4d912f1ee95942038f306ddefb3a57b3
          name: 'Linux::Interface protocol types'
          mappings:
            - value: '0'
              newvalue: 'from KA9Q: NET/ROM pseudo'
            - value: '1'
              newvalue: Ethernet
            - value: '2'
              newvalue: 'Experimental Ethernet'
            - value: '3'
              newvalue: 'AX.25 Level 2'
            - value: '4'
              newvalue: 'PROnet token ring'
            - value: '5'
              newvalue: Chaosnet
            - value: '6'
              newvalue: 'IEEE 802.2 Ethernet/TR/TB'
            - value: '7'
              newvalue: ARCnet
            - value: '8'
              newvalue: APPLEtalk
            - value: '15'
              newvalue: 'Frame Relay DLCI'
            - value: '19'
              newvalue: ATM
            - value: '23'
              newvalue: 'Metricom STRIP (new IANA id)'
            - value: '24'
              newvalue: 'IEEE 1394 IPv4 - RFC 2734'
            - value: '27'
              newvalue: EUI-64
            - value: '32'
              newvalue: InfiniBand
            - value: '256'
              newvalue: ARPHRD_SLIP
            - value: '257'
              newvalue: ARPHRD_CSLIP
            - value: '258'
              newvalue: ARPHRD_SLIP6
            - value: '259'
              newvalue: ARPHRD_CSLIP6
            - value: '260'
              newvalue: 'Notional KISS type'
            - value: '264'
              newvalue: ARPHRD_ADAPT
            - value: '270'
              newvalue: ARPHRD_ROSE
            - value: '271'
              newvalue: 'CCITT X.25'
            - value: '272'
              newvalue: 'Boards with X.25 in firmware'
            - value: '280'
              newvalue: 'Controller Area Network'
            - value: '512'
              newvalue: ARPHRD_PPP
            - value: '513'
              newvalue: 'Cisco HDLC'
            - value: '516'
              newvalue: LAPB
            - value: '517'
              newvalue: 'Digital''s DDCMP protocol'
            - value: '518'
              newvalue: 'Raw HDLC'
            - value: '519'
              newvalue: 'Raw IP'
            - value: '768'
              newvalue: 'IPIP tunnel'
            - value: '769'
              newvalue: 'IP6IP6 tunnel'
            - value: '770'
              newvalue: 'Frame Relay Access Device'
            - value: '771'
              newvalue: 'SKIP vif'
            - value: '772'
              newvalue: 'Loopback device'
            - value: '773'
              newvalue: 'Localtalk device'
            - value: '774'
              newvalue: 'Fiber Distributed Data Interface'
            - value: '775'
              newvalue: 'AP1000 BIF'
            - value: '776'
              newvalue: 'sit0 device - IPv6-in-IPv4'
            - value: '777'
              newvalue: 'IP over DDP tunneller'
            - value: '778'
              newvalue: 'GRE over IP'
            - value: '779'
              newvalue: 'PIMSM register interface'
            - value: '780'
              newvalue: 'High Performance Parallel Interface'
            - value: '781'
              newvalue: 'Nexus 64Mbps Ash'
            - value: '782'
              newvalue: 'Acorn Econet'
            - value: '783'
              newvalue: Linux-IrDA
            - value: '784'
              newvalue: 'Point to point fibrechannel'
            - value: '785'
              newvalue: 'Fibrechannel arbitrated loop'
            - value: '786'
              newvalue: 'Fibrechannel public loop'
            - value: '787'
              newvalue: 'Fibrechannel fabric'
            - value: '800'
              newvalue: 'Magic type ident for TR'
            - value: '801'
              newvalue: 'IEEE 802.11'
            - value: '802'
              newvalue: 'IEEE 802.11 + Prism2 header'
            - value: '803'
              newvalue: 'IEEE 802.11 + radiotap header'
            - value: '804'
              newvalue: ARPHRD_IEEE802154
            - value: '805'
              newvalue: 'IEEE 802.15.4 network monitor'
            - value: '820'
              newvalue: 'PhoNet media type'
            - value: '821'
              newvalue: 'PhoNet pipe header'
            - value: '822'
              newvalue: 'CAIF media type'
            - value: '823'
              newvalue: 'GRE over IPv6'
            - value: '824'
              newvalue: 'Netlink header'
            - value: '825'
              newvalue: 'IPv6 over LoWPAN'
            - value: '826'
              newvalue: 'Vsock monitor header'
    - uuid: 815b5a81b29a477695fddbd533ad9c84
      template: 'Mikrotik by SNMP'
      name: 'Mikrotik by SNMP'
      description: |
        Template Net Mikrotik
        
        MIBs used:
        HOST-RESOURCES-MIB
        SNMPv2-MIB
        MIKROTIK-MIB
        IF-MIB
        
        Known Issues:
        
          Description: Doesn't have ifHighSpeed filled. Fixed in more recent versions
          Version: RouterOS 6.28 or lower
        
          Description: Doesn't have any temperature sensors
          Version: RouterOS 6.38.5
          Device: Mikrotik 941-2nD, Mikrotik 951G-2HnD
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        At the core of all MikroTik hardware is RouterOS, a powerful and versatile operating system. It offers a vast array of networking features.
        
        ### Known Issues
        
        - Description: Doesn't have ifHighSpeed filled. Fixed in more recent versions
          - Version: RouterOS 6.28 or lower
        
        - Description: Doesn't have any temperature sensors
          - Version: RouterOS 6.38.5
          - Device: Mikrotik 941-2nD, Mikrotik 951G-2HnD
      vendor:
        name: Zabbix
        version: 8.0-3
      groups:
        - name: 'Templates/Network devices'
      items:
        - uuid: cba2e98b8ea14ff0a03dee515337ac7d
          name: 'ICMP ping'
          type: SIMPLE
          key: icmpping
          description: |
            The host accessibility by ICMP ping.
            
            0 - ICMP ping fails;
            1 - ICMP ping successful.
          valuemap:
            name: 'Service state'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: dc51a869c302440ba48d352545782e6e
              expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0'
              name: 'MikroTik: Unavailable by ICMP ping'
              priority: HIGH
              description: 'Last three attempts returned timeout. Please check device connectivity.'
              tags:
                - tag: scope
                  value: availability
        - uuid: 81b47dcd39864dd6812344bd0dc34963
          name: 'ICMP loss'
          type: SIMPLE
          key: icmppingloss
          value_type: FLOAT
          units: '%'
          description: 'The percentage of lost packets.'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 83fa0a00b298491a967e052ec0c3bafe
              expression: 'min(/Mikrotik by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mikrotik by SNMP/icmppingloss,5m)<100'
              name: 'MikroTik: High ICMP ping loss'
              opdata: 'Loss: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'ICMP packets loss detected.'
              dependencies:
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
        - uuid: 3bb0c6c8aad64f21a11dc58c6be2eeaf
          name: 'ICMP response time'
          type: SIMPLE
          key: icmppingsec
          value_type: FLOAT
          units: s
          description: 'The ICMP ping response time (in seconds).'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 7c027442ed3c44a0a26b4f35458a37f9
              expression: 'avg(/Mikrotik by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}'
              name: 'MikroTik: High ICMP ping response time'
              opdata: 'Value: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Average ICMP response time is too high.'
              dependencies:
                - name: 'MikroTik: High ICMP ping loss'
                  expression: 'min(/Mikrotik by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/Mikrotik by SNMP/icmppingloss,5m)<100'
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
        - uuid: 3eaa90d933914ba18663ebf21c4675bb
          name: 'Mikrotik: SNMP walk network interfaces'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]'
          key: net.if.walk
          history: '0'
          value_type: TEXT
          description: 'Discovering interfaces from IF-MIB.'
          tags:
            - tag: component
              value: raw
        - uuid: a23fdffc346b4adb833924d9975542c2
          name: 'SNMP walk wireless interfaces'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]'
          key: net.if.wireless.walk
          history: '0'
          value_type: TEXT
          tags:
            - tag: component
              value: raw
        - uuid: 540698a8c58d4a659e2c2ecdd5cb76e0
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: 9d2b98385edb49979abcde5481560253
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'system.contact[sysContact.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 2f9bb0334ae74e22b3ff917dec5fa924
          name: 'SNMP walk system CPUs'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]'
          key: system.cpu.walk
          history: '0'
          value_type: TEXT
          description: |
            MIB: HOST-RESOURCES-MIB
            Discovering system CPUs.
          tags:
            - tag: component
              value: raw
        - uuid: 763d10f3cf344cd488db9c156c893d18
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'system.descr[sysDescr.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 260eff3ec4034e33aea9c25962a782be
          name: 'Firmware version'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]'
          key: system.hw.firmware
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            Current firmware version.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 62a9cd04a4dc4f5a9b59a01e54fb983f
              expression: 'last(/Mikrotik by SNMP/system.hw.firmware,#1)<>last(/Mikrotik by SNMP/system.hw.firmware,#2) and length(last(/Mikrotik by SNMP/system.hw.firmware))>0'
              name: 'MikroTik: Firmware has changed'
              opdata: 'Current value: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'Firmware version has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 8d2c5a405ffa42fc81a2c9b914e20874
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: system.hw.model
          delay: 1h
          value_type: CHAR
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 2c5a89f75a8d4e38ad021b3539ce8273
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]'
          key: system.hw.serialnumber
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            RouterBOARD serial number.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 6c1dcb2e8e76405887af69a6a08e53df
              expression: 'last(/Mikrotik by SNMP/system.hw.serialnumber,#1)<>last(/Mikrotik by SNMP/system.hw.serialnumber,#2) and length(last(/Mikrotik by SNMP/system.hw.serialnumber))>0'
              name: 'MikroTik: Device has been replaced'
              event_name: 'MikroTik: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 94f4af679dba4d3e9047ebcf8c1bc419
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'system.hw.uptime[hrSystemUptime.0]'
          delay: 30s
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 9766fcd2e7b64865a6ef60f3ab27002f
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'system.location[sysLocation.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 2d99a01f7c0d4ca38f3bc9a5f8db3ab7
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: system.name
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 0172b76bc48d4dcead140c4880499777
              expression: 'last(/Mikrotik by SNMP/system.name,#1)<>last(/Mikrotik by SNMP/system.name,#2) and length(last(/Mikrotik by SNMP/system.name))>0'
              name: 'MikroTik: System name has changed'
              event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
                - tag: scope
                  value: security
        - uuid: ff6fea946fb143e3b8b151eafb403952
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'system.net.uptime[sysUpTime.0]'
          delay: 30s
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            Time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 9d8a27d216f146ae88479e8e6bcbd301
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'system.objectid[sysObjectID.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 7e3b3e78086742a7b9cda953367a2d83
          name: 'Operating system'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]'
          key: 'system.sw.os[mtxrLicVersion.0]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            Software version.
          inventory_link: OS
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: os
          triggers:
            - uuid: 739f60e0862d4fe88cc2a5fe626211a8
              expression: 'last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/Mikrotik by SNMP/system.sw.os[mtxrLicVersion.0]))>0'
              name: 'MikroTik: Operating system description has changed'
              priority: INFO
              description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: System name has changed'
                  expression: 'last(/Mikrotik by SNMP/system.name,#1)<>last(/Mikrotik by SNMP/system.name,#2) and length(last(/Mikrotik by SNMP/system.name))>0'
              tags:
                - tag: scope
                  value: notice
        - uuid: 2af6a2f85926468ab8242e4f5c6fb096
          name: 'SNMP walk mounted filesystems'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]'
          key: vfs.fs.walk
          history: '0'
          value_type: TEXT
          description: |
            MIB: HOST-RESOURCES-MIB
            Discovering mounted filesystems.
          tags:
            - tag: component
              value: raw
        - uuid: 0636e173288d42e68faf62c381a65087
          name: 'Total memory'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]'
          key: 'vm.memory.total[hrStorageSize.Memory]'
          units: B
          description: |
            MIB: HOST-RESOURCES-MIB
            The size of the storage represented by this entry, in
            units of hrStorageAllocationUnits. This object is
            writable to allow remote configuration of the size of
            the storage area in those cases where such an
            operation makes sense and is possible on the
            underlying system. For example, the amount of main
            memory allocated to a buffer pool might be modified or
            the amount of disk space allocated to virtual memory
            might be modified.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '1024'
          tags:
            - tag: component
              value: memory
        - uuid: 7d4a1591887848028ea8bae81b7d01a7
          name: 'Used memory'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]'
          key: 'vm.memory.used[hrStorageUsed.Memory]'
          units: B
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '1024'
          tags:
            - tag: component
              value: memory
        - uuid: 56017f610bf74f0aaaa92e9183e68ea5
          name: 'Memory utilization'
          type: CALCULATED
          key: 'vm.memory.util[memoryUsedPercentage.Memory]'
          value_type: FLOAT
          units: '%'
          params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100'
          description: 'Memory utilization in %.'
          tags:
            - tag: component
              value: memory
          triggers:
            - uuid: e4b4ba5ec80c4d83adbb10739edf4574
              expression: 'min(/Mikrotik by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}'
              name: 'MikroTik: High memory utilization'
              event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
              priority: AVERAGE
              description: 'The system is running out of free memory.'
              tags:
                - tag: scope
                  value: capacity
                - tag: scope
                  value: performance
        - uuid: 754f890d63c042f6976a1ad25c317574
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          description: |
            Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
            Possible values:
            0 - not available
            1 - available
            2 - unknown
          valuemap:
            name: zabbix.host.available
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 2cc6310f1a824d40903f497f155a7834
              expression: 'max(/Mikrotik by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'MikroTik: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              dependencies:
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/Mikrotik by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
      discovery_rules:
        - uuid: fb2a399dbdb54484a9f58ae2437c32fb
          name: 'CPU discovery'
          type: DEPENDENT
          key: hrProcessorLoad.discovery
          description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.'
          item_prototypes:
            - uuid: 560173245c8245128bc7071b8201fe12
              name: '#{#SNMPINDEX}: CPU utilization'
              type: DEPENDENT
              key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]'
              value_type: FLOAT
              units: '%'
              description: |
                MIB: HOST-RESOURCES-MIB
                The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: system.cpu.walk
              tags:
                - tag: component
                  value: cpu
              trigger_prototypes:
                - uuid: 7843aa49df2b4f218bf633bee4f01df6
                  expression: 'min(/Mikrotik by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}'
                  name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization'
                  event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
                  opdata: 'Current utilization: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'CPU utilization is too high. The system might be slow to respond.'
                  tags:
                    - tag: scope
                      value: performance
          graph_prototypes:
            - uuid: 1e6e64b461dc4010a582d2f39fcfa4f8
              name: '#{#SNMPINDEX}: CPU utilization'
              ymin_type_1: FIXED
              ymax_type_1: FIXED
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]'
          master_item:
            key: system.cpu.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.2.1.25.3.3.1.1
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 9a4ae5c2a50d4414ab0eed2c70bcd9c3
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]'
          key: mtxrHlProcessorTemperature.discovery
          delay: 1h
          description: |
            MIKROTIK-MIB::mtxrHlProcessorTemperature
            Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items.
          item_prototypes:
            - uuid: ad101c676b5243eca67eb68d879f5212
              name: 'CPU: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]'
              key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: MIKROTIK-MIB
                mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C).
                Might be missing in entry models (RB750, RB450G..).
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: edcc83694dc847f8a8dcb7e192f96404
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3'
                  name: 'MikroTik: CPU: Temperature is above critical threshold'
                  event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: 1c380934165343a68345c761de9cbdb5
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3'
                  name: 'MikroTik: CPU: Temperature is above warning threshold'
                  event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  dependencies:
                    - name: 'MikroTik: CPU: Temperature is above critical threshold'
                      expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}'
                      recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: 47a89879a7db47e9bf598e27f7c084e7
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/Mikrotik by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3'
                  name: 'MikroTik: CPU: Temperature is too low'
                  event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.4.1.14988.1.1.3.11
                - '0'
              error_handler: DISCARD_VALUE
        - uuid: 9c6a401a70ec4dba92bd9e270fe7dc79
          name: 'Temperature sensor discovery'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]'
          key: mtxrHlTemperature.discovery
          delay: 1h
          description: |
            MIKROTIK-MIB::mtxrHlTemperature
            Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items.
          item_prototypes:
            - uuid: 2bfb758ca6264401902524b32e04f472
              name: 'Device: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]'
              key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: MIKROTIK-MIB
                mtxrHlTemperature Device temperature in Celsius (degrees C).
                Might be missing in entry models (RB750, RB450G..).
                
                Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 21afb343688c4c0e8189a7dbc4f441e1
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3'
                  name: 'MikroTik: Device: Temperature is above critical threshold'
                  event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: 0ba64ff53885473ca8dcd333a770a7ed
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3'
                  name: 'MikroTik: Device: Temperature is above warning threshold'
                  event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  dependencies:
                    - name: 'MikroTik: Device: Temperature is above critical threshold'
                      expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}'
                      recovery_expression: 'max(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: cdbfc8fabf9f45fc95dedba327e30a1d
                  expression: 'avg(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/Mikrotik by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3'
                  name: 'MikroTik: Device: Temperature is too low'
                  event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.4.1.14988.1.1.3.10
                - '0'
              error_handler: DISCARD_VALUE
        - uuid: 017797e68eae49afaa864dd57757bbd8
          name: 'LTE modem discovery'
          type: DEPENDENT
          key: mtxrLTEModem.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFNAME}'
                value: '{$IFNAME.LTEMODEM.MATCHES}'
              - macro: '{#IFTYPE}'
                value: ^1$
          description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.'
          item_prototypes:
            - uuid: 25cf4b11ade848fb9947ef85c59da65a
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP'
              type: DEPENDENT
              key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]'
              value_type: FLOAT
              units: dbm
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSRP Reference Signal Received Power.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: f23c654001384f6e981fd33aeab0af6f
                  expression: 'max(/Mikrotik by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: 467f6179fa7d43c2a23333330c1ceac1
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ'
              type: DEPENDENT
              key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]'
              value_type: FLOAT
              units: db
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSRQ Reference Signal Received Quality.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: 57f8757b80914c248a35d0899791a48e
                  expression: 'max(/Mikrotik by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: 0994d40dab10493c96c4f79d0cc5e619
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI'
              type: DEPENDENT
              key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]'
              value_type: FLOAT
              units: dbm
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSSI Received Signal Strength Indicator.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: e2c692d5d4ca49b688656a1abe6228e5
                  expression: 'max(/Mikrotik by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: 1c5a284353964175b4541c78fea7d07d
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR'
              type: DEPENDENT
              key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]'
              value_type: FLOAT
              units: db
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: e163c4af8ff1451a8728e569c5d3c04c
                  expression: 'max(/Mikrotik by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          graph_prototypes:
            - uuid: 4f6bc67c40eb441189ec233f926f19ec
              name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]'
                - sortorder: '2'
                  color: 00611C
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]'
                - sortorder: '3'
                  color: F7941D
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]'
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 5eada6e6837648859ccb440525281698
          name: 'AP channel discovery'
          type: DEPENDENT
          key: mtxrWlAp.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFADMINSTATUS}'
                value: ^1$
              - macro: '{#IFTYPE}'
                value: ^71$
          description: 'MIKROTIK-MIB::mtxrWlAp.'
          item_prototypes:
            - uuid: db129187106741d88fc14774a1a5652d
              name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients'
              type: DEPENDENT
              key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApAuthClientCount Number of authentication clients.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: a9ca50960dd043038808f3572d1fb281
              name: 'Interface {#IFNAME}({#IFALIAS}): AP band'
              type: DEPENDENT
              key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApBand
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 9f5c294b30d24e5084e8953173bf886e
              name: 'Interface {#IFNAME}({#IFALIAS}): SSID'
              type: DEPENDENT
              key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApSsid Service Set Identifier.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 6140d7fe8011400cb827339f8f6f9cdf
              name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor'
              type: DEPENDENT
              key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]'
              value_type: FLOAT
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApNoiseFloor
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 15m
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 45fc6875a91d47debb4e39d93e5b8186
              name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients'
              type: DEPENDENT
              key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
                - '{#IFADMINSTATUS}'
                - 1.3.6.1.2.1.2.2.1.7
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 644433b2a1fa4b38916e2ae4bf74c28d
          name: 'CAPsMAN AP channel discovery'
          type: DEPENDENT
          key: mtxrWlCMChannel.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFNAME}'
                value: '{$IFNAME.WIFI.MATCHES}'
              - macro: '{#IFTYPE}'
                value: ^1$
          description: 'MIKROTIK-MIB::mtxrWlCMChannel.'
          item_prototypes:
            - uuid: 5dc0caa311304e6a96c620b10f52f267
              name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients'
              type: DEPENDENT
              key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMAuthClientCount Number of authentication clients.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 7df773f57c234d219f5a75e11844f5e0
              name: 'Interface {#IFNAME}({#IFALIAS}): AP channel'
              type: DEPENDENT
              key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMChannel
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 0db356f16542489586aacdecb029f691
              name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients'
              type: DEPENDENT
              key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: e2212bb46d804d6687a2fe992f867b9d
              name: 'Interface {#IFNAME}({#IFALIAS}): AP state'
              type: DEPENDENT
              key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMState Wireless interface state.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: e4aedbd5e0c64cf48831bf08192e19bf
                  expression: 'last(/Mikrotik by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running'
                  priority: WARNING
                  description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 39f9ac305fe2497498916dc709b9a097
          name: 'Network interfaces discovery'
          type: DEPENDENT
          key: net.if.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFADMINSTATUS}'
                value: '{$NET.IF.IFADMINSTATUS.MATCHES}'
              - macro: '{#IFADMINSTATUS}'
                value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.MATCHES}'
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFDESCR}'
                value: '{$NET.IF.IFDESCR.MATCHES}'
              - macro: '{#IFDESCR}'
                value: '{$NET.IF.IFDESCR.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.MATCHES}'
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.MATCHES}'
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFTYPE}'
                value: '{$NET.IF.IFTYPE.MATCHES}'
              - macro: '{#IFTYPE}'
                value: '{$NET.IF.IFTYPE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          description: 'Discovering interfaces from IF-MIB.'
          item_prototypes:
            - uuid: 2048a885fd67433786f6c3f650962a71
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded'
              type: DEPENDENT
              key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                The number of inbound packets which were chosen to be discarded
                even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
                One possible reason for discarding such a packet could be to free up buffer space.
                Discontinuities in the value of this counter can occur at re-initialization of the management system,
                and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 32e41ced890a4b349a5167269450efa6
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors'
              type: DEPENDENT
              key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 10806818bfa34f2c94ab9a42720e7e41
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits received'
              type: DEPENDENT
              key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
              units: bps
              description: |
                MIB: IF-MIB
                The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: e899752523044d2c830e9cd48ba2cb72
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded'
              type: DEPENDENT
              key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                The number of outbound packets which were chosen to be discarded
                even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
                One possible reason for discarding such a packet could be to free up buffer space.
                Discontinuities in the value of this counter can occur at re-initialization of the management system,
                and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: d3fd9bb2202e441282a6008dbf27cc5b
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors'
              type: DEPENDENT
              key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: af78d9ecefd445c5840bf09e1b3ef438
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent'
              type: DEPENDENT
              key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
              units: bps
              description: |
                MIB: IF-MIB
                The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 16c880544cb741fb90c5ba2823225bb0
              name: 'Interface {#IFNAME}({#IFALIAS}): Speed'
              type: DEPENDENT
              key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]'
              trends: '0'
              units: bps
              description: |
                MIB: IF-MIB
                An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`.
                For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth.
                For a sub-layer which has no concept of bandwidth, this object should be zero.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1000000'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 3fd63f1049924a5491b9080702bc5fdb
              name: 'Interface {#IFNAME}({#IFALIAS}): Operational status'
              type: DEPENDENT
              key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: IF-MIB
                The current operational state of the interface.
                - The testing(3) state indicates that no operational packet scan be passed
                - If ifAdminStatus is down(2) then ifOperStatus should be down(2)
                - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic
                - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection)
                - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state
                - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components.
              valuemap:
                name: 'IF-MIB::ifOperStatus'
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: db74692dd86a428fba64e57751fce1ba
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: |
                    This trigger expression works as follows:
                    1. It can be triggered if the operations status is down.
                    2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down.
                    3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.)
                    
                    WARNING: if closed manually - it will not fire again on the next poll, because of .diff.
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: availability
            - uuid: 5fb27bdadc9848118bc64a720ff6dea0
              name: 'Interface {#IFNAME}({#IFALIAS}): Interface type'
              type: DEPENDENT
              key: 'net.if.type[ifType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: IF-MIB
                The type of interface.
                Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA),
                through updating the syntax of the IANAifType textual convention.
              valuemap:
                name: 'IF-MIB::ifType'
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1d
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
          trigger_prototypes:
            - uuid: 564e8f3f288a40e9926b75b2711f45d1
              expression: |
                change(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
                and (
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or
                last(/Mikrotik by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117
                )
                and
                (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                (change(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
                (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before'
              opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 25cc75fecfd1499ebc65ea434b98cb18
              expression: |
                (avg(/Mikrotik by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or
                avg(/Mikrotik by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and
                last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                avg(/Mikrotik by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and
                avg(/Mikrotik by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Mikrotik by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage'
              event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)'
              opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'The utilization of the network interface is close to its estimated maximum bandwidth.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 4c3aef072fcb47b98f0cdc3b651fae71
              expression: |
                min(/Mikrotik by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
                or min(/Mikrotik by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                max(/Mikrotik by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
                and max(/Mikrotik by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate'
              event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)'
              opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/Mikrotik by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
          graph_prototypes:
            - uuid: 6c0e720cb0f24bf4a8cfbebb2759dde9
              name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
                - sortorder: '1'
                  drawtype: BOLD_LINE
                  color: F63100
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
                - sortorder: '2'
                  color: 00611C
                  yaxisside: RIGHT
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]'
                - sortorder: '3'
                  color: F7941D
                  yaxisside: RIGHT
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]'
                - sortorder: '4'
                  color: FC6EA3
                  yaxisside: RIGHT
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]'
                - sortorder: '5'
                  color: 6C59DC
                  yaxisside: RIGHT
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]'
          master_item:
            key: net.if.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFOPERSTATUS}'
                - 1.3.6.1.2.1.2.2.1.8
                - '0'
                - '{#IFADMINSTATUS}'
                - 1.3.6.1.2.1.2.2.1.7
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFNAME}'
                - 1.3.6.1.2.1.31.1.1.1.1
                - '0'
                - '{#IFDESCR}'
                - 1.3.6.1.2.1.2.2.1.2
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 6bb65981928d40378a95ee74aff82cc5
          name: 'Storage discovery'
          type: DEPENDENT
          key: storage.discovery
          filter:
            evaltype: OR
            conditions:
              - macro: '{#STORAGE_TYPE}'
                value: .+4$
              - macro: '{#STORAGE_TYPE}'
                value: .+hrStorageFixedDisk
          description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.'
          item_prototypes:
            - uuid: b602ff4381e04e50a9282fe6f9f5c834
              name: 'Disk-{#SNMPINDEX}: Space utilization'
              type: CALCULATED
              key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]'
              value_type: FLOAT
              units: '%'
              params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100'
              description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
            - uuid: 64747345083e4b38b0e963ccd0b8271b
              name: 'Disk-{#SNMPINDEX}: Total space'
              type: DEPENDENT
              key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
              units: B
              description: |
                MIB: HOST-RESOURCES-MIB
                The size of the storage represented by this entry, in
                units of hrStorageAllocationUnits. This object is
                writable to allow remote configuration of the size of
                the storage area in those cases where such an
                operation makes sense and is possible on the
                underlying system. For example, the amount of main
                memory allocated to a buffer pool might be modified or
                the amount of disk space allocated to virtual memory
                might be modified.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: vfs.fs.walk
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
            - uuid: 35034472b281453bbfbcf65b5d60dd7e
              name: 'Disk-{#SNMPINDEX}: Used space'
              type: DEPENDENT
              key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]'
              units: B
              description: |
                MIB: HOST-RESOURCES-MIB
                The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: vfs.fs.walk
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
          trigger_prototypes:
            - uuid: c866ac0197ee401ab0c5cc6ec0757985
              expression: |
                last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and
                ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low'
              event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)'
              opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})'
              priority: AVERAGE
              description: |
                Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}.
                 Second condition should be one of the following:
                 - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}.
                 - The disk will be full in less than 24 hours.
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: capacity
            - uuid: 9adb977fde7345d8950265a9127cde57
              expression: |
                last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and
                ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low'
              event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)'
              opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})'
              priority: WARNING
              description: |
                Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}.
                 Second condition should be one of the following:
                 - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}.
                 - The disk will be full in less than 24 hours.
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low'
                  expression: |
                    last(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and
                    ((last(/Mikrotik by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/Mikrotik by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/Mikrotik by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: capacity
          graph_prototypes:
            - uuid: 82acee070ff1461ba0cdff337184da97
              name: 'Disk-{#SNMPINDEX}: Disk space usage'
              width: '600'
              height: '340'
              type: PIE
              show_3d: 'YES'
              graph_items:
                - color: '969696'
                  calc_fnc: LAST
                  type: GRAPH_SUM
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
                - sortorder: '1'
                  color: C80000
                  calc_fnc: LAST
                  item:
                    host: 'Mikrotik by SNMP'
                    key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]'
          master_item:
            key: vfs.fs.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#FSNAME}'
                - 1.3.6.1.2.1.25.2.3.1.3
                - '0'
                - '{#ALLOC_UNITS}'
                - 1.3.6.1.2.1.25.2.3.1.4
                - '0'
                - '{#STORAGE_TYPE}'
                - 1.3.6.1.2.1.25.2.3.1.2
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
      tags:
        - tag: class
          value: network
        - tag: target
          value: mikrotik
      macros:
        - macro: '{$CPU.UTIL.CRIT}'
          value: '90'
          description: 'The critical threshold of CPU utilization expressed in %.'
          config:
            type: TEXT
            priority: '1'
            section_name: Thresholds
            label: 'Threshold for CPU utilization (critical)'
            description: 'The critical threshold of CPU utilization expressed in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$ICMP_LOSS_WARN}'
          value: '20'
          description: 'Warning threshold of ICMP packet loss in %.'
          config:
            type: TEXT
            priority: '17'
            section_name: Thresholds
            label: 'Threshold of ICMP packet loss'
            description: 'Warning threshold of ICMP packet loss in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$ICMP_RESPONSE_TIME_WARN}'
          value: '0.15'
          description: 'Warning threshold of the average ICMP response time in seconds.'
          config:
            type: TEXT
            priority: '18'
            section_name: Thresholds
            label: 'Threshold of the average ICMP response'
            description: 'Warning threshold of the average ICMP response time in seconds. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.ERRORS.WARN}'
          value: '2'
          description: 'Warning threshold of error packet rate. Can be used with interface name as context.'
          config:
            type: TEXT
            priority: '21'
            section_name: Thresholds
            label: 'Threshold of error packet rate'
            description: 'Warning threshold of error packet rate. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.UTIL.MAX}'
          value: '90'
          description: 'Used as a threshold in the interface utilization trigger.'
          config:
            type: TEXT
            priority: '20'
            section_name: Thresholds
            label: 'The threshold in the interface utilization'
            description: 'Used as a threshold in the interface utilization trigger. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IFCONTROL}'
          value: '1'
          description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".'
          config:
            type: CHECKBOX
            priority: '19'
            label: 'Interfaces control'
            description: 'Fire a trigger when the interface operational status changes to "Link down".'
            options:
              - checked: '1'
                unchecked: '0'
        - macro: '{$IFNAME.LTEMODEM.MATCHES}'
          value: ^lte
          description: 'This macro is used in LTE modem discovery. It can be overridden on the host.'
          config:
            type: TEXT
            priority: '14'
            section_name: Filters
            label: 'Filter for LTE interfaces'
            description: 'This is Used in LTE modem discovery.'
        - macro: '{$IFNAME.WIFI.MATCHES}'
          value: WIFI
          description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.'
          config:
            type: TEXT
            priority: '15'
            section_name: Filters
            label: 'Filter for CAPsMAN interfaces'
            description: 'This is Used in CAPsMAN AP channel discovery.'
        - macro: '{$LTEMODEM.RSRP.MIN.WARN}'
          value: '-100'
          description: 'The LTE modem RSRP minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '11'
            section_name: Thresholds
            label: 'The LTE modem RSRP minimum value'
            description: 'LTE modem RSRP minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.RSRQ.MIN.WARN}'
          value: '-20'
          description: 'The LTE modem RSRQ minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Thresholds
            label: 'The LTE modem RSRQ minimum value'
            description: 'LTE modem RSRQ minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.RSSI.MIN.WARN}'
          value: '-100'
          description: 'The LTE modem RSSI minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '10'
            section_name: Thresholds
            label: 'The LTE modem RSSI minimum value'
            description: 'LTE modem RSSI minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.SINR.MIN.WARN}'
          value: '0'
          description: 'The LTE modem SINR minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Thresholds
            label: 'The LTE modem SINR minimum value'
            description: 'LTE modem SINR minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$MEMORY.UTIL.MAX}'
          value: '90'
          description: 'Threshold for maximum memory utilization in %.'
          config:
            type: TEXT
            priority: '2'
            section_name: Thresholds
            label: 'Threshold for memory utilization'
            description: 'Threshold for maximum memory utilization in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}'
          value: '^.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '26'
            section_name: Filters
            label: 'Filter network interface by adminstatus'
            description: 'Regex string to include discovered interface by adminstatus.'
        - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
          value: ^2$
          description: 'Ignore `down(2)` administrative status'
          config:
            type: TEXT
            priority: '27'
            section_name: Filters
            label: 'Filter network interface by adminstatus (exclude)'
            description: 'Regex string to exclude discovered interface by adminstatus.'
        - macro: '{$NET.IF.IFALIAS.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '30'
            section_name: Filters
            label: 'Filter network interface by alias'
            description: 'Regex string to include discovered interface by alias.'
        - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '31'
            section_name: Filters
            label: 'Filter network interface by alias (exclude)'
            description: 'Regex string to exclude discovered interface by alias.'
        - macro: '{$NET.IF.IFDESCR.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '28'
            section_name: Filters
            label: 'Filter network interface by description'
            description: 'Regex string to include discovered interface by description.'
        - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '29'
            section_name: Filters
            label: 'Filter network interface by description (exclude)'
            description: 'Regex string to exclude discovered interface by description.'
        - macro: '{$NET.IF.IFNAME.MATCHES}'
          value: '^.*$'
          description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '22'
            section_name: Filters
            label: 'Filter for network interface by name'
            description: 'Regex string to include discovered interface by name.'
        - macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
          value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
          description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.'
          config:
            type: TEXT
            priority: '23'
            section_name: Filters
            label: 'Filter for network interface by name (exclude)'
            description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.'
        - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}'
          value: '^.*$'
          description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '24'
            section_name: Filters
            label: 'Filter network interface by status'
            description: 'Regex string to include discovered interface by status.'
        - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
          value: ^6$
          description: 'Ignore `notPresent(6)`'
          config:
            type: TEXT
            priority: '25'
            section_name: Filters
            label: 'Filter network interface by status (exclude)'
            description: 'Regex string to exclude discovered interface by status.'
        - macro: '{$NET.IF.IFTYPE.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '32'
            section_name: Filters
            label: 'Filter network interface by type'
            description: 'Regex string to include discovered interface by type.'
        - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '33'
            section_name: Filters
            label: 'Filter network interface by type (exclude)'
            description: 'Regex string to exclude discovered interface by type.'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'Time interval for the SNMP availability trigger.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Time interval'
            description: 'Time interval for the SNMP availability trigger.'
        - macro: '{$TEMP_CRIT}'
          value: '60'
          description: 'Critical threshold for temperature.'
          config:
            type: TEXT
            priority: '5'
            section_name: Thresholds
            label: 'Threshold for temperature (critical)'
            description: 'Critical threshold for temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_CRIT:"CPU"}'
          value: '75'
          description: 'Critical threshold for CPU temperature.'
          config:
            type: TEXT
            priority: '7'
            section_name: Thresholds
            label: 'Threshold for CPU temperature (critical)'
            description: 'Critical threshold for CPU temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_CRIT_LOW}'
          value: '5'
          description: 'Critical threshold for low temperature.'
          config:
            type: TEXT
            priority: '3'
            section_name: Thresholds
            label: 'Threshold for low temperature (critical)'
            description: 'Critical threshold for low temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_WARN}'
          value: '50'
          description: 'Warning threshold for temperature.'
          config:
            type: TEXT
            priority: '4'
            section_name: Thresholds
            label: 'Threshold for temperature (warning)'
            description: 'Warning threshold for temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_WARN:"CPU"}'
          value: '70'
          description: 'Warning threshold for CPU temperature.'
          config:
            type: TEXT
            priority: '6'
            section_name: Thresholds
            label: 'Threshold for CPU temperature (warning)'
            description: 'Warning threshold for CPU temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.CRIT}'
          value: '90'
          description: 'The critical threshold of filesystem utilization.'
          config:
            type: TEXT
            priority: '9'
            section_name: Thresholds
            label: 'Threshold for filesystem utilization (critical)'
            description: 'The critical threshold of filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.WARN}'
          value: '80'
          description: 'The warning threshold of filesystem utilization.'
          config:
            type: TEXT
            priority: '8'
            section_name: Thresholds
            label: 'Threshold for filesystem utilization (warning)'
            description: 'The warning threshold of filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      dashboards:
        - uuid: 923cc21534e0400d8a8e325ebc199549
          name: 'Network interfaces'
          pages:
            - widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'Mikrotik by SNMP'
                        name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
                    - type: STRING
                      name: reference
                      value: AAAAA
      valuemaps:
        - uuid: b020eb645cff47c0b91891a36652c087
          name: 'IF-MIB::ifOperStatus'
          mappings:
            - value: '1'
              newvalue: up
            - value: '2'
              newvalue: down
            - value: '4'
              newvalue: unknown
            - value: '5'
              newvalue: dormant
            - value: '6'
              newvalue: notPresent
            - value: '7'
              newvalue: lowerLayerDown
        - uuid: 0ab024c489794d1299d2992ad5b3e1e8
          name: 'IF-MIB::ifType'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: regular1822
            - value: '3'
              newvalue: hdh1822
            - value: '4'
              newvalue: ddnX25
            - value: '5'
              newvalue: rfc877x25
            - value: '6'
              newvalue: ethernetCsmacd
            - value: '7'
              newvalue: iso88023Csmacd
            - value: '8'
              newvalue: iso88024TokenBus
            - value: '9'
              newvalue: iso88025TokenRing
            - value: '10'
              newvalue: iso88026Man
            - value: '11'
              newvalue: starLan
            - value: '12'
              newvalue: proteon10Mbit
            - value: '13'
              newvalue: proteon80Mbit
            - value: '14'
              newvalue: hyperchannel
            - value: '15'
              newvalue: fddi
            - value: '16'
              newvalue: lapb
            - value: '17'
              newvalue: sdlc
            - value: '18'
              newvalue: ds1
            - value: '19'
              newvalue: e1
            - value: '20'
              newvalue: basicISDN
            - value: '21'
              newvalue: primaryISDN
            - value: '22'
              newvalue: propPointToPointSerial
            - value: '23'
              newvalue: ppp
            - value: '24'
              newvalue: softwareLoopback
            - value: '25'
              newvalue: eon
            - value: '26'
              newvalue: ethernet3Mbit
            - value: '27'
              newvalue: nsip
            - value: '28'
              newvalue: slip
            - value: '29'
              newvalue: ultra
            - value: '30'
              newvalue: ds3
            - value: '31'
              newvalue: sip
            - value: '32'
              newvalue: frameRelay
            - value: '33'
              newvalue: rs232
            - value: '34'
              newvalue: para
            - value: '35'
              newvalue: arcnet
            - value: '36'
              newvalue: arcnetPlus
            - value: '37'
              newvalue: atm
            - value: '38'
              newvalue: miox25
            - value: '39'
              newvalue: sonet
            - value: '40'
              newvalue: x25ple
            - value: '41'
              newvalue: iso88022llc
            - value: '42'
              newvalue: localTalk
            - value: '43'
              newvalue: smdsDxi
            - value: '44'
              newvalue: frameRelayService
            - value: '45'
              newvalue: v35
            - value: '46'
              newvalue: hssi
            - value: '47'
              newvalue: hippi
            - value: '48'
              newvalue: modem
            - value: '49'
              newvalue: aal5
            - value: '50'
              newvalue: sonetPath
            - value: '51'
              newvalue: sonetVT
            - value: '52'
              newvalue: smdsIcip
            - value: '53'
              newvalue: propVirtual
            - value: '54'
              newvalue: propMultiplexor
            - value: '55'
              newvalue: ieee80212
            - value: '56'
              newvalue: fibreChannel
            - value: '57'
              newvalue: hippiInterface
            - value: '58'
              newvalue: frameRelayInterconnect
            - value: '59'
              newvalue: aflane8023
            - value: '60'
              newvalue: aflane8025
            - value: '61'
              newvalue: cctEmul
            - value: '62'
              newvalue: fastEther
            - value: '63'
              newvalue: isdn
            - value: '64'
              newvalue: v11
            - value: '65'
              newvalue: v36
            - value: '66'
              newvalue: g703at64k
            - value: '67'
              newvalue: g703at2mb
            - value: '68'
              newvalue: qllc
            - value: '69'
              newvalue: fastEtherFX
            - value: '70'
              newvalue: channel
            - value: '71'
              newvalue: ieee80211
            - value: '72'
              newvalue: ibm370parChan
            - value: '73'
              newvalue: escon
            - value: '74'
              newvalue: dlsw
            - value: '75'
              newvalue: isdns
            - value: '76'
              newvalue: isdnu
            - value: '77'
              newvalue: lapd
            - value: '78'
              newvalue: ipSwitch
            - value: '79'
              newvalue: rsrb
            - value: '80'
              newvalue: atmLogical
            - value: '81'
              newvalue: ds0
            - value: '82'
              newvalue: ds0Bundle
            - value: '83'
              newvalue: bsc
            - value: '84'
              newvalue: async
            - value: '85'
              newvalue: cnr
            - value: '86'
              newvalue: iso88025Dtr
            - value: '87'
              newvalue: eplrs
            - value: '88'
              newvalue: arap
            - value: '89'
              newvalue: propCnls
            - value: '90'
              newvalue: hostPad
            - value: '91'
              newvalue: termPad
            - value: '92'
              newvalue: frameRelayMPI
            - value: '93'
              newvalue: x213
            - value: '94'
              newvalue: adsl
            - value: '95'
              newvalue: radsl
            - value: '96'
              newvalue: sdsl
            - value: '97'
              newvalue: vdsl
            - value: '98'
              newvalue: iso88025CRFPInt
            - value: '99'
              newvalue: myrinet
            - value: '100'
              newvalue: voiceEM
            - value: '101'
              newvalue: voiceFXO
            - value: '102'
              newvalue: voiceFXS
            - value: '103'
              newvalue: voiceEncap
            - value: '104'
              newvalue: voiceOverIp
            - value: '105'
              newvalue: atmDxi
            - value: '106'
              newvalue: atmFuni
            - value: '107'
              newvalue: atmIma
            - value: '108'
              newvalue: pppMultilinkBundle
            - value: '109'
              newvalue: ipOverCdlc
            - value: '110'
              newvalue: ipOverClaw
            - value: '111'
              newvalue: stackToStack
            - value: '112'
              newvalue: virtualIpAddress
            - value: '113'
              newvalue: mpc
            - value: '114'
              newvalue: ipOverAtm
            - value: '115'
              newvalue: iso88025Fiber
            - value: '116'
              newvalue: tdlc
            - value: '117'
              newvalue: gigabitEthernet
            - value: '118'
              newvalue: hdlc
            - value: '119'
              newvalue: lapf
            - value: '120'
              newvalue: v37
            - value: '121'
              newvalue: x25mlp
            - value: '122'
              newvalue: x25huntGroup
            - value: '123'
              newvalue: trasnpHdlc
            - value: '124'
              newvalue: interleave
            - value: '125'
              newvalue: fast
            - value: '126'
              newvalue: ip
            - value: '127'
              newvalue: docsCableMaclayer
            - value: '128'
              newvalue: docsCableDownstream
            - value: '129'
              newvalue: docsCableUpstream
            - value: '130'
              newvalue: a12MppSwitch
            - value: '131'
              newvalue: tunnel
            - value: '132'
              newvalue: coffee
            - value: '133'
              newvalue: ces
            - value: '134'
              newvalue: atmSubInterface
            - value: '135'
              newvalue: l2vlan
            - value: '136'
              newvalue: l3ipvlan
            - value: '137'
              newvalue: l3ipxvlan
            - value: '138'
              newvalue: digitalPowerline
            - value: '139'
              newvalue: mediaMailOverIp
            - value: '140'
              newvalue: dtm
            - value: '141'
              newvalue: dcn
            - value: '142'
              newvalue: ipForward
            - value: '143'
              newvalue: msdsl
            - value: '144'
              newvalue: ieee1394
            - value: '145'
              newvalue: if-gsn
            - value: '146'
              newvalue: dvbRccMacLayer
            - value: '147'
              newvalue: dvbRccDownstream
            - value: '148'
              newvalue: dvbRccUpstream
            - value: '149'
              newvalue: atmVirtual
            - value: '150'
              newvalue: mplsTunnel
            - value: '151'
              newvalue: srp
            - value: '152'
              newvalue: voiceOverAtm
            - value: '153'
              newvalue: voiceOverFrameRelay
            - value: '154'
              newvalue: idsl
            - value: '155'
              newvalue: compositeLink
            - value: '156'
              newvalue: ss7SigLink
            - value: '157'
              newvalue: propWirelessP2P
            - value: '158'
              newvalue: frForward
            - value: '159'
              newvalue: rfc1483
            - value: '160'
              newvalue: usb
            - value: '161'
              newvalue: ieee8023adLag
            - value: '162'
              newvalue: bgppolicyaccounting
            - value: '163'
              newvalue: frf16MfrBundle
            - value: '164'
              newvalue: h323Gatekeeper
            - value: '165'
              newvalue: h323Proxy
            - value: '166'
              newvalue: mpls
            - value: '167'
              newvalue: mfSigLink
            - value: '168'
              newvalue: hdsl2
            - value: '169'
              newvalue: shdsl
            - value: '170'
              newvalue: ds1FDL
            - value: '171'
              newvalue: pos
            - value: '172'
              newvalue: dvbAsiIn
            - value: '173'
              newvalue: dvbAsiOut
            - value: '174'
              newvalue: plc
            - value: '175'
              newvalue: nfas
            - value: '176'
              newvalue: tr008
            - value: '177'
              newvalue: gr303RDT
            - value: '178'
              newvalue: gr303IDT
            - value: '179'
              newvalue: isup
            - value: '180'
              newvalue: propDocsWirelessMaclayer
            - value: '181'
              newvalue: propDocsWirelessDownstream
            - value: '182'
              newvalue: propDocsWirelessUpstream
            - value: '183'
              newvalue: hiperlan2
            - value: '184'
              newvalue: propBWAp2Mp
            - value: '185'
              newvalue: sonetOverheadChannel
            - value: '186'
              newvalue: digitalWrapperOverheadChannel
            - value: '187'
              newvalue: aal2
            - value: '188'
              newvalue: radioMAC
            - value: '189'
              newvalue: atmRadio
            - value: '190'
              newvalue: imt
            - value: '191'
              newvalue: mvl
            - value: '192'
              newvalue: reachDSL
            - value: '193'
              newvalue: frDlciEndPt
            - value: '194'
              newvalue: atmVciEndPt
            - value: '195'
              newvalue: opticalChannel
            - value: '196'
              newvalue: opticalTransport
            - value: '197'
              newvalue: propAtm
            - value: '198'
              newvalue: voiceOverCable
            - value: '199'
              newvalue: infiniband
            - value: '200'
              newvalue: teLink
            - value: '201'
              newvalue: q2931
            - value: '202'
              newvalue: virtualTg
            - value: '203'
              newvalue: sipTg
            - value: '204'
              newvalue: sipSig
            - value: '205'
              newvalue: docsCableUpstreamChannel
            - value: '206'
              newvalue: econet
            - value: '207'
              newvalue: pon155
            - value: '208'
              newvalue: pon622
            - value: '209'
              newvalue: bridge
            - value: '210'
              newvalue: linegroup
            - value: '211'
              newvalue: voiceEMFGD
            - value: '212'
              newvalue: voiceFGDEANA
            - value: '213'
              newvalue: voiceDID
            - value: '214'
              newvalue: mpegTransport
            - value: '215'
              newvalue: sixToFour
            - value: '216'
              newvalue: gtp
            - value: '217'
              newvalue: pdnEtherLoop1
            - value: '218'
              newvalue: pdnEtherLoop2
            - value: '219'
              newvalue: opticalChannelGroup
            - value: '220'
              newvalue: homepna
            - value: '221'
              newvalue: gfp
            - value: '222'
              newvalue: ciscoISLvlan
            - value: '223'
              newvalue: actelisMetaLOOP
            - value: '224'
              newvalue: fcipLink
            - value: '225'
              newvalue: rpr
            - value: '226'
              newvalue: qam
            - value: '227'
              newvalue: lmp
            - value: '228'
              newvalue: cblVectaStar
            - value: '229'
              newvalue: docsCableMCmtsDownstream
            - value: '230'
              newvalue: adsl2
            - value: '231'
              newvalue: macSecControlledIF
            - value: '232'
              newvalue: macSecUncontrolledIF
            - value: '233'
              newvalue: aviciOpticalEther
            - value: '234'
              newvalue: atmbond
            - value: '235'
              newvalue: voiceFGDOS
            - value: '236'
              newvalue: mocaVersion1
            - value: '237'
              newvalue: ieee80216WMAN
            - value: '238'
              newvalue: adsl2plus
            - value: '239'
              newvalue: dvbRcsMacLayer
            - value: '240'
              newvalue: dvbTdm
            - value: '241'
              newvalue: dvbRcsTdma
            - value: '242'
              newvalue: x86Laps
            - value: '243'
              newvalue: wwanPP
            - value: '244'
              newvalue: wwanPP2
            - value: '245'
              newvalue: voiceEBS
            - value: '246'
              newvalue: ifPwType
            - value: '247'
              newvalue: ilan
            - value: '248'
              newvalue: pip
            - value: '249'
              newvalue: aluELP
            - value: '250'
              newvalue: gpon
            - value: '251'
              newvalue: vdsl2
            - value: '252'
              newvalue: capwapDot11Profile
            - value: '253'
              newvalue: capwapDot11Bss
            - value: '254'
              newvalue: capwapWtpVirtualRadio
            - value: '255'
              newvalue: bits
            - value: '256'
              newvalue: docsCableUpstreamRfPort
            - value: '257'
              newvalue: cableDownstreamRfPort
            - value: '258'
              newvalue: vmwareVirtualNic
            - value: '259'
              newvalue: ieee802154
            - value: '260'
              newvalue: otnOdu
            - value: '261'
              newvalue: otnOtu
            - value: '262'
              newvalue: ifVfiType
            - value: '263'
              newvalue: g9981
            - value: '264'
              newvalue: g9982
            - value: '265'
              newvalue: g9983
            - value: '266'
              newvalue: aluEpon
            - value: '267'
              newvalue: aluEponOnu
            - value: '268'
              newvalue: aluEponPhysicalUni
            - value: '269'
              newvalue: aluEponLogicalLink
            - value: '270'
              newvalue: aluGponOnu
            - value: '271'
              newvalue: aluGponPhysicalUni
            - value: '272'
              newvalue: vmwareNicTeam
            - value: '277'
              newvalue: docsOfdmDownstream
            - value: '278'
              newvalue: docsOfdmaUpstream
            - value: '279'
              newvalue: gfast
            - value: '280'
              newvalue: sdci
            - value: '281'
              newvalue: xboxWireless
            - value: '282'
              newvalue: fastdsl
            - value: '283'
              newvalue: docsCableScte55d1FwdOob
            - value: '284'
              newvalue: docsCableScte55d1RetOob
            - value: '285'
              newvalue: docsCableScte55d2DsOob
            - value: '286'
              newvalue: docsCableScte55d2UsOob
            - value: '287'
              newvalue: docsCableNdf
            - value: '288'
              newvalue: docsCableNdr
            - value: '289'
              newvalue: ptm
            - value: '290'
              newvalue: ghn
        - uuid: 4197110252654153a2eee46de014a4c0
          name: 'Service state'
          mappings:
            - value: '0'
              newvalue: Down
            - value: '1'
              newvalue: Up
        - uuid: f63bc9f2c0d0427b9d1eccae7a1d612d
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 68c2034014f24115ae9e910962530472
      template: 'MikroTik hEX by SNMP'
      name: 'MikroTik hEX by SNMP'
      description: |
        The template for monitoring Ethernet router MikroTik hEX.
        
        5x Gigabit Ethernet, Dual Core 880MHz CPU, 256MB RAM, USB, microSD, RouterOS
        L4
        
        MIBs used:
        HOST-RESOURCES-MIB
        SNMPv2-MIB
        MIKROTIK-MIB
        IF-MIB
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        The template for monitoring Ethernet router MikroTik hEX.
        
        5x Gigabit Ethernet, Dual Core 880MHz CPU, 256MB RAM, USB, microSD, RouterOS L4
      vendor:
        name: Zabbix
        version: 8.0-4
      groups:
        - name: 'Templates/Network devices'
      items:
        - uuid: c481552e81c040cc902c5a02e8971ba5
          name: 'ICMP ping'
          type: SIMPLE
          key: icmpping
          description: |
            The host accessibility by ICMP ping.
            
            0 - ICMP ping fails;
            1 - ICMP ping successful.
          valuemap:
            name: 'Service state'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 2759e7d4eb114d0984aff53e6656e57e
              expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0'
              name: 'MikroTik: Unavailable by ICMP ping'
              priority: HIGH
              description: 'Last three attempts returned timeout. Please check device connectivity.'
              tags:
                - tag: scope
                  value: availability
        - uuid: 0b2a45e80039439ca76648ff3eff0515
          name: 'ICMP loss'
          type: SIMPLE
          key: icmppingloss
          value_type: FLOAT
          units: '%'
          description: 'The percentage of lost packets.'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 32d2897f2f1d42b0b2d4f40d6332cf48
              expression: 'min(/MikroTik hEX by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX by SNMP/icmppingloss,5m)<100'
              name: 'MikroTik: High ICMP ping loss'
              opdata: 'Loss: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'ICMP packets loss detected.'
              dependencies:
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
        - uuid: bee8dc9f001443c38134e692b933aa89
          name: 'ICMP response time'
          type: SIMPLE
          key: icmppingsec
          value_type: FLOAT
          units: s
          description: 'The ICMP ping response time (in seconds).'
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 138f10a500aa4b29abf9760c80e22b06
              expression: 'avg(/MikroTik hEX by SNMP/icmppingsec,5m)>{$ICMP_RESPONSE_TIME_WARN}'
              name: 'MikroTik: High ICMP ping response time'
              opdata: 'Value: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'Average ICMP response time is too high.'
              dependencies:
                - name: 'MikroTik: High ICMP ping loss'
                  expression: 'min(/MikroTik hEX by SNMP/icmppingloss,5m)>{$ICMP_LOSS_WARN} and min(/MikroTik hEX by SNMP/icmppingloss,5m)<100'
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
        - uuid: d3667df2f5684e479c579c48f84c8015
          name: 'Mikrotik: SNMP walk network interfaces'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.2.2.1.8,1.3.6.1.2.1.2.2.1.7,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.31.1.1.1.1,1.3.6.1.2.1.2.2.1.2,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.31.1.1.1.6,1.3.6.1.2.1.31.1.1.1.10,1.3.6.1.2.1.2.2.1.14,1.3.6.1.2.1.2.2.1.20,1.3.6.1.2.1.2.2.1.19,1.3.6.1.2.1.2.2.1.13,1.3.6.1.2.1.31.1.1.1.15]'
          key: net.if.walk
          history: '0'
          value_type: TEXT
          description: 'Discovering interfaces from IF-MIB.'
          tags:
            - tag: component
              value: raw
        - uuid: e470f22a8f114567a98d50b0b440dfcd
          name: 'SNMP walk wireless interfaces'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.14.1.1.2,1.3.6.1.2.1.31.1.1.1.18,1.3.6.1.2.1.2.2.1.3,1.3.6.1.2.1.2.2.1.7,1.3.6.1.4.1.14988.1.1.16.1.1.2,1.3.6.1.4.1.14988.1.1.16.1.1.4,1.3.6.1.4.1.14988.1.1.16.1.1.3,1.3.6.1.4.1.14988.1.1.16.1.1.7,1.3.6.1.4.1.14988.1.1.1.3.1.4,1.3.6.1.4.1.14988.1.1.1.3.1.8,1.3.6.1.4.1.14988.1.1.1.3.1.9,1.3.6.1.4.1.14988.1.1.1.3.1.6,1.3.6.1.4.1.14988.1.1.1.3.1.11,1.3.6.1.4.1.14988.1.1.1.7.1.5,1.3.6.1.4.1.14988.1.1.1.7.1.4,1.3.6.1.4.1.14988.1.1.1.7.1.2,1.3.6.1.4.1.14988.1.1.1.7.1.3]'
          key: net.if.wireless.walk
          history: '0'
          value_type: TEXT
          tags:
            - tag: component
              value: raw
        - uuid: d44db2b3812246e09860a63d42512382
          name: 'SNMP traps (fallback)'
          type: SNMP_TRAP
          key: snmptrap.fallback
          value_type: LOG
          description: 'The item is used to collect all SNMP traps unmatched by other snmptrap items'
          logtimefmt: 'hh:mm:sszyyyy/MM/dd'
          tags:
            - tag: component
              value: network
        - uuid: 65095df07cf849789fe6d78cbc9e2712
          name: 'System contact details'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.4.0]'
          key: 'system.contact[sysContact.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.
          inventory_link: CONTACT
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 92ff237e1b074d35b47e029168cd9f14
          name: 'SNMP walk system CPUs'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.25.3.3.1.1,1.3.6.1.2.1.25.3.3.1.2]'
          key: system.cpu.walk
          history: '0'
          value_type: TEXT
          description: |
            MIB: HOST-RESOURCES-MIB
            Discovering system CPUs.
          tags:
            - tag: component
              value: raw
        - uuid: cd8bd2a11d164a9eafc6771bb80eb449
          name: 'System description'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: 'system.descr[sysDescr.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            A textual description of the entity. This value should
            include the full name and version identification of the system's hardware type, software operating-system, and
            networking software.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 7154ef6b0f0b4d4a99fdf1d7ec8b2262
          name: 'Firmware version'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.4.0]'
          key: system.hw.firmware
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            Current firmware version.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 0c58b3a529a541c5813e6d374fb1af38
              expression: 'last(/MikroTik hEX by SNMP/system.hw.firmware,#1)<>last(/MikroTik hEX by SNMP/system.hw.firmware,#2) and length(last(/MikroTik hEX by SNMP/system.hw.firmware))>0'
              name: 'MikroTik: Firmware has changed'
              opdata: 'Current value: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'Firmware version has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 0e326a00dadf46928949a2270a4e7619
          name: 'Hardware model name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.1.0]'
          key: system.hw.model
          delay: 1h
          value_type: CHAR
          inventory_link: MODEL
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
        - uuid: 17dd769754ca4559b53b191baa8ac571
          name: 'Hardware serial number'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.7.3.0]'
          key: system.hw.serialnumber
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            RouterBOARD serial number.
          inventory_link: SERIALNO_A
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: 3a683df3455e4c3b9693f70d7cc2312c
              expression: 'last(/MikroTik hEX by SNMP/system.hw.serialnumber,#1)<>last(/MikroTik hEX by SNMP/system.hw.serialnumber,#2) and length(last(/MikroTik hEX by SNMP/system.hw.serialnumber))>0'
              name: 'MikroTik: Device has been replaced'
              event_name: 'MikroTik: Device has been replaced (new serial number received)'
              priority: INFO
              description: 'Device serial number has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 32d6b1147607490287da049b08140f0b
          name: 'Uptime (hardware)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.1.1.0]'
          key: 'system.hw.uptime[hrSystemUptime.0]'
          delay: 30s
          trends: '0'
          units: uptime
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of time since this host was last initialized. Note that this is different from sysUpTime in the SNMPv2-MIB [RFC1907] because sysUpTime is the uptime of the network management portion of the system.
          preprocessing:
            - type: CHECK_NOT_SUPPORTED
              parameters:
                - '-1'
              error_handler: CUSTOM_VALUE
              error_handler_params: '0'
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: a6d38cac0dcc4bb085e6d7dc9536407d
          name: 'System location'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.6.0]'
          key: 'system.location[sysLocation.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            Physical location of the node (e.g., `equipment room`, `3rd floor`). If not provided, the value is a zero-length string.
          inventory_link: LOCATION
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 860ffeeac47c434c8890fef9c13f5105
          name: 'System name'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.5.0]'
          key: system.name
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            An administratively-assigned name for this managed node.By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.
          inventory_link: NAME
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
          triggers:
            - uuid: d6d2aa238d864cc1902b94e44e46b627
              expression: 'last(/MikroTik hEX by SNMP/system.name,#1)<>last(/MikroTik hEX by SNMP/system.name,#2) and length(last(/MikroTik hEX by SNMP/system.name))>0'
              name: 'MikroTik: System name has changed'
              event_name: 'MikroTik: System name has changed (new name: {ITEM.VALUE})'
              priority: INFO
              description: 'The name of the system has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
                - tag: scope
                  value: security
        - uuid: 2d1af72cb5174acfaaf50992b2aeb25e
          name: 'Uptime (network)'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.3.0]'
          key: 'system.net.uptime[sysUpTime.0]'
          delay: 30s
          trends: '0'
          units: uptime
          description: |
            MIB: SNMPv2-MIB
            Time (in hundredths of a second) since the network management portion of the system was last re-initialized.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '0.01'
          tags:
            - tag: component
              value: system
        - uuid: 6d82211969d74fb7b33f1e9d90c83902
          name: 'System object ID'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.1.2.0]'
          key: 'system.objectid[sysObjectID.0]'
          delay: 15m
          value_type: CHAR
          description: |
            MIB: SNMPv2-MIB
            The vendor's authoritative identification of the network management subsystem contained in the entity. This value is allocated within the SMI enterprises subtree (1.3.6.1.4.1) and provides an easy and unambiguous means for determining`what kind of box' is being managed.  For example, if vendor`Flintstones, Inc.' was assigned the subtree1.3.6.1.4.1.4242, it could assign the identifier 1.3.6.1.4.1.4242.1.1 to its `Fred Router'.
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 12h
          tags:
            - tag: component
              value: system
        - uuid: 7df965b410944b07a5effd80fc3e5514
          name: 'Operating system'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.4.4.0]'
          key: 'system.sw.os[mtxrLicVersion.0]'
          delay: 1h
          value_type: CHAR
          description: |
            MIB: MIKROTIK-MIB
            Software version.
          inventory_link: OS
          preprocessing:
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1d
          tags:
            - tag: component
              value: os
          triggers:
            - uuid: 752e3b231fb9428baa28a7dffd90b2a5
              expression: 'last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0],#1)<>last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0],#2) and length(last(/MikroTik hEX by SNMP/system.sw.os[mtxrLicVersion.0]))>0'
              name: 'MikroTik: Operating system description has changed'
              priority: INFO
              description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: System name has changed'
                  expression: 'last(/MikroTik hEX by SNMP/system.name,#1)<>last(/MikroTik hEX by SNMP/system.name,#2) and length(last(/MikroTik hEX by SNMP/system.name))>0'
              tags:
                - tag: scope
                  value: notice
        - uuid: f65b50872b6c4ad59943002667e2fadf
          name: 'SNMP walk mounted filesystems'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.2.1.25.2.3.1.3,1.3.6.1.2.1.25.2.3.1.4,1.3.6.1.2.1.25.2.3.1.2,1.3.6.1.2.1.25.2.3.1.6,1.3.6.1.2.1.25.2.3.1.5]'
          key: vfs.fs.walk
          history: '0'
          value_type: TEXT
          description: |
            MIB: HOST-RESOURCES-MIB
            Discovering mounted filesystems.
          tags:
            - tag: component
              value: raw
        - uuid: 3698fb3739a8435da6e40f4c2245b78e
          name: 'Total memory'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.5.65536]'
          key: 'vm.memory.total[hrStorageSize.Memory]'
          units: B
          description: |
            MIB: HOST-RESOURCES-MIB
            The size of the storage represented by this entry, in
            units of hrStorageAllocationUnits. This object is
            writable to allow remote configuration of the size of
            the storage area in those cases where such an
            operation makes sense and is possible on the
            underlying system. For example, the amount of main
            memory allocated to a buffer pool might be modified or
            the amount of disk space allocated to virtual memory
            might be modified.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '1024'
          tags:
            - tag: component
              value: memory
        - uuid: b15a14a08a06417a9ca3586754a3c968
          name: 'Used memory'
          type: SNMP_AGENT
          snmp_oid: 'get[1.3.6.1.2.1.25.2.3.1.6.65536]'
          key: 'vm.memory.used[hrStorageUsed.Memory]'
          units: B
          description: |
            MIB: HOST-RESOURCES-MIB
            The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
          preprocessing:
            - type: MULTIPLIER
              parameters:
                - '1024'
          tags:
            - tag: component
              value: memory
        - uuid: ac044f3cfc33483db97ef1daecaafd6e
          name: 'Memory utilization'
          type: CALCULATED
          key: 'vm.memory.util[memoryUsedPercentage.Memory]'
          value_type: FLOAT
          units: '%'
          params: 'last(//vm.memory.used[hrStorageUsed.Memory])/last(//vm.memory.total[hrStorageSize.Memory])*100'
          description: 'Memory utilization in %.'
          tags:
            - tag: component
              value: memory
          triggers:
            - uuid: 3887f8ec0f8a4eadb45b3d3388fdd3bf
              expression: 'min(/MikroTik hEX by SNMP/vm.memory.util[memoryUsedPercentage.Memory],5m)>{$MEMORY.UTIL.MAX}'
              name: 'MikroTik: High memory utilization'
              event_name: 'MikroTik: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
              priority: AVERAGE
              description: 'The system is running out of free memory.'
              tags:
                - tag: scope
                  value: capacity
                - tag: scope
                  value: performance
        - uuid: c814df3020694764834105ce89cb5232
          name: 'SNMP agent availability'
          type: INTERNAL
          key: 'zabbix[host,snmp,available]'
          description: |
            Availability of SNMP checks on the host. The value of this item corresponds to availability icons in the host list.
            Possible values:
            0 - not available
            1 - available
            2 - unknown
          valuemap:
            name: zabbix.host.available
          tags:
            - tag: component
              value: health
            - tag: component
              value: network
          triggers:
            - uuid: 9a95ecc339b34b3a8713d62c68e2b330
              expression: 'max(/MikroTik hEX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
              name: 'MikroTik: No SNMP data collection'
              opdata: 'Current state: {ITEM.LASTVALUE1}'
              priority: WARNING
              description: 'SNMP is not available for polling. Please check device connectivity and SNMP settings.'
              dependencies:
                - name: 'MikroTik: Unavailable by ICMP ping'
                  expression: 'max(/MikroTik hEX by SNMP/icmpping,#3)=0'
              tags:
                - tag: scope
                  value: availability
      discovery_rules:
        - uuid: 8bdd4763b58b4bb5ae2cd68f28a7d5aa
          name: 'CPU discovery'
          type: DEPENDENT
          key: hrProcessorLoad.discovery
          description: 'HOST-RESOURCES-MIB::hrProcessorTable discovery.'
          item_prototypes:
            - uuid: cf88e868bd54481e8992495620b76886
              name: '#{#SNMPINDEX}: CPU utilization'
              type: DEPENDENT
              key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]'
              value_type: FLOAT
              units: '%'
              description: |
                MIB: HOST-RESOURCES-MIB
                The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.3.3.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: system.cpu.walk
              tags:
                - tag: component
                  value: cpu
              trigger_prototypes:
                - uuid: 2d0e7e1624ef40de9a7ba351917ec339
                  expression: 'min(/MikroTik hEX by SNMP/system.cpu.util[hrProcessorLoad.{#SNMPINDEX}],5m)>{$CPU.UTIL.CRIT}'
                  name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization'
                  event_name: 'MikroTik: #{#SNMPINDEX}: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
                  opdata: 'Current utilization: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'CPU utilization is too high. The system might be slow to respond.'
                  tags:
                    - tag: scope
                      value: performance
          graph_prototypes:
            - uuid: 8dd00c34191d4daab61d4b9b9abe76af
              name: '#{#SNMPINDEX}: CPU utilization'
              ymin_type_1: FIXED
              ymax_type_1: FIXED
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'system.cpu.util[hrProcessorLoad.{#SNMPINDEX}]'
          master_item:
            key: system.cpu.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.2.1.25.3.3.1.1
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: ce444de5ad9944b3bfb8dffb26e0314a
          name: 'Temperature CPU discovery'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.11]'
          key: mtxrHlProcessorTemperature.discovery
          delay: 1h
          description: |
            MIKROTIK-MIB::mtxrHlProcessorTemperature
            Since temperature of CPU is not available on all Mikrotik hardware, this is done to avoid unsupported items.
          item_prototypes:
            - uuid: 401bd6a8a97643d5888157488dd9a4b6
              name: 'CPU: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.11.{#SNMPINDEX}]'
              key: 'sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: MIKROTIK-MIB
                mtxrHlProcessorTemperature Processor temperature in Celsius (degrees C).
                Might be missing in entry models (RB750, RB450G..).
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 3b40b247aeb14a6d833a3c67594938ae
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3'
                  name: 'MikroTik: CPU: Temperature is above critical threshold'
                  event_name: 'MikroTik: CPU: Temperature is above critical threshold: >{$TEMP_CRIT:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: cf13c4a9be634dd09d1f14a9774a0009
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"CPU"}-3'
                  name: 'MikroTik: CPU: Temperature is above warning threshold'
                  event_name: 'MikroTik: CPU: Temperature is above warning threshold: >{$TEMP_WARN:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  dependencies:
                    - name: 'MikroTik: CPU: Temperature is above critical threshold'
                      expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"CPU"}'
                      recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"CPU"}-3'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: 16f478f052aa47328ac6e23e778d353c
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"CPU"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlProcessorTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"CPU"}+3'
                  name: 'MikroTik: CPU: Temperature is too low'
                  event_name: 'MikroTik: CPU: Temperature is too low: <{$TEMP_CRIT_LOW:"CPU"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.4.1.14988.1.1.3.11
                - '0'
              error_handler: DISCARD_VALUE
        - uuid: 6da7e4227e054a3ca41950f208cd8c01
          name: 'Temperature sensor discovery'
          type: SNMP_AGENT
          snmp_oid: 'walk[1.3.6.1.4.1.14988.1.1.3.10]'
          key: mtxrHlTemperature.discovery
          delay: 1h
          description: |
            MIKROTIK-MIB::mtxrHlTemperature
            Since temperature sensor is not available on all Mikrotik hardware, this is done to avoid unsupported items.
          item_prototypes:
            - uuid: 82aeb0418e3445bd92a6626e75d25b7a
              name: 'Device: Temperature'
              type: SNMP_AGENT
              snmp_oid: 'get[1.3.6.1.4.1.14988.1.1.3.10.{#SNMPINDEX}]'
              key: 'sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}]'
              value_type: FLOAT
              units: °C
              description: |
                MIB: MIKROTIK-MIB
                mtxrHlTemperature Device temperature in Celsius (degrees C).
                Might be missing in entry models (RB750, RB450G..).
                
                Reference: http://wiki.mikrotik.com/wiki/Manual:SNMP
              preprocessing:
                - type: MULTIPLIER
                  parameters:
                    - '0.1'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              tags:
                - tag: component
                  value: temperature
              trigger_prototypes:
                - uuid: 8b2e3dedb9884c81a8370732a1f3a367
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3'
                  name: 'MikroTik: Device: Temperature is above critical threshold'
                  event_name: 'MikroTik: Device: Temperature is above critical threshold: >{$TEMP_CRIT:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: HIGH
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: c5c22051e035432eba2ad5f77da002c0
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_WARN:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_WARN:"Device"}-3'
                  name: 'MikroTik: Device: Temperature is above warning threshold'
                  event_name: 'MikroTik: Device: Temperature is above warning threshold: >{$TEMP_WARN:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  description: 'This trigger uses temperature sensor values as well as temperature sensor status if available.'
                  dependencies:
                    - name: 'MikroTik: Device: Temperature is above critical threshold'
                      expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT:"Device"}'
                      recovery_expression: 'max(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT:"Device"}-3'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
                - uuid: 9b49825517f44a7fa37d2d96abd8848b
                  expression: 'avg(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)<{$TEMP_CRIT_LOW:"Device"}'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'min(/MikroTik hEX by SNMP/sensor.temp.value[mtxrHlTemperature.{#SNMPINDEX}],5m)>{$TEMP_CRIT_LOW:"Device"}+3'
                  name: 'MikroTik: Device: Temperature is too low'
                  event_name: 'MikroTik: Device: Temperature is too low: <{$TEMP_CRIT_LOW:"Device"}'
                  opdata: 'Current value: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#SNMPVALUE}'
                - 1.3.6.1.4.1.14988.1.1.3.10
                - '0'
              error_handler: DISCARD_VALUE
        - uuid: 485845b1ea494e12a042e6e55f8758bb
          name: 'LTE modem discovery'
          type: DEPENDENT
          key: mtxrLTEModem.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFNAME}'
                value: '{$IFNAME.LTEMODEM.MATCHES}'
              - macro: '{#IFTYPE}'
                value: ^1$
          description: 'MIKROTIK-MIB::mtxrLTEModemInterfaceIndex.'
          item_prototypes:
            - uuid: 156f0fb44c0d43dba742edfd66ad7144
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP'
              type: DEPENDENT
              key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]'
              value_type: FLOAT
              units: dbm
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSRP Reference Signal Received Power.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.4.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: 1491814409194648a9d98bcb18ac77cc
                  expression: 'max(/MikroTik hEX by SNMP/lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRP.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRP is low (below {$LTEMODEM.RSRP.MIN.WARN}dbm for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: 379ec65a6b9f4136950b21a9d90cc547
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ'
              type: DEPENDENT
              key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]'
              value_type: FLOAT
              units: db
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSRQ Reference Signal Received Quality.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.3.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: e7a5fc01703c4474add6aac174ef5b16
                  expression: 'max(/MikroTik hEX by SNMP/lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}],5m) < {$LTEMODEM.RSRQ.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSRQ is low (below {$LTEMODEM.RSRQ.MIN.WARN}db for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: f4de2c971a664990a8c6bafc42c089fd
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI'
              type: DEPENDENT
              key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]'
              value_type: FLOAT
              units: dbm
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalRSSI Received Signal Strength Indicator.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: d529f287404945b9a265fefff65768d5
                  expression: 'max(/MikroTik hEX by SNMP/lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}],5m) < {$LTEMODEM.RSSI.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem RSSI is low (below {$LTEMODEM.RSSI.MIN.WARN}dbm for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
            - uuid: de256c8eb72a457d81fb33f192320037
              name: 'Interface {#IFNAME}({#IFALIAS}): LTE modem SINR'
              type: DEPENDENT
              key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]'
              value_type: FLOAT
              units: db
              description: |
                MIB: MIKROTIK-MIB
                mtxrLTEModemSignalSINR Signal to Interference & Noise Ratio.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.16.1.1.7.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: 2f85f97d29774922b6fecc19379726d8
                  expression: 'max(/MikroTik hEX by SNMP/lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}],5m) < {$LTEMODEM.SINR.MIN.WARN}'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low'
                  event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): LTE modem SINR is low (below {$LTEMODEM.SINR.MIN.WARN}db for 5m)'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          graph_prototypes:
            - uuid: 70a56aeed598461e8d41997d056b83fd
              name: 'Interface {#IFNAME}({#IFALIAS}): Modem Signal. {#SNMPINDEX}'
              graph_items:
                - color: 199C0D
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'lte.modem.sinr[mtxrLTEModemSignalSINR.{#SNMPINDEX}]'
                - sortorder: '1'
                  color: F63100
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'lte.modem.rsrq[mtxrLTEModemSignalRSRQ.{#SNMPINDEX}]'
                - sortorder: '2'
                  color: 00611C
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'lte.modem.rsrp[mtxrLTEModemSignalRSRP.{#SNMPINDEX}]'
                - sortorder: '3'
                  color: F7941D
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'lte.modem.rssi[mtxrLTEModemSignalRSSI.{#SNMPINDEX}]'
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: e6c42eb8ef5b4827852b41e577924d82
          name: 'AP channel discovery'
          type: DEPENDENT
          key: mtxrWlAp.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFADMINSTATUS}'
                value: ^1$
              - macro: '{#IFTYPE}'
                value: ^71$
          description: 'MIKROTIK-MIB::mtxrWlAp.'
          item_prototypes:
            - uuid: dd0be192693f476e97455b7e05f85aee
              name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients'
              type: DEPENDENT
              key: 'ssid.authclient[mtxrWlApAuthClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApAuthClientCount Number of authentication clients.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.11.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 85ae5fc4ef5e404ebd0ffcb14a14d8b7
              name: 'Interface {#IFNAME}({#IFALIAS}): AP band'
              type: DEPENDENT
              key: 'ssid.band[mtxrWlApBand.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApBand
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.8.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 2412519dbd114cb3b8a16dcb8c11d087
              name: 'Interface {#IFNAME}({#IFALIAS}): SSID'
              type: DEPENDENT
              key: 'ssid.name[mtxrWlApSsid.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApSsid Service Set Identifier.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.4.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 01abec24a89f4112991dfb272512a716
              name: 'Interface {#IFNAME}({#IFALIAS}): AP noise floor'
              type: DEPENDENT
              key: 'ssid.noise[mtxrWlApNoiseFloor.{#SNMPINDEX}]'
              value_type: FLOAT
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApNoiseFloor
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.9.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 15m
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: de7416fa19824a9abf3223dc2dc77c26
              name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients'
              type: DEPENDENT
              key: 'ssid.regclient[mtxrWlApClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlApClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.3.1.6.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
                - '{#IFADMINSTATUS}'
                - 1.3.6.1.2.1.2.2.1.7
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: f26774cbab2949f69b634eb8b5821e58
          name: 'CAPsMAN AP channel discovery'
          type: DEPENDENT
          key: mtxrWlCMChannel.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFNAME}'
                value: '{$IFNAME.WIFI.MATCHES}'
              - macro: '{#IFTYPE}'
                value: ^1$
          description: 'MIKROTIK-MIB::mtxrWlCMChannel.'
          item_prototypes:
            - uuid: ead6f31f7dd74d019223d242513eaef9
              name: 'Interface {#IFNAME}({#IFALIAS}): AP authenticated clients'
              type: DEPENDENT
              key: 'ssid.authclient[mtxrWlCMAuthClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMAuthClientCount Number of authentication clients.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.3.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: e704ea4180ed4e33ba1aee5402e01101
              name: 'Interface {#IFNAME}({#IFALIAS}): AP channel'
              type: DEPENDENT
              key: 'ssid.channel[mtxrWlCMChannel.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMChannel
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.5.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: aba46c2b5c614cc7873d2edaeb1d3493
              name: 'Interface {#IFNAME}({#IFALIAS}): AP registered clients'
              type: DEPENDENT
              key: 'ssid.regclient[mtxrWlCMRegClientCount.{#SNMPINDEX}]'
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMRegClientCount Client established connection to AP, but didn't finish all authentication procedures for full connection.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.2.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 17a2738e73924bb9928eedd098f3ba7c
              name: 'Interface {#IFNAME}({#IFALIAS}): AP state'
              type: DEPENDENT
              key: 'ssid.state[mtxrWlCMState.{#SNMPINDEX}]'
              value_type: CHAR
              description: |
                MIB: MIKROTIK-MIB
                mtxrWlCMState Wireless interface state.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.4.1.14988.1.1.1.7.1.4.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.wireless.walk
              tags:
                - tag: component
                  value: interface
                - tag: component
                  value: network
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: 92cf3f4cf7a64de58347d2e459321f92
                  expression: 'last(/MikroTik hEX by SNMP/ssid.state[mtxrWlCMState.{#SNMPINDEX}])<>"running-ap"'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): AP interface {#IFNAME}({#IFALIAS}) is not running'
                  priority: WARNING
                  description: 'Access point interface can be not running by different reasons - disabled interface, power off, network link down.'
                  tags:
                    - tag: scope
                      value: availability
                    - tag: scope
                      value: performance
          master_item:
            key: net.if.wireless.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFNAME}'
                - 1.3.6.1.4.1.14988.1.1.14.1.1.2
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 4c29001a422d4c93829f613674c760ab
          name: 'Network interfaces discovery'
          type: DEPENDENT
          key: net.if.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#IFADMINSTATUS}'
                value: '{$NET.IF.IFADMINSTATUS.MATCHES}'
              - macro: '{#IFADMINSTATUS}'
                value: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.MATCHES}'
              - macro: '{#IFALIAS}'
                value: '{$NET.IF.IFALIAS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFDESCR}'
                value: '{$NET.IF.IFDESCR.MATCHES}'
              - macro: '{#IFDESCR}'
                value: '{$NET.IF.IFDESCR.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.MATCHES}'
              - macro: '{#IFNAME}'
                value: '{$NET.IF.IFNAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.MATCHES}'
              - macro: '{#IFOPERSTATUS}'
                value: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
              - macro: '{#IFTYPE}'
                value: '{$NET.IF.IFTYPE.MATCHES}'
              - macro: '{#IFTYPE}'
                value: '{$NET.IF.IFTYPE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          description: 'Discovering interfaces from IF-MIB.'
          item_prototypes:
            - uuid: 0dbfe46640fc42a9abaabd7272404cec
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets discarded'
              type: DEPENDENT
              key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                The number of inbound packets which were chosen to be discarded
                even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
                One possible reason for discarding such a packet could be to free up buffer space.
                Discontinuities in the value of this counter can occur at re-initialization of the management system,
                and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.13.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 32e0d3493c2142389f5dffecb9720551
              name: 'Interface {#IFNAME}({#IFALIAS}): Inbound packets with errors'
              type: DEPENDENT
              key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.14.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 45ebaba72cb643c98340640f40129113
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits received'
              type: DEPENDENT
              key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
              units: bps
              description: |
                MIB: IF-MIB
                The total number of octets received on the interface, including framing characters. This object is a 64-bit version of ifInOctets. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.6.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 13c44a7c91ed4781aa390cf0fe45224a
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets discarded'
              type: DEPENDENT
              key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                The number of outbound packets which were chosen to be discarded
                even though no errors had been detected to prevent their being deliverable to a higher-layer protocol.
                One possible reason for discarding such a packet could be to free up buffer space.
                Discontinuities in the value of this counter can occur at re-initialization of the management system,
                and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.19.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: b20fe4196472445e9cbb73152e819f5b
              name: 'Interface {#IFNAME}({#IFALIAS}): Outbound packets with errors'
              type: DEPENDENT
              key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]'
              description: |
                MIB: IF-MIB
                For packet-oriented interfaces, the number of outbound packets that contained errors preventing them from being deliverable to a higher-layer protocol.  For character-oriented or fixed-length interfaces, the number of outbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.20.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3m
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: e55c393989a1461e8a3e05733164a273
              name: 'Interface {#IFNAME}({#IFALIAS}): Bits sent'
              type: DEPENDENT
              key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
              units: bps
              description: |
                MIB: IF-MIB
                The total number of octets transmitted out of the interface, including framing characters. This object is a 64-bit version of ifOutOctets.Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.10.{#SNMPINDEX}'
                    - '0'
                - type: CHANGE_PER_SECOND
                - type: MULTIPLIER
                  parameters:
                    - '8'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: 0e5816801ead429688acc6c4e6387c9d
              name: 'Interface {#IFNAME}({#IFALIAS}): Speed'
              type: DEPENDENT
              key: 'net.if.speed[ifHighSpeed.{#SNMPINDEX}]'
              trends: '0'
              units: bps
              description: |
                MIB: IF-MIB
                An estimate of the interface's current bandwidth in units of 1,000,000 bits per second. If this object reports a value of `n`, then the speed of the interface is somewhere in the range of `n-500,000` to `n+499,999`.
                For interfaces which do not vary in bandwidth or for those where no accurate estimation can be made, this object should contain the nominal bandwidth.
                For a sub-layer which has no concept of bandwidth, this object should be zero.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.31.1.1.1.15.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1000000'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1h
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
            - uuid: f8c119662e5a460588e15558e83be9d3
              name: 'Interface {#IFNAME}({#IFALIAS}): Operational status'
              type: DEPENDENT
              key: 'net.if.status[ifOperStatus.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: IF-MIB
                The current operational state of the interface.
                - The testing(3) state indicates that no operational packet scan be passed
                - If ifAdminStatus is down(2) then ifOperStatus should be down(2)
                - If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic
                - It should change todormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection)
                - It should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state
                - It should remain in the notPresent(6) state if the interface has missing(typically, hardware) components.
              valuemap:
                name: 'IF-MIB::ifOperStatus'
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.8.{#SNMPINDEX}'
                    - '0'
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
              trigger_prototypes:
                - uuid: c8fd70162f264509a4bd4898015f522f
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_mode: RECOVERY_EXPRESSION
                  recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
                  name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: AVERAGE
                  description: |
                    This trigger expression works as follows:
                    1. It can be triggered if the operations status is down.
                    2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down.
                    3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.)
                    
                    WARNING: if closed manually - it will not fire again on the next poll, because of .diff.
                  manual_close: 'YES'
                  tags:
                    - tag: scope
                      value: availability
            - uuid: c08335ca5dae457b8d0139df59e96057
              name: 'Interface {#IFNAME}({#IFALIAS}): Interface type'
              type: DEPENDENT
              key: 'net.if.type[ifType.{#SNMPINDEX}]'
              trends: '0'
              description: |
                MIB: IF-MIB
                The type of interface.
                Additional values for ifType are assigned by the Internet Assigned Numbers Authority (IANA),
                through updating the syntax of the IANAifType textual convention.
              valuemap:
                name: 'IF-MIB::ifType'
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.2.2.1.3.{#SNMPINDEX}'
                    - '0'
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 1d
              master_item:
                key: net.if.walk
              tags:
                - tag: component
                  value: network
                - tag: description
                  value: '{#IFALIAS}'
                - tag: interface
                  value: '{#IFNAME}'
          trigger_prototypes:
            - uuid: 1ebf4ecd3b254ace99f6738cd066035c
              expression: |
                change(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])<0 and last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
                and (
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=6 or
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=7 or
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=11 or
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=62 or
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=69 or
                last(/MikroTik hEX by SNMP/net.if.type[ifType.{#SNMPINDEX}])=117
                )
                and
                (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2)
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                (change(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0 and last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}],#2)>0) or
                (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2)
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Ethernet has changed to lower speed than it was before'
              opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
              priority: INFO
              description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: 01d1b416123541eaad013386e1605241
              expression: |
                (avg(/MikroTik hEX by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) or
                avg(/MikroTik hEX by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])) and
                last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])>0
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                avg(/MikroTik hEX by SNMP/net.if.in[ifHCInOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}]) and
                avg(/MikroTik hEX by SNMP/net.if.out[ifHCOutOctets.{#SNMPINDEX}],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/MikroTik hEX by SNMP/net.if.speed[ifHighSpeed.{#SNMPINDEX}])
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage'
              event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)'
              opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'The utilization of the network interface is close to its estimated maximum bandwidth.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: performance
            - uuid: baa41e89c189448e9d9a5918ef4918be
              expression: |
                min(/MikroTik hEX by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
                or min(/MikroTik hEX by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
              recovery_mode: RECOVERY_EXPRESSION
              recovery_expression: |
                max(/MikroTik hEX by SNMP/net.if.in.errors[ifInErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
                and max(/MikroTik hEX by SNMP/net.if.out.errors[ifOutErrors.{#SNMPINDEX}],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
              name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate'
              event_name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)'
              opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}'
              priority: WARNING
              description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.'
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Interface {#IFNAME}({#IFALIAS}): Link down'
                  expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])=2 and (last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#1)<>last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}],#2))'
                  recovery_expression: 'last(/MikroTik hEX by SNMP/net.if.status[ifOperStatus.{#SNMPINDEX}])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: performance
          graph_prototypes:
            - uuid: 29c240aec2bf440c9e69751f16c6aec8
              name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.in[ifHCInOctets.{#SNMPINDEX}]'
                - sortorder: '1'
                  drawtype: BOLD_LINE
                  color: F63100
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.out[ifHCOutOctets.{#SNMPINDEX}]'
                - sortorder: '2'
                  color: 00611C
                  yaxisside: RIGHT
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.out.errors[ifOutErrors.{#SNMPINDEX}]'
                - sortorder: '3'
                  color: F7941D
                  yaxisside: RIGHT
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.in.errors[ifInErrors.{#SNMPINDEX}]'
                - sortorder: '4'
                  color: FC6EA3
                  yaxisside: RIGHT
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.out.discards[ifOutDiscards.{#SNMPINDEX}]'
                - sortorder: '5'
                  color: 6C59DC
                  yaxisside: RIGHT
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'net.if.in.discards[ifInDiscards.{#SNMPINDEX}]'
          master_item:
            key: net.if.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#IFOPERSTATUS}'
                - 1.3.6.1.2.1.2.2.1.8
                - '0'
                - '{#IFADMINSTATUS}'
                - 1.3.6.1.2.1.2.2.1.7
                - '0'
                - '{#IFALIAS}'
                - 1.3.6.1.2.1.31.1.1.1.18
                - '0'
                - '{#IFNAME}'
                - 1.3.6.1.2.1.31.1.1.1.1
                - '0'
                - '{#IFDESCR}'
                - 1.3.6.1.2.1.2.2.1.2
                - '0'
                - '{#IFTYPE}'
                - 1.3.6.1.2.1.2.2.1.3
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
        - uuid: 6bac0ef3a12748a5b63a7bbe39dc0a13
          name: 'Storage discovery'
          type: DEPENDENT
          key: storage.discovery
          filter:
            evaltype: OR
            conditions:
              - macro: '{#STORAGE_TYPE}'
                value: .+4$
              - macro: '{#STORAGE_TYPE}'
                value: .+hrStorageFixedDisk
          description: 'HOST-RESOURCES-MIB::hrStorage discovery with storage filter.'
          item_prototypes:
            - uuid: 4110589dc6ee47bdaf23dade490edffb
              name: 'Disk-{#SNMPINDEX}: Space utilization'
              type: CALCULATED
              key: 'vfs.fs.pused[hrStorageSize.{#SNMPINDEX}]'
              value_type: FLOAT
              units: '%'
              params: '(last(//vfs.fs.used[hrStorageSize.{#SNMPINDEX}])/last(//vfs.fs.total[hrStorageSize.{#SNMPINDEX}]))*100'
              description: 'The space utilization expressed in % for Disk-{#SNMPINDEX}.'
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
            - uuid: 8e9bb2413bd142d194d0563590441797
              name: 'Disk-{#SNMPINDEX}: Total space'
              type: DEPENDENT
              key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
              units: B
              description: |
                MIB: HOST-RESOURCES-MIB
                The size of the storage represented by this entry, in
                units of hrStorageAllocationUnits. This object is
                writable to allow remote configuration of the size of
                the storage area in those cases where such an
                operation makes sense and is possible on the
                underlying system. For example, the amount of main
                memory allocated to a buffer pool might be modified or
                the amount of disk space allocated to virtual memory
                might be modified.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.2.3.1.5.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: vfs.fs.walk
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
            - uuid: 5021e0a0f78b4d6f80965efb0975fe04
              name: 'Disk-{#SNMPINDEX}: Used space'
              type: DEPENDENT
              key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]'
              units: B
              description: |
                MIB: HOST-RESOURCES-MIB
                The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
              preprocessing:
                - type: SNMP_WALK_VALUE
                  parameters:
                    - '1.3.6.1.2.1.25.2.3.1.6.{#SNMPINDEX}'
                    - '0'
                - type: MULTIPLIER
                  parameters:
                    - '1024'
              master_item:
                key: vfs.fs.walk
              tags:
                - tag: component
                  value: storage
                - tag: filesystem
                  value: '{#FSNAME}'
          trigger_prototypes:
            - uuid: 927bf28b0d7f4409ab7b2de288e59b66
              expression: |
                last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and
                ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low'
              event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}%)'
              opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})'
              priority: AVERAGE
              description: |
                Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"}.
                 Second condition should be one of the following:
                 - The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"}.
                 - The disk will be full in less than 24 hours.
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: capacity
            - uuid: ca6639ac0950404da35738314aa3b88e
              expression: |
                last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"} and
                ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low'
              event_name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}%)'
              opdata: 'Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})'
              priority: WARNING
              description: |
                Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"Disk-{#SNMPINDEX}"}.
                 Second condition should be one of the following:
                 - The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"Disk-{#SNMPINDEX}"}.
                 - The disk will be full in less than 24 hours.
              manual_close: 'YES'
              dependencies:
                - name: 'MikroTik: Disk-{#SNMPINDEX}: Disk space is critically low'
                  expression: |
                    last(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}])>{$VFS.FS.PUSED.MAX.CRIT:"Disk-{#SNMPINDEX}"} and
                    ((last(/MikroTik hEX by SNMP/vfs.fs.total[hrStorageSize.{#SNMPINDEX}])-last(/MikroTik hEX by SNMP/vfs.fs.used[hrStorageSize.{#SNMPINDEX}]))<{$VFS.FS.FREE.MIN.CRIT:"Disk-{#SNMPINDEX}"} or timeleft(/MikroTik hEX by SNMP/vfs.fs.pused[hrStorageSize.{#SNMPINDEX}],1h,100)<1d)
              tags:
                - tag: scope
                  value: availability
                - tag: scope
                  value: capacity
          graph_prototypes:
            - uuid: a7e05919813b4ebb9fc0e4535d342807
              name: 'Disk-{#SNMPINDEX}: Disk space usage'
              width: '600'
              height: '340'
              type: PIE
              show_3d: 'YES'
              graph_items:
                - color: '969696'
                  calc_fnc: LAST
                  type: GRAPH_SUM
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'vfs.fs.total[hrStorageSize.{#SNMPINDEX}]'
                - sortorder: '1'
                  color: C80000
                  calc_fnc: LAST
                  item:
                    host: 'MikroTik hEX by SNMP'
                    key: 'vfs.fs.used[hrStorageSize.{#SNMPINDEX}]'
          master_item:
            key: vfs.fs.walk
          preprocessing:
            - type: SNMP_WALK_TO_JSON
              parameters:
                - '{#FSNAME}'
                - 1.3.6.1.2.1.25.2.3.1.3
                - '0'
                - '{#ALLOC_UNITS}'
                - 1.3.6.1.2.1.25.2.3.1.4
                - '0'
                - '{#STORAGE_TYPE}'
                - 1.3.6.1.2.1.25.2.3.1.2
                - '0'
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
      tags:
        - tag: class
          value: network
        - tag: target
          value: hex
        - tag: target
          value: mikrotik
      macros:
        - macro: '{$CPU.UTIL.CRIT}'
          value: '90'
          description: 'The critical threshold of CPU utilization expressed in %.'
          config:
            type: TEXT
            priority: '3'
            section_name: Thresholds
            label: 'Threshold for CPU utilization (critical)'
            description: 'The critical threshold of CPU utilization expressed in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$ICMP_LOSS_WARN}'
          value: '20'
          description: 'Warning threshold of ICMP packet loss in %.'
          config:
            type: TEXT
            priority: '17'
            section_name: Thresholds
            label: 'Threshold of ICMP packet loss'
            description: 'Warning threshold of ICMP packet loss in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$ICMP_RESPONSE_TIME_WARN}'
          value: '0.15'
          description: 'Warning threshold of the average ICMP response time in seconds.'
          config:
            type: TEXT
            priority: '18'
            section_name: Thresholds
            label: 'Threshold of the average ICMP response'
            description: 'Warning threshold of the average ICMP response time in seconds. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.ERRORS.WARN}'
          value: '2'
          description: 'Warning threshold of error packet rate. Can be used with interface name as context.'
          config:
            type: TEXT
            priority: '21'
            section_name: Thresholds
            label: 'Threshold of error packet rate'
            description: 'Warning threshold of error packet rate. No less than 0.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IF.UTIL.MAX}'
          value: '90'
          description: 'Used as a threshold in the interface utilization trigger.'
          config:
            type: TEXT
            priority: '20'
            section_name: Thresholds
            label: 'The threshold in the interface utilization'
            description: 'Used as a threshold in the interface utilization trigger. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$IFCONTROL}'
          value: '1'
          description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".'
          config:
            type: CHECKBOX
            priority: '19'
            label: 'Interfaces control'
            description: 'Fire a trigger when the interface operational status changes to "Link down".'
            options:
              - checked: '1'
                unchecked: '0'
        - macro: '{$IFNAME.LTEMODEM.MATCHES}'
          value: ^lte
          description: 'This macro is used in LTE modem discovery. It can be overridden on the host.'
          config:
            type: TEXT
            priority: '11'
            section_name: Filters
            label: 'LTE interface name filter'
            description: 'This macro is used in LTE modem discovery. It can be overridden on the host.'
        - macro: '{$IFNAME.WIFI.MATCHES}'
          value: WIFI
          description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.'
          config:
            type: TEXT
            priority: '10'
            section_name: Filters
            label: 'WiFi interface name filter'
            description: 'This macro is used in CAPsMAN AP channel discovery. It can be overridden on the host level.'
        - macro: '{$LTEMODEM.RSRP.MIN.WARN}'
          value: '-100'
          description: 'The LTE modem RSRP minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '13'
            section_name: Thresholds
            label: 'LTE modem RSRP minimum warning value'
            description: 'The LTE modem RSRP minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.RSRQ.MIN.WARN}'
          value: '-20'
          description: 'The LTE modem RSRQ minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Thresholds
            label: 'LTE modem RSRQ minimum warning value'
            description: 'The LTE modem RSRQ minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.RSSI.MIN.WARN}'
          value: '-100'
          description: 'The LTE modem RSSI minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '12'
            section_name: Thresholds
            label: 'LTE modem RSSI minimum warning value'
            description: 'The LTE modem RSSI minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$LTEMODEM.SINR.MIN.WARN}'
          value: '0'
          description: 'The LTE modem SINR minimum value for warning trigger expression.'
          config:
            type: TEXT
            priority: '15'
            section_name: Thresholds
            label: 'LTE modem SINR minimum warning value'
            description: 'The LTE modem SINR minimum value for warning trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$MEMORY.UTIL.MAX}'
          value: '90'
          description: 'Threshold for maximum memory utilization in %.'
          config:
            type: TEXT
            priority: '9'
            section_name: Thresholds
            label: 'Threshold for memory utilization'
            description: 'Threshold for maximum memory utilization in %. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NET.IF.IFADMINSTATUS.MATCHES}'
          value: '^.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '26'
            section_name: Filters
            label: 'Filter network interface by adminstatus'
            description: 'Regex string to include discovered interface by adminstatus.'
        - macro: '{$NET.IF.IFADMINSTATUS.NOT_MATCHES}'
          value: ^2$
          description: 'Ignore `down(2)` administrative status'
          config:
            type: TEXT
            priority: '27'
            section_name: Filters
            label: 'Filter network interface by adminstatus (exclude)'
            description: 'Regex string to exclude discovered interface by adminstatus.'
        - macro: '{$NET.IF.IFALIAS.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '30'
            section_name: Filters
            label: 'Filter network interface by alias'
            description: 'Regex string to include discovered interface by alias.'
        - macro: '{$NET.IF.IFALIAS.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '31'
            section_name: Filters
            label: 'Filter network interface by alias (exclude)'
            description: 'Regex string to exclude discovered interface by alias.'
        - macro: '{$NET.IF.IFDESCR.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '28'
            section_name: Filters
            label: 'Filter network interface by description'
            description: 'Regex string to include discovered interface by description.'
        - macro: '{$NET.IF.IFDESCR.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '29'
            section_name: Filters
            label: 'Filter network interface by description (exclude)'
            description: 'Regex string to exclude discovered interface by description.'
        - macro: '{$NET.IF.IFNAME.MATCHES}'
          value: '^.*$'
          description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '22'
            section_name: Filters
            label: 'Filter for network interface by name'
            description: 'Regex string to include discovered interface by name.'
        - macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
          value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9a-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
          description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0 bridge` by default.'
          config:
            type: TEXT
            priority: '23'
            section_name: Filters
            label: 'Filter for network interface by name (exclude)'
            description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.'
        - macro: '{$NET.IF.IFOPERSTATUS.MATCHES}'
          value: '^.*$'
          description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
          config:
            type: TEXT
            priority: '24'
            section_name: Filters
            label: 'Filter network interface by status'
            description: 'Regex string to include discovered interface by status.'
        - macro: '{$NET.IF.IFOPERSTATUS.NOT_MATCHES}'
          value: ^6$
          description: 'Ignore `notPresent(6)`'
          config:
            type: TEXT
            priority: '25'
            section_name: Filters
            label: 'Filter network interface by status (exclude)'
            description: 'Regex string to exclude discovered interface by status.'
        - macro: '{$NET.IF.IFTYPE.MATCHES}'
          value: '.*'
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '32'
            section_name: Filters
            label: 'Filter network interface by type'
            description: 'Regex string to include discovered interface by type.'
        - macro: '{$NET.IF.IFTYPE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Used in network interface discovery rule filters.'
          config:
            type: TEXT
            priority: '33'
            section_name: Filters
            label: 'Filter network interface by type (exclude)'
            description: 'Regex string to exclude discovered interface by type.'
        - macro: '{$SNMP.TIMEOUT}'
          value: 5m
          description: 'Time interval for the SNMP availability trigger.'
          config:
            type: TEXT
            priority: '16'
            section_name: Other
            label: 'Time interval'
            description: 'Time interval for the SNMP availability trigger.'
        - macro: '{$TEMP_CRIT}'
          value: '60'
          description: 'Critical threshold for temperature.'
          config:
            type: TEXT
            priority: '4'
            section_name: Thresholds
            label: 'Threshold for temperature (critical)'
            description: 'Critical threshold for temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_CRIT:"CPU"}'
          value: '75'
          description: 'Critical threshold for CPU temperature.'
          config:
            type: TEXT
            priority: '7'
            section_name: Thresholds
            label: 'Threshold for CPU temperature (critical)'
            description: 'Critical threshold for CPU temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_CRIT_LOW}'
          value: '5'
          description: 'Critical threshold for low temperature.'
          config:
            type: TEXT
            priority: '5'
            section_name: Thresholds
            label: 'Threshold for low temperature (critical)'
            description: 'Critical threshold for low temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_WARN}'
          value: '50'
          description: 'Warning threshold for temperature.'
          config:
            type: TEXT
            priority: '6'
            section_name: Thresholds
            label: 'Threshold for temperature (warning)'
            description: 'Warning threshold for temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$TEMP_WARN:"CPU"}'
          value: '70'
          description: 'Warning threshold for CPU temperature.'
          config:
            type: TEXT
            priority: '8'
            section_name: Thresholds
            label: 'Threshold for CPU temperature (warning)'
            description: 'Warning threshold for CPU temperature.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.CRIT}'
          value: '90'
          description: 'The critical threshold of filesystem utilization.'
          config:
            type: TEXT
            priority: '1'
            section_name: Thresholds
            label: 'Threshold for filesystem utilization (critical)'
            description: 'The critical threshold of filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$VFS.FS.PUSED.MAX.WARN}'
          value: '80'
          description: 'The warning threshold of filesystem utilization.'
          config:
            type: TEXT
            priority: '2'
            section_name: Thresholds
            label: 'Threshold for filesystem utilization (warning)'
            description: 'The warning threshold of filesystem utilization. In the range from 0 to 100 inclusive.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
      dashboards:
        - uuid: b599ca881f0e41ee9ea2eda0a5bc3dcc
          name: 'Network interfaces'
          pages:
            - widgets:
                - type: graphprototype
                  width: '72'
                  height: '5'
                  fields:
                    - type: INTEGER
                      name: columns
                      value: '1'
                    - type: GRAPH_PROTOTYPE
                      name: graphid.0
                      value:
                        host: 'MikroTik hEX by SNMP'
                        name: 'Interface {#IFNAME}({#IFALIAS}): Network traffic'
                    - type: STRING
                      name: reference
                      value: AAAAA
      valuemaps:
        - uuid: e440d3590aee41198de71b1b8d03b4b9
          name: 'IF-MIB::ifOperStatus'
          mappings:
            - value: '1'
              newvalue: up
            - value: '2'
              newvalue: down
            - value: '4'
              newvalue: unknown
            - value: '5'
              newvalue: dormant
            - value: '6'
              newvalue: notPresent
            - value: '7'
              newvalue: lowerLayerDown
        - uuid: 9f7f414526dd464f813b6c193317729c
          name: 'IF-MIB::ifType'
          mappings:
            - value: '1'
              newvalue: other
            - value: '2'
              newvalue: regular1822
            - value: '3'
              newvalue: hdh1822
            - value: '4'
              newvalue: ddnX25
            - value: '5'
              newvalue: rfc877x25
            - value: '6'
              newvalue: ethernetCsmacd
            - value: '7'
              newvalue: iso88023Csmacd
            - value: '8'
              newvalue: iso88024TokenBus
            - value: '9'
              newvalue: iso88025TokenRing
            - value: '10'
              newvalue: iso88026Man
            - value: '11'
              newvalue: starLan
            - value: '12'
              newvalue: proteon10Mbit
            - value: '13'
              newvalue: proteon80Mbit
            - value: '14'
              newvalue: hyperchannel
            - value: '15'
              newvalue: fddi
            - value: '16'
              newvalue: lapb
            - value: '17'
              newvalue: sdlc
            - value: '18'
              newvalue: ds1
            - value: '19'
              newvalue: e1
            - value: '20'
              newvalue: basicISDN
            - value: '21'
              newvalue: primaryISDN
            - value: '22'
              newvalue: propPointToPointSerial
            - value: '23'
              newvalue: ppp
            - value: '24'
              newvalue: softwareLoopback
            - value: '25'
              newvalue: eon
            - value: '26'
              newvalue: ethernet3Mbit
            - value: '27'
              newvalue: nsip
            - value: '28'
              newvalue: slip
            - value: '29'
              newvalue: ultra
            - value: '30'
              newvalue: ds3
            - value: '31'
              newvalue: sip
            - value: '32'
              newvalue: frameRelay
            - value: '33'
              newvalue: rs232
            - value: '34'
              newvalue: para
            - value: '35'
              newvalue: arcnet
            - value: '36'
              newvalue: arcnetPlus
            - value: '37'
              newvalue: atm
            - value: '38'
              newvalue: miox25
            - value: '39'
              newvalue: sonet
            - value: '40'
              newvalue: x25ple
            - value: '41'
              newvalue: iso88022llc
            - value: '42'
              newvalue: localTalk
            - value: '43'
              newvalue: smdsDxi
            - value: '44'
              newvalue: frameRelayService
            - value: '45'
              newvalue: v35
            - value: '46'
              newvalue: hssi
            - value: '47'
              newvalue: hippi
            - value: '48'
              newvalue: modem
            - value: '49'
              newvalue: aal5
            - value: '50'
              newvalue: sonetPath
            - value: '51'
              newvalue: sonetVT
            - value: '52'
              newvalue: smdsIcip
            - value: '53'
              newvalue: propVirtual
            - value: '54'
              newvalue: propMultiplexor
            - value: '55'
              newvalue: ieee80212
            - value: '56'
              newvalue: fibreChannel
            - value: '57'
              newvalue: hippiInterface
            - value: '58'
              newvalue: frameRelayInterconnect
            - value: '59'
              newvalue: aflane8023
            - value: '60'
              newvalue: aflane8025
            - value: '61'
              newvalue: cctEmul
            - value: '62'
              newvalue: fastEther
            - value: '63'
              newvalue: isdn
            - value: '64'
              newvalue: v11
            - value: '65'
              newvalue: v36
            - value: '66'
              newvalue: g703at64k
            - value: '67'
              newvalue: g703at2mb
            - value: '68'
              newvalue: qllc
            - value: '69'
              newvalue: fastEtherFX
            - value: '70'
              newvalue: channel
            - value: '71'
              newvalue: ieee80211
            - value: '72'
              newvalue: ibm370parChan
            - value: '73'
              newvalue: escon
            - value: '74'
              newvalue: dlsw
            - value: '75'
              newvalue: isdns
            - value: '76'
              newvalue: isdnu
            - value: '77'
              newvalue: lapd
            - value: '78'
              newvalue: ipSwitch
            - value: '79'
              newvalue: rsrb
            - value: '80'
              newvalue: atmLogical
            - value: '81'
              newvalue: ds0
            - value: '82'
              newvalue: ds0Bundle
            - value: '83'
              newvalue: bsc
            - value: '84'
              newvalue: async
            - value: '85'
              newvalue: cnr
            - value: '86'
              newvalue: iso88025Dtr
            - value: '87'
              newvalue: eplrs
            - value: '88'
              newvalue: arap
            - value: '89'
              newvalue: propCnls
            - value: '90'
              newvalue: hostPad
            - value: '91'
              newvalue: termPad
            - value: '92'
              newvalue: frameRelayMPI
            - value: '93'
              newvalue: x213
            - value: '94'
              newvalue: adsl
            - value: '95'
              newvalue: radsl
            - value: '96'
              newvalue: sdsl
            - value: '97'
              newvalue: vdsl
            - value: '98'
              newvalue: iso88025CRFPInt
            - value: '99'
              newvalue: myrinet
            - value: '100'
              newvalue: voiceEM
            - value: '101'
              newvalue: voiceFXO
            - value: '102'
              newvalue: voiceFXS
            - value: '103'
              newvalue: voiceEncap
            - value: '104'
              newvalue: voiceOverIp
            - value: '105'
              newvalue: atmDxi
            - value: '106'
              newvalue: atmFuni
            - value: '107'
              newvalue: atmIma
            - value: '108'
              newvalue: pppMultilinkBundle
            - value: '109'
              newvalue: ipOverCdlc
            - value: '110'
              newvalue: ipOverClaw
            - value: '111'
              newvalue: stackToStack
            - value: '112'
              newvalue: virtualIpAddress
            - value: '113'
              newvalue: mpc
            - value: '114'
              newvalue: ipOverAtm
            - value: '115'
              newvalue: iso88025Fiber
            - value: '116'
              newvalue: tdlc
            - value: '117'
              newvalue: gigabitEthernet
            - value: '118'
              newvalue: hdlc
            - value: '119'
              newvalue: lapf
            - value: '120'
              newvalue: v37
            - value: '121'
              newvalue: x25mlp
            - value: '122'
              newvalue: x25huntGroup
            - value: '123'
              newvalue: trasnpHdlc
            - value: '124'
              newvalue: interleave
            - value: '125'
              newvalue: fast
            - value: '126'
              newvalue: ip
            - value: '127'
              newvalue: docsCableMaclayer
            - value: '128'
              newvalue: docsCableDownstream
            - value: '129'
              newvalue: docsCableUpstream
            - value: '130'
              newvalue: a12MppSwitch
            - value: '131'
              newvalue: tunnel
            - value: '132'
              newvalue: coffee
            - value: '133'
              newvalue: ces
            - value: '134'
              newvalue: atmSubInterface
            - value: '135'
              newvalue: l2vlan
            - value: '136'
              newvalue: l3ipvlan
            - value: '137'
              newvalue: l3ipxvlan
            - value: '138'
              newvalue: digitalPowerline
            - value: '139'
              newvalue: mediaMailOverIp
            - value: '140'
              newvalue: dtm
            - value: '141'
              newvalue: dcn
            - value: '142'
              newvalue: ipForward
            - value: '143'
              newvalue: msdsl
            - value: '144'
              newvalue: ieee1394
            - value: '145'
              newvalue: if-gsn
            - value: '146'
              newvalue: dvbRccMacLayer
            - value: '147'
              newvalue: dvbRccDownstream
            - value: '148'
              newvalue: dvbRccUpstream
            - value: '149'
              newvalue: atmVirtual
            - value: '150'
              newvalue: mplsTunnel
            - value: '151'
              newvalue: srp
            - value: '152'
              newvalue: voiceOverAtm
            - value: '153'
              newvalue: voiceOverFrameRelay
            - value: '154'
              newvalue: idsl
            - value: '155'
              newvalue: compositeLink
            - value: '156'
              newvalue: ss7SigLink
            - value: '157'
              newvalue: propWirelessP2P
            - value: '158'
              newvalue: frForward
            - value: '159'
              newvalue: rfc1483
            - value: '160'
              newvalue: usb
            - value: '161'
              newvalue: ieee8023adLag
            - value: '162'
              newvalue: bgppolicyaccounting
            - value: '163'
              newvalue: frf16MfrBundle
            - value: '164'
              newvalue: h323Gatekeeper
            - value: '165'
              newvalue: h323Proxy
            - value: '166'
              newvalue: mpls
            - value: '167'
              newvalue: mfSigLink
            - value: '168'
              newvalue: hdsl2
            - value: '169'
              newvalue: shdsl
            - value: '170'
              newvalue: ds1FDL
            - value: '171'
              newvalue: pos
            - value: '172'
              newvalue: dvbAsiIn
            - value: '173'
              newvalue: dvbAsiOut
            - value: '174'
              newvalue: plc
            - value: '175'
              newvalue: nfas
            - value: '176'
              newvalue: tr008
            - value: '177'
              newvalue: gr303RDT
            - value: '178'
              newvalue: gr303IDT
            - value: '179'
              newvalue: isup
            - value: '180'
              newvalue: propDocsWirelessMaclayer
            - value: '181'
              newvalue: propDocsWirelessDownstream
            - value: '182'
              newvalue: propDocsWirelessUpstream
            - value: '183'
              newvalue: hiperlan2
            - value: '184'
              newvalue: propBWAp2Mp
            - value: '185'
              newvalue: sonetOverheadChannel
            - value: '186'
              newvalue: digitalWrapperOverheadChannel
            - value: '187'
              newvalue: aal2
            - value: '188'
              newvalue: radioMAC
            - value: '189'
              newvalue: atmRadio
            - value: '190'
              newvalue: imt
            - value: '191'
              newvalue: mvl
            - value: '192'
              newvalue: reachDSL
            - value: '193'
              newvalue: frDlciEndPt
            - value: '194'
              newvalue: atmVciEndPt
            - value: '195'
              newvalue: opticalChannel
            - value: '196'
              newvalue: opticalTransport
            - value: '197'
              newvalue: propAtm
            - value: '198'
              newvalue: voiceOverCable
            - value: '199'
              newvalue: infiniband
            - value: '200'
              newvalue: teLink
            - value: '201'
              newvalue: q2931
            - value: '202'
              newvalue: virtualTg
            - value: '203'
              newvalue: sipTg
            - value: '204'
              newvalue: sipSig
            - value: '205'
              newvalue: docsCableUpstreamChannel
            - value: '206'
              newvalue: econet
            - value: '207'
              newvalue: pon155
            - value: '208'
              newvalue: pon622
            - value: '209'
              newvalue: bridge
            - value: '210'
              newvalue: linegroup
            - value: '211'
              newvalue: voiceEMFGD
            - value: '212'
              newvalue: voiceFGDEANA
            - value: '213'
              newvalue: voiceDID
            - value: '214'
              newvalue: mpegTransport
            - value: '215'
              newvalue: sixToFour
            - value: '216'
              newvalue: gtp
            - value: '217'
              newvalue: pdnEtherLoop1
            - value: '218'
              newvalue: pdnEtherLoop2
            - value: '219'
              newvalue: opticalChannelGroup
            - value: '220'
              newvalue: homepna
            - value: '221'
              newvalue: gfp
            - value: '222'
              newvalue: ciscoISLvlan
            - value: '223'
              newvalue: actelisMetaLOOP
            - value: '224'
              newvalue: fcipLink
            - value: '225'
              newvalue: rpr
            - value: '226'
              newvalue: qam
            - value: '227'
              newvalue: lmp
            - value: '228'
              newvalue: cblVectaStar
            - value: '229'
              newvalue: docsCableMCmtsDownstream
            - value: '230'
              newvalue: adsl2
            - value: '231'
              newvalue: macSecControlledIF
            - value: '232'
              newvalue: macSecUncontrolledIF
            - value: '233'
              newvalue: aviciOpticalEther
            - value: '234'
              newvalue: atmbond
            - value: '235'
              newvalue: voiceFGDOS
            - value: '236'
              newvalue: mocaVersion1
            - value: '237'
              newvalue: ieee80216WMAN
            - value: '238'
              newvalue: adsl2plus
            - value: '239'
              newvalue: dvbRcsMacLayer
            - value: '240'
              newvalue: dvbTdm
            - value: '241'
              newvalue: dvbRcsTdma
            - value: '242'
              newvalue: x86Laps
            - value: '243'
              newvalue: wwanPP
            - value: '244'
              newvalue: wwanPP2
            - value: '245'
              newvalue: voiceEBS
            - value: '246'
              newvalue: ifPwType
            - value: '247'
              newvalue: ilan
            - value: '248'
              newvalue: pip
            - value: '249'
              newvalue: aluELP
            - value: '250'
              newvalue: gpon
            - value: '251'
              newvalue: vdsl2
            - value: '252'
              newvalue: capwapDot11Profile
            - value: '253'
              newvalue: capwapDot11Bss
            - value: '254'
              newvalue: capwapWtpVirtualRadio
            - value: '255'
              newvalue: bits
            - value: '256'
              newvalue: docsCableUpstreamRfPort
            - value: '257'
              newvalue: cableDownstreamRfPort
            - value: '258'
              newvalue: vmwareVirtualNic
            - value: '259'
              newvalue: ieee802154
            - value: '260'
              newvalue: otnOdu
            - value: '261'
              newvalue: otnOtu
            - value: '262'
              newvalue: ifVfiType
            - value: '263'
              newvalue: g9981
            - value: '264'
              newvalue: g9982
            - value: '265'
              newvalue: g9983
            - value: '266'
              newvalue: aluEpon
            - value: '267'
              newvalue: aluEponOnu
            - value: '268'
              newvalue: aluEponPhysicalUni
            - value: '269'
              newvalue: aluEponLogicalLink
            - value: '270'
              newvalue: aluGponOnu
            - value: '271'
              newvalue: aluGponPhysicalUni
            - value: '272'
              newvalue: vmwareNicTeam
            - value: '277'
              newvalue: docsOfdmDownstream
            - value: '278'
              newvalue: docsOfdmaUpstream
            - value: '279'
              newvalue: gfast
            - value: '280'
              newvalue: sdci
            - value: '281'
              newvalue: xboxWireless
            - value: '282'
              newvalue: fastdsl
            - value: '283'
              newvalue: docsCableScte55d1FwdOob
            - value: '284'
              newvalue: docsCableScte55d1RetOob
            - value: '285'
              newvalue: docsCableScte55d2DsOob
            - value: '286'
              newvalue: docsCableScte55d2UsOob
            - value: '287'
              newvalue: docsCableNdf
            - value: '288'
              newvalue: docsCableNdr
            - value: '289'
              newvalue: ptm
            - value: '290'
              newvalue: ghn
        - uuid: b31538483a81433a9136af0e3f210b2c
          name: 'Service state'
          mappings:
            - value: '0'
              newvalue: Down
            - value: '1'
              newvalue: Up
        - uuid: 61a780952af848389136a09bbebbec46
          name: zabbix.host.available
          mappings:
            - value: '0'
              newvalue: 'not available'
            - value: '1'
              newvalue: available
            - value: '2'
              newvalue: unknown
    - uuid: 8cad0f2564694416b60bd8a414948641
      template: 'NGINX Plus by HTTP'
      name: 'NGINX Plus by HTTP'
      description: |
        Get Nginx Plus metrics by HTTP agent.
        Metrics are collected by requests to Nginx Plus API.
        Don't forget to change macros {$NGINX.API.ENDPOINT}.
        
        You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback
        
        Generated by official Zabbix template tool "Templator"
      wizard_ready: 'YES'
      readme: |
        ## Overview
        
        This template is designed for the effortless deployment of Nginx Plus monitoring by Zabbix via HTTP and doesn't require any external scripts.
        
        > The monitoring data of the live activity is generated by the [NGINX Plus API](http://nginx.org/en/docs/http/ngx_http_api_module.html).
        
        ## Setup
        
        1. Enable the NGINX Plus API.
        > Refer to the [vendor documentation](https://www.nginx.com/products/nginx/live-activity-monitoring/).
        2. Set the {$NGINX.API.ENDPOINT} such as `<scheme>://<host>:<port>/<location>/`.
        
        **Note** that depending on the number of zones and upstreams discovery operation may be expensive. 
        Therefore, use the following filters with these host wizard configuration fields:
        
        - `HTTP server zones filter (include)`
        - `HTTP server zones filter (exclude)`
        - `HTTP location zones filter (include)`
        - `HTTP location zones filter (exclude)`
        - `HTTP upstreams filter (include)`
        - `HTTP upstreams filter (exclude)`
        - `Stream server zones filter (include)`
        - `Stream server zones filter (exclude)`
        - `Stream upstreams filter (include)`
        - `Stream upstreams filter (exclude)`
        - `Resolvers filter (include)`
        - `Resolvers filter (exclude)`
      vendor:
        name: Zabbix
        version: 8.0-1
      groups:
        - name: Templates/Applications
      items:
        - uuid: 26c121f9c50a4e90b4502e2bd7f42992
          name: 'Get connections'
          type: HTTP_AGENT
          key: nginx.connections
          history: '0'
          value_type: TEXT
          description: 'Returns the statistics of client connections.'
          url: '{$NGINX.API.ENDPOINT}/6/connections/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: connections
            - tag: component
              value: raw
        - uuid: 1734b26ca856405e8c08f222944cadc3
          name: 'Connections accepted, rate'
          type: DEPENDENT
          key: nginx.connections.accepted.rate
          description: 'The total number of accepted client connections per second.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.accepted
            - type: CHANGE_PER_SECOND
          master_item:
            key: nginx.connections
          tags:
            - tag: component
              value: connections
        - uuid: a0fd403c29e4452a9be0aecb650ab063
          name: 'Connections active'
          type: DEPENDENT
          key: nginx.connections.active
          description: 'The current number of active client connections.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.active
          master_item:
            key: nginx.connections
          tags:
            - tag: component
              value: connections
        - uuid: 06395827019542b7bd381d42beb76b10
          name: 'Connections dropped'
          type: DEPENDENT
          key: nginx.connections.dropped
          description: 'The total number of dropped client connections.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.dropped
          master_item:
            key: nginx.connections
          tags:
            - tag: component
              value: connections
          triggers:
            - uuid: 91c9dab8147a4d0086019119e4e55b5e
              expression: 'min(/NGINX Plus by HTTP/nginx.connections.dropped,5m) > {$NGINX.DROP_RATE.MAX.WARN}'
              name: 'NGINX Plus: High connections drop rate'
              event_name: 'NGINX Plus: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)'
              priority: WARNING
              description: 'The rate of dropped connections is greater than `{$NGINX.DROP_RATE.MAX.WARN}` for the last 5 minutes.'
              tags:
                - tag: scope
                  value: performance
        - uuid: 0c0e5a2ba5f643e09d07e34d724aff9a
          name: 'Connections idle'
          type: DEPENDENT
          key: nginx.connections.idle
          description: 'The current number of idle client connections.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.idle
          master_item:
            key: nginx.connections
          tags:
            - tag: component
              value: connections
        - uuid: 51c50d69acdb451395736902733673fe
          name: 'Get HTTP location zones'
          type: HTTP_AGENT
          key: nginx.http.location_zones
          history: '0'
          value_type: TEXT
          description: 'Returns the status information for each HTTP location zone.'
          url: '{$NGINX.API.ENDPOINT}/6/http/location_zones/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: location_zones
            - tag: component
              value: raw
        - uuid: 5b337c675bc14d9ab3ac6d2cf5b82dce
          name: 'Get HTTP zones'
          type: HTTP_AGENT
          key: nginx.http.server_zones
          history: '0'
          value_type: TEXT
          description: 'Returns the status information for each HTTP server zone.'
          url: '{$NGINX.API.ENDPOINT}/6/http/server_zones/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: server_zones
        - uuid: 4ec5e9b1d17141f49db5d9bf29134a49
          name: 'Get HTTP upstreams'
          type: HTTP_AGENT
          key: nginx.http.upstreams
          history: '0'
          value_type: TEXT
          description: 'Returns the status of each HTTP upstream server group and its servers.'
          url: '{$NGINX.API.ENDPOINT}/6/http/upstreams/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: upstreams
        - uuid: d6c37400f8e64d89a698896afa6589de
          name: 'Get info'
          type: HTTP_AGENT
          key: nginx.info
          history: '0'
          value_type: TEXT
          description: 'Return status of the NGINX running instance.'
          url: '{$NGINX.API.ENDPOINT}/6/nginx/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: info
            - tag: component
              value: raw
        - uuid: 178f9f0c2ae74a6bbf1ae6965021ccde
          name: Address
          type: DEPENDENT
          key: nginx.info.address
          value_type: CHAR
          description: 'The address of the server that accepted status request.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.address
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: nginx.info
          tags:
            - tag: component
              value: info
        - uuid: 14c417b374ef4674bb374979135f8617
          name: 'Get info error'
          type: DEPENDENT
          key: nginx.info.error
          value_type: CHAR
          description: 'The description of NGINX errors.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.error.text
              error_handler: CUSTOM_VALUE
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 1h
          master_item:
            key: nginx.info
          tags:
            - tag: component
              value: health
            - tag: component
              value: info
          triggers:
            - uuid: e444c708371748bd831bba6c8d9a92e0
              expression: 'length(last(/NGINX Plus by HTTP/nginx.info.error))>0'
              name: 'NGINX Plus: Server response error'
              event_name: 'NGINX Plus: Server response error (text: {ITEM.VALUE})'
              priority: HIGH
              tags:
                - tag: scope
                  value: availability
        - uuid: 9baff3e318d84cd78c6a8ec6ae294de5
          name: Generation
          type: DEPENDENT
          key: nginx.info.generation
          description: 'The total number of configuration reloads.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.generation
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
          master_item:
            key: nginx.info
          tags:
            - tag: component
              value: info
        - uuid: 1baceaa7af4d45e487a448670e213c94
          name: Uptime
          type: DEPENDENT
          key: nginx.info.uptime
          units: uptime
          description: 'The server uptime.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.load_timestamp
              error_handler: DISCARD_VALUE
            - type: JAVASCRIPT
              parameters:
                - 'return Math.floor((Date.now() - new Date(value)) / 1000);'
          master_item:
            key: nginx.info
          tags:
            - tag: component
              value: info
          triggers:
            - uuid: 396fb4be618e45578566971d5399d611
              expression: 'nodata(/NGINX Plus by HTTP/nginx.info.uptime,30m)=1'
              name: 'NGINX Plus: Failed to fetch info data'
              event_name: 'NGINX Plus: Failed to fetch info data (or no data for 30m)'
              priority: WARNING
              description: 'Zabbix has not received any data for metrics for the last 30 minutes'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: availability
            - uuid: 95622a29bd58444b9f0bd985db99f922
              expression: 'last(/NGINX Plus by HTTP/nginx.info.uptime)<10m'
              name: 'NGINX Plus: Host has been restarted'
              event_name: 'NGINX Plus: {HOST.NAME} has been restarted (uptime < 10m)'
              priority: INFO
              description: 'Uptime is less than 10 minutes.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 89059effd28641e08e2002c807784bcb
          name: Version
          type: DEPENDENT
          key: nginx.info.version
          value_type: CHAR
          description: 'A version number of NGINX.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.version
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: nginx.info
          tags:
            - tag: component
              value: info
          triggers:
            - uuid: a91ff018fe4f4a1495b08adeb2b0005f
              expression: 'last(/NGINX Plus by HTTP/nginx.info.version,#1)<>last(/NGINX Plus by HTTP/nginx.info.version,#2) and length(last(/NGINX Plus by HTTP/nginx.info.version))>0'
              name: 'NGINX Plus: Version has changed'
              event_name: 'NGINX Plus: Version has changed (new version: {ITEM.VALUE})'
              priority: INFO
              description: 'The Nginx version has changed. Acknowledge to close the problem manually.'
              manual_close: 'YES'
              tags:
                - tag: scope
                  value: notice
        - uuid: 65377fc7308340348199c4c63720a7e1
          name: 'Get requests'
          type: HTTP_AGENT
          key: nginx.requests
          history: '0'
          value_type: TEXT
          description: 'Returns the status of the client''s HTTP requests.'
          url: '{$NGINX.API.ENDPOINT}/6/http/requests/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: requests
        - uuid: 630c4f81f9f44397a156e2d4e5d21af8
          name: 'Requests current'
          type: DEPENDENT
          key: nginx.requests.current
          description: 'The current number of client requests.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.current
          master_item:
            key: nginx.requests
          tags:
            - tag: component
              value: requests
        - uuid: 8130bfb659a94641b97a1abcdb9a4f66
          name: 'Requests total, rate'
          type: DEPENDENT
          key: nginx.requests.total.rate
          description: 'The total number of client requests per second.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.total
            - type: CHANGE_PER_SECOND
          master_item:
            key: nginx.requests
          tags:
            - tag: component
              value: requests
        - uuid: 9ea35f4f2ca24187896b7f44fb410d24
          name: 'Get resolvers'
          type: HTTP_AGENT
          key: nginx.resolvers
          history: '0'
          value_type: TEXT
          description: 'Returns the status information for each Resolver zone.'
          url: '{$NGINX.API.ENDPOINT}/6/resolvers/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: resolvers
        - uuid: e0798bb2d16c418781e19880fd78832c
          name: 'Get SSL'
          type: HTTP_AGENT
          key: nginx.ssl
          history: '0'
          value_type: TEXT
          description: 'Returns the SSL statistics.'
          url: '{$NGINX.API.ENDPOINT}/6/ssl/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: ssl
        - uuid: 09c7ab8555d046a69a96889185650dfe
          name: 'SSL handshakes, rate'
          type: DEPENDENT
          key: nginx.ssl.handshakes.rate
          description: 'The total number of successful SSL handshakes per second.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.handshakes
            - type: CHANGE_PER_SECOND
          master_item:
            key: nginx.ssl
          tags:
            - tag: component
              value: ssl
        - uuid: 77fcc55ced2045e099b37580f7ef6d5b
          name: 'SSL handshakes failed, rate'
          type: DEPENDENT
          key: nginx.ssl.handshakes_failed.rate
          description: 'The total number of failed SSL handshakes per second.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.handshakes_failed
            - type: CHANGE_PER_SECOND
          master_item:
            key: nginx.ssl
          tags:
            - tag: component
              value: ssl
        - uuid: 98ec8bec834a42caba8d260d939beb0e
          name: 'SSL session reuses, rate'
          type: DEPENDENT
          key: nginx.ssl.session_reuses.rate
          description: 'The total number of session reuses during SSL handshake per second.'
          preprocessing:
            - type: JSONPATH
              parameters:
                - $.session_reuses
            - type: CHANGE_PER_SECOND
          master_item:
            key: nginx.ssl
          tags:
            - tag: component
              value: ssl
        - uuid: 148a8612964b445ba37e340c9341f49d
          name: 'Get Stream server zones'
          type: HTTP_AGENT
          key: nginx.stream.server_zones
          history: '0'
          value_type: TEXT
          description: 'Returns the status information for each server zone configured in the "stream" directive.'
          url: '{$NGINX.API.ENDPOINT}/6/stream/server_zones/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: server_zones
        - uuid: c48ca144a8414b2db1c35d518ca5a24f
          name: 'Get Stream upstreams'
          type: HTTP_AGENT
          key: nginx.stream.upstreams
          history: '0'
          value_type: TEXT
          description: 'Returns status of each stream upstream server group and its servers.'
          url: '{$NGINX.API.ENDPOINT}/6/stream/upstreams/'
          status_codes: '200,404'
          tags:
            - tag: component
              value: raw
            - tag: component
              value: upstreams
      discovery_rules:
        - uuid: 33fdb45a55544c628c0106ed193ebc0b
          name: 'HTTP location zones discovery'
          type: DEPENDENT
          key: nginx.http.location_zones.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: e75bc85680534ec18df16b9e69bc248c
              name: 'HTTP location zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.discarded.rate[{#NAME}]'
              description: 'The total number of requests completed without sending a response per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.discarded
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 7dc23595142f45e2bd2a40698c21e34d
              name: 'HTTP location zone [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.http.location_zones.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the location zone with the name `{#NAME}`.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.http.location_zones
              tags:
                - tag: component
                  value: location_zones
                - tag: component
                  value: raw
                - tag: zone
                  value: '{#NAME}'
            - uuid: 17e01c9171bd493f98b37811dcf49802
              name: 'HTTP location zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.received.rate[{#NAME}]'
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.received
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: c646c18580ef4b8695cbc03ce0d5122d
              name: 'HTTP location zone [{#NAME}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.requests.rate[{#NAME}]'
              description: 'The total number of client requests received from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 82c9f68d10ec47f1a701eee692e3b9ae
              name: 'HTTP location zone [{#NAME}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]'
              description: 'The number of responses with `1xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.1xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 0cedd14450ba44f0b4c026afabb522a9
              name: 'HTTP location zone [{#NAME}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]'
              description: 'The number of responses with `2xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.2xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 046a2a3b9a644dc1b4a0078b6722c867
              name: 'HTTP location zone [{#NAME}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]'
              description: 'The number of responses with `3xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.3xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 32eb7cb8f04044d6a00ead678ff44a00
              name: 'HTTP location zone [{#NAME}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]'
              description: 'The number of responses with `4xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.4xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: dd5a27eb32da42d7998f89a96e29304f
              name: 'HTTP location zone [{#NAME}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]'
              description: 'The number of responses with `5xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.5xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: b6e3c7f074b54531aa57dce55169aedd
              name: 'HTTP location zone [{#NAME}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.responses.total.rate[{#NAME}]'
              description: 'The total number of responses sent to clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.total
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 0af45d37b3a24d5491054aa3cf319315
              name: 'HTTP location zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.location_zones.sent.rate[{#NAME}]'
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sent
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.location_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: location_zones
                - tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            - uuid: 85880c097a1c47bfafa35de05304abbc
              name: 'Nginx: HTTP location zone [{#NAME}]: Requests'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.requests.rate[{#NAME}]'
            - uuid: 6b05907e4c544986b977a1b496ca92e2
              name: 'Nginx: HTTP location zone [{#NAME}]: Responses'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.2xx.rate[{#NAME}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.1xx.rate[{#NAME}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.3xx.rate[{#NAME}]'
                - sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: F7941D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.4xx.rate[{#NAME}]'
                - sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.location_zones.responses.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.http.location_zones
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 85ad3fc40daa45b7a2fe00d570c5626c
          name: 'HTTP server zones discovery'
          type: DEPENDENT
          key: nginx.http.server_zones.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: 46d056a7870545e49db03b0ec2bd1e9b
              name: 'HTTP server zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.discarded.rate[{#NAME}]'
              description: 'The total number of requests completed without sending a response per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.discarded
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: e8dd5302fced4d23ba93656f383222d9
              name: 'HTTP server zone [{#NAME}]: Processing'
              type: DEPENDENT
              key: 'nginx.http.server_zones.processing[{#NAME}]'
              description: 'The number of client requests that are currently being processed.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.processing
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: db1046fb656c4ddf8a057cc1d0cb44f6
              name: 'HTTP server zone [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.http.server_zones.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the HTTP server zone with the name `{#NAME}` .'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.http.server_zones
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: edc834403218460b8c7b8b3ca0709a76
              name: 'HTTP server zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.received.rate[{#NAME}]'
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.received
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: e33079d5cc684a5687bd7cd10eaec541
              name: 'HTTP server zone [{#NAME}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.requests.rate[{#NAME}]'
              description: 'The total number of client requests received from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 2b37ee1a3c1243c38534f70acf7a32d9
              name: 'HTTP server zone [{#NAME}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]'
              description: 'The number of responses with `1xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.1xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 4e127d8bfac940f1b3703053ada05fbd
              name: 'HTTP server zone [{#NAME}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]'
              description: 'The number of responses with `2xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.2xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 6add98c2b5334160a0e4cc363f53cb7e
              name: 'HTTP server zone [{#NAME}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]'
              description: 'The number of responses with `3xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.3xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 1f2cd6dcddf948a9bf17f05c68502f46
              name: 'HTTP server zone [{#NAME}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]'
              description: 'The number of responses with `4xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.4xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: fc6654f2627e47cbbe1a7628c073520a
              name: 'HTTP server zone [{#NAME}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]'
              description: 'The number of responses with `5xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.5xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: fd81275f0c994a62a9412d595d7d2e8b
              name: 'HTTP server zone [{#NAME}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.responses.total.rate[{#NAME}]'
              description: 'The total number of responses sent to clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.total
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 91acfc8de0e64d52820d509ced251e5b
              name: 'HTTP server zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.server_zones.sent.rate[{#NAME}]'
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sent
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            - uuid: ba4bc0201f0741078e1512fd79bddf59
              name: 'Nginx: HTTP server zone [{#NAME}]: Requests'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.requests.rate[{#NAME}]'
            - uuid: 5870e9a861f046b3946c2464c6c5007d
              name: 'Nginx: HTTP server zone [{#NAME}]: Responses'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.2xx.rate[{#NAME}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.1xx.rate[{#NAME}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.3xx.rate[{#NAME}]'
                - sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: F7941D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.4xx.rate[{#NAME}]'
                - sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.server_zones.responses.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.http.server_zones
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 007e9b12e7164f629d90a6f377333dc8
          name: 'HTTP upstream peers discovery'
          type: DEPENDENT
          key: nginx.http.upstream.peers.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
              - macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: ad270fab134c44ae83c154670db4d317
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Active'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.active[{#UPSTREAM},{#PEER}]'
              description: 'The current number of active connections.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.active
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: cd7455016ac549598df2551a716545ef
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of unsuccessful attempts to communicate with the server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.fails
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: b0607f003d7a4713a28f0d75b7933087
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Header time'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.header_time.rate[{#UPSTREAM},{#PEER}]'
              units: '!ms'
              description: 'The average time to get the response header from the server.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.header_time
                  error_handler: DISCARD_VALUE
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 89f89850409a4aff8447b9f7c2839f01
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
              description: 'The total number of health check requests made.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.checks
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 31292e9dbc8c45dd936ed1e77d44940b
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
              description: 'The number of failed health checks.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.fails
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 89c57fb94cab4635b14532961560a8bf
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
              description: 'Displays how many times the server has become `unhealthy` (the state - “unhealthy”.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.unhealthy
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 45905cc6029140a39a8c9228d0254063
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Raw data'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the HTTP upstream with the name `[{#UPSTREAM}]`and peer with the name`[{#PEER}]`.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()'
              master_item:
                key: nginx.http.upstreams
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 8731deb89d1c4fc2bab90aca5802c721
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of bytes received from this server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.received
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 3ff18cfb4028421e9af0460aeaa2d6a4
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Requests, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.requests.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of client requests forwarded to this server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 6ca38995050e44488df4fde7dc543541
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 1xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]'
              description: 'The number of responses with `1xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.1xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: e526b61c48eb45568ef92434eee3a2cb
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 2xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]'
              description: 'The number of responses with `2xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.2xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 7b2851137d77418a8548e92332c66c86
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 3xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]'
              description: 'The number of responses with `3xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.3xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: cb81f113d289409ca26af48aeb68f8cc
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 4xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]'
              description: 'The number of responses with `4xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.4xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 172cb81d02f04fd48c7b82d8ae7dac69
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses 5xx, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]'
              description: 'The number of responses with `5xx` status code per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.5xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: d587254989c743b4aa9c8043bf18baa5
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses total, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of responses obtained from this server.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.total
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 868562df5ab44d3cadeb6fa294b33559
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Response time'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]'
              units: '!ms'
              description: 'The average time to get the full response from the server.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.response_time
                  error_handler: DISCARD_VALUE
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 2a0a36d22acf453e80d79820990db9b8
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of bytes sent to this server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sent
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 33eacaa48f974c348e37475341a6c8af
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: State'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}]'
              value_type: CHAR
              description: 'The current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.state
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
              trigger_prototypes:
                - uuid: fc6586fe2eef457bac1d71ce0313f95d
                  expression: 'find(/NGINX Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/NGINX Plus by HTTP/nginx.http.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0'
                  name: 'NGINX Plus: HTTP upstream server is not in UP or DOWN state.'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
            - uuid: e89e6c141217465794febd9131ccafae
              name: 'HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail'
              type: DEPENDENT
              key: 'nginx.http.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]'
              description: 'Displays how many times the server has become unavailable for client requests (the state - “unavail”) due to the number of unsuccessful attempts reaching the `max_fails` threshold.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.unavail
              master_item:
                key: 'nginx.http.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
          trigger_prototypes:
            - uuid: e7b4782a796b4710b50a96f3d24c8208
              expression: 'sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}/100))'
              name: 'NGINX Plus: Too many HTTP requests with code 4xx'
              event_name: 'NGINX Plus: Too many HTTP requests with code 4xx (over {$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}% for 5m)'
              priority: WARNING
              tags:
                - tag: scope
                  value: performance
            - uuid: f542573d149547d3844f635bf2a87120
              expression: 'sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}],5m) > (sum(/NGINX Plus by HTTP/nginx.http.upstream.peer.responses.total.rate[{#UPSTREAM},{#PEER}],5m)*({$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}/100))'
              name: 'NGINX Plus: Too many HTTP requests with code 5xx'
              event_name: 'NGINX Plus: Too many HTTP requests with code 5xx (over {$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}% for 5m)'
              priority: HIGH
              tags:
                - tag: scope
                  value: performance
          graph_prototypes:
            - uuid: 63582bcbe4c741e88cd64a43ff1b7d9d
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
            - uuid: 49cd8f25969d486ab4482b4986b1815a
              name: 'Nginx: HTTP upstream [{#UPSTREAM}] peer [{#PEER}]: Responses'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.2xx.rate[{#UPSTREAM},{#PEER}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.1xx.rate[{#UPSTREAM},{#PEER}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.3xx.rate[{#UPSTREAM},{#PEER}]'
                - sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: F7941D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.4xx.rate[{#UPSTREAM},{#PEER}]'
                - sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.http.upstream.peer.responses.5xx.rate[{#UPSTREAM},{#PEER}]'
          master_item:
            key: nginx.http.upstreams
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var input = JSON.parse(value),
                  	output = [];
                  
                  Object.keys(input).forEach(function (upstream) {
                  	input[upstream].peers.forEach(function (peer) {
                  		output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server })
                  	});
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 0cdb09e9004540239fd49eab09e3f324
          name: 'HTTP upstreams discovery'
          type: DEPENDENT
          key: nginx.http.upstreams.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: ef9a2a71c3a340c894f82c29503d6b6b
              name: 'HTTP upstream [{#NAME}]: Keepalive'
              type: DEPENDENT
              key: 'nginx.http.upstreams.keepalive[{#NAME}]'
              description: 'The current number of idle keepalive connections.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.keepalive
              master_item:
                key: 'nginx.http.upstreams.raw[{#NAME}]'
              tags:
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
            - uuid: c3e92f3e636c4c45907fecd332eb700f
              name: 'HTTP upstream [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.http.upstreams.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the HTTP upstream with the name `{#NAME}`.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.http.upstreams
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: upstream
                - tag: upstream
                  value: '{#NAME}'
            - uuid: 1a426d42dada4eb082aa4e912ae1256c
              name: 'HTTP upstream [{#NAME}]: Zombies'
              type: DEPENDENT
              key: 'nginx.http.upstreams.zombies[{#NAME}]'
              description: 'The current number of servers removed from the group but still processing active client requests.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.zombies
              master_item:
                key: 'nginx.http.upstreams.raw[{#NAME}]'
              tags:
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
            - uuid: 8aa415f2a55a4e8fb28ea87a8d307bd4
              name: 'HTTP upstream [{#NAME}]: Zone'
              type: DEPENDENT
              key: 'nginx.http.upstreams.zone[{#NAME}]'
              value_type: CHAR
              description: 'The name of the shared memory zone that keeps the group''s configuration and run-time state.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.zone
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: 'nginx.http.upstreams.raw[{#NAME}]'
              tags:
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
          master_item:
            key: nginx.http.upstreams
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 1f75b67c7c4044dfa8727cc7363e86d0
          name: 'Resolvers discovery'
          type: DEPENDENT
          key: nginx.resolvers.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: f224bd4758e6481cae8779ec28a0ede4
              name: 'Resolver [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.resolvers.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the `Resolver` with the name `{#NAME}`.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.resolvers
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: resolver
                - tag: upstream
                  value: '{#NAME}'
            - uuid: 8fd2a1c5c148423886dccb939ca61b62
              name: 'Resolver [{#NAME}]: Requests addr, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.addr.rate[{#NAME}]'
              description: 'The total number of requests to resolve addresses to names per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests.addr
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: fb149324f11a4edc9971e9e2572282a6
              name: 'Resolver [{#NAME}]: Requests name, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.name.rate[{#NAME}]'
              description: 'The total number of requests to resolve names to addresses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests.name
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 9ebd08e8b6a3416c940b16a03158bafe
              name: 'Resolver [{#NAME}]: Requests srv, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.requests.srv.rate[{#NAME}]'
              description: 'The total number of requests to resolve SRV records per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.requests.srv
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 8a7db7d9c24f4f88b9ad9dde32b2b2e0
              name: 'Resolver [{#NAME}]: Responses formerr, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]'
              description: 'The total number of `FORMERR` (format error) responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.formerr
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: bf5a55d771724cfeaec90950f653b181
              name: 'Resolver [{#NAME}]: Responses noerror, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]'
              description: 'The total number of successful responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.noerror
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 46cd31140a3342568c7d7ae0cdae6270
              name: 'Resolver [{#NAME}]: Responses notimp, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]'
              description: 'The total number of `NOTIMP` (unimplemented) responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.notimp
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: b4e002955de844a69a755076993b0577
              name: 'Resolver [{#NAME}]: Responses nxdomain, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]'
              description: 'The total number of `NXDOMAIN` (host not found) responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.nxdomain
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 114f260fc9754e80927494dce51f9e46
              name: 'Resolver [{#NAME}]: Responses refused, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.refused.rate[{#NAME}]'
              description: 'The total number of `REFUSED` (operation refused) responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.refused
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 7b4f4f609807407e849525f9f99c0fcc
              name: 'Resolver [{#NAME}]: Responses servfail, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]'
              description: 'The total number of `SERVFAIL` (server failure) responses per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.servfail
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: 28b11b8bfd6143ada94b041390281a2f
              name: 'Resolver [{#NAME}]: Responses timedout, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]'
              description: 'The total number of timed out requests per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.timedout
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
            - uuid: b68f19ad119941b58da491d2cd827277
              name: 'Resolver [{#NAME}]: Responses unknown, rate'
              type: DEPENDENT
              key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]'
              description: 'The total number of requests completed with an unknown error per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.responses.unknown
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.resolvers.raw[{#NAME}]'
              tags:
                - tag: component
                  value: resolver
                - tag: resolver
                  value: '{#NAME}'
          graph_prototypes:
            - uuid: 7c91ca5b8477468fa19c56b621e0c32a
              name: 'Nginx: Resolver [{#NAME}]: Requests'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.requests.name.rate[{#NAME}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.requests.srv.rate[{#NAME}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.requests.addr.rate[{#NAME}]'
            - uuid: e3535ce974114e6188752937c1bdb2c7
              name: 'Nginx: Resolver [{#NAME}]: Responses'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.noerror.rate[{#NAME}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.formerr.rate[{#NAME}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.servfail.rate[{#NAME}]'
                - sortorder: '3'
                  drawtype: GRADIENT_LINE
                  color: F7941D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.nxdomain.rate[{#NAME}]'
                - sortorder: '4'
                  drawtype: GRADIENT_LINE
                  color: FC6EA3
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.notimp.rate[{#NAME}]'
                - sortorder: '5'
                  drawtype: GRADIENT_LINE
                  color: 6C59DC
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.refused.rate[{#NAME}]'
                - sortorder: '6'
                  drawtype: GRADIENT_LINE
                  color: C7A72D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.timedout.rate[{#NAME}]'
                - sortorder: '7'
                  drawtype: GRADIENT_LINE
                  color: BA2A5D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.resolvers.responses.unknown.rate[{#NAME}]'
          master_item:
            key: nginx.resolvers
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: bdc6582408be488997720ef8a4d1108e
          name: 'Stream server zones discovery'
          type: DEPENDENT
          key: nginx.stream.server_zones.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: e321037e23ff484cb4dc89a8e187919c
              name: 'Stream server zone [{#NAME}]: Connections, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.connections.rate[{#NAME}]'
              description: 'The total number of connections accepted from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.connections
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: c9e9d883123842d291c922d5bbcca8f3
              name: 'Stream server zone [{#NAME}]: Discarded, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.discarded.rate[{#NAME}]'
              description: 'The total number of connections completed without creating a session per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.discarded
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: f8d16f41fe9e4be685c28bb4acd2187f
              name: 'Stream server zone [{#NAME}]: Processing'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.processing[{#NAME}]'
              description: 'The number of client connections that are currently being processed.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.processing
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: b3387022f2b44650823ce47394723069
              name: 'Stream server zone [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of server zone with the name `{#NAME}`, configured in the "stream" directive.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.stream.server_zones
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 47a9959627e3423e9739b55dac23edd2
              name: 'Stream server zone [{#NAME}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.received.rate[{#NAME}]'
              description: 'The total number of bytes received from clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.received
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 2aafb1ae6ce24f14a3494826d63cfce2
              name: 'Stream server zone [{#NAME}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sent.rate[{#NAME}]'
              description: 'The total number of bytes sent to clients per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sent
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 7399335b883040c495b5cbfade3e182e
              name: 'Stream server zone [{#NAME}]: Sessions 2xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]'
              description: 'The total number of sessions completed with status code `2xx` per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sessions.2xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 5e654682849748bea849db9ab73f7075
              name: 'Stream server zone [{#NAME}]: Sessions 4xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]'
              description: 'The total number of sessions completed with status code `4xx` per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sessions.4xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 0cdc4545f6dc4a1e8f247291302824a4
              name: 'Stream server zone [{#NAME}]: Sessions 5xx, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]'
              description: 'The total number of sessions completed with status code `5xx` per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sessions.5xx
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
            - uuid: 30313c91655042b8948422c13fbdfca3
              name: 'Stream server zone [{#NAME}]: Sessions total, rate'
              type: DEPENDENT
              key: 'nginx.stream.server_zones.sessions.total.rate[{#NAME}]'
              description: 'The total number of completed client sessions per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sessions.total
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.server_zones.raw[{#NAME}]'
              tags:
                - tag: component
                  value: server_zones
                - tag: zone
                  value: '{#NAME}'
          graph_prototypes:
            - uuid: f833112506e941d791057925c58bd1d9
              name: 'Nginx: Stream server zone [{#NAME}]: Sessions'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.2xx.rate[{#NAME}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.4xx.rate[{#NAME}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.server_zones.sessions.5xx.rate[{#NAME}]'
          master_item:
            key: nginx.stream.server_zones
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 435f8bc40dd244aabb7daee4be7d54e5
          name: 'Stream upstream peers discovery'
          type: DEPENDENT
          key: nginx.stream.upstream.peers.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
              - macro: '{#UPSTREAM}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: 3337df557e734de8b019216c5c06fcea
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Active'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.active[{#UPSTREAM},{#PEER}]'
              description: 'The current number of connections.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.active
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 2ae319abd31b40b7a765c300e5dfa954
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connections'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.connections.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of client connections forwarded to this server.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.connections
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: f98409ef166b47f3a70d46dffe233166
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Connect time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.connect_time.rate[{#UPSTREAM},{#PEER}]'
              units: '!ms'
              description: 'The average time to connect to the upstream server.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.connect_time
                  error_handler: DISCARD_VALUE
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 0b1000ddc883422cb9fb3382a839c10a
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Fails, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.fails.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of unsuccessful attempts to communicate with the server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.fails
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 23a02d1c0a63483fb1eb4914a7e48ecf
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: First byte time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.first_byte_time.rate[{#UPSTREAM},{#PEER}]'
              units: '!ms'
              description: 'The average time to receive the first byte of data.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.first_byte_time
                  error_handler: DISCARD_VALUE
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: dac0196daad74fc385a336c7dbddbcfd
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, check'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
              description: 'The total number of health check requests made.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.checks
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: af2a6991b432439cb4afb071974a05e7
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, fails'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
              description: 'The number of failed health checks.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.fails
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 089bbb9c602a4654a3d2c582c643745f
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks, unhealthy'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
              description: 'Displays how many times the server has become `unhealthy` (the state - “unhealthy”).'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.health_checks.unhealthy
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 4501c6c20ccd4c93a54e0e23b75de76b
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Raw data'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the upstream with the name `[{#UPSTREAM}]`and peer with the name`[{#PEER}]`, configured in the "stream" directive.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#UPSTREAM}''].peers[?(@.server == ''{#PEER}'')].first()'
              master_item:
                key: nginx.stream.upstreams
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 12193b1723eb419a9bbcb235c7b45308
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Received, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.received.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of bytes received from this server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.received
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: bda851b725454395b59988f03c534b3b
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Response time'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.response_time.rate[{#UPSTREAM},{#PEER}]'
              units: '!ms'
              description: 'The average time to receive the last byte of data.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.response_time
                  error_handler: DISCARD_VALUE
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: 6ae8685716cf487fa72534a76e4b286a
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Sent, rate'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.sent.rate[{#UPSTREAM},{#PEER}]'
              description: 'The total number of bytes sent to this server per second.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.sent
                - type: CHANGE_PER_SECOND
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
            - uuid: ae7b6564244845518816fffc38bbf9aa
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: State'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}]'
              value_type: CHAR
              description: 'The current state, which may be one of “up”, “draining”, “down”, “unavail”, “checking”, and “unhealthy”.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.state
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
              trigger_prototypes:
                - uuid: 20ef9b9e953246ef856dd46033595e52
                  expression: 'find(/NGINX Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","up")=0 and find(/NGINX Plus by HTTP/nginx.stream.upstream.peer.state[{#UPSTREAM},{#PEER}],,"like","down")=0'
                  name: 'NGINX Plus: Stream upstream server is not in UP or DOWN state.'
                  opdata: 'Current state: {ITEM.LASTVALUE1}'
                  priority: WARNING
                  tags:
                    - tag: scope
                      value: availability
            - uuid: 732f0ea262454ab3a4cfeb09aea66b9b
              name: 'Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Unavail'
              type: DEPENDENT
              key: 'nginx.stream.upstream.peer.unavail.rate[{#UPSTREAM},{#PEER}]'
              description: 'Displays how many times the server has  become unavailable for client requests (the state - “unavail”) due to the number of unsuccessful attempts reaching the `max_fails` threshold.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.unavail
              master_item:
                key: 'nginx.stream.upstream.peer.raw[{#UPSTREAM},{#PEER}]'
              tags:
                - tag: component
                  value: upstream
                - tag: peer
                  value: '{#PEER}'
                - tag: upstream
                  value: '{#UPSTREAM}'
          graph_prototypes:
            - uuid: abb23d681d0a461db00648b412b176c8
              name: 'Nginx: Stream upstream [{#UPSTREAM}] peer [{#PEER}]: Health checks'
              graph_items:
                - drawtype: GRADIENT_LINE
                  color: 199C0D
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.checks[{#UPSTREAM},{#PEER}]'
                - sortorder: '1'
                  drawtype: GRADIENT_LINE
                  color: F63100
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.fails[{#UPSTREAM},{#PEER}]'
                - sortorder: '2'
                  drawtype: GRADIENT_LINE
                  color: 00611C
                  item:
                    host: 'NGINX Plus by HTTP'
                    key: 'nginx.stream.upstream.peer.health_checks.unhealthy[{#UPSTREAM},{#PEER}]'
          master_item:
            key: nginx.stream.upstreams
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var input = JSON.parse(value),
                  	output = [];
                  
                  Object.keys(input).forEach(function (upstream) {
                  	input[upstream].peers.forEach(function (peer) {
                  		output.push({ '{#UPSTREAM}': upstream, '{#PEER}': peer.server })
                  	});
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
        - uuid: 8a8f9d8b47f84bd98a5315ae30944240
          name: 'Stream upstreams discovery'
          type: DEPENDENT
          key: nginx.stream.upstreams.discovery
          filter:
            evaltype: AND
            conditions:
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
              - macro: '{#NAME}'
                value: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
          item_prototypes:
            - uuid: 17a28cedacaf4a67929982037bf61f59
              name: 'Stream upstream [{#NAME}]: Raw data'
              type: DEPENDENT
              key: 'nginx.stream.upstreams.raw[{#NAME}]'
              history: '0'
              value_type: TEXT
              description: 'The raw data of the upstream with the name `[{#UPSTREAM}]`, configured in the "stream" directive.'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - '$[''{#NAME}'']'
              master_item:
                key: nginx.stream.upstreams
              tags:
                - tag: component
                  value: raw
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
            - uuid: 5537680fbc024713a077932cc55ef3a7
              name: 'Stream upstream [{#NAME}]: Zombies'
              type: DEPENDENT
              key: 'nginx.stream.upstreams.zombies[{#NAME}]'
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.zombies
              master_item:
                key: 'nginx.stream.upstreams.raw[{#NAME}]'
              tags:
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
            - uuid: 8c273c10ece545a58e4d34f6d3812fe0
              name: 'Stream upstream [{#NAME}]: Zone'
              type: DEPENDENT
              key: 'nginx.stream.upstreams.zone[{#NAME}]'
              value_type: CHAR
              preprocessing:
                - type: JSONPATH
                  parameters:
                    - $.zone
                - type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: 'nginx.stream.upstreams.raw[{#NAME}]'
              tags:
                - tag: component
                  value: upstreams
                - tag: upstream
                  value: '{#NAME}'
          master_item:
            key: nginx.stream.upstreams
          preprocessing:
            - type: JAVASCRIPT
              parameters:
                - |
                  var output = [];
                  
                  Object.keys(JSON.parse(value)).forEach(function (v) {
                  	output.push({ '{#NAME}': v })
                  });
                  
                  return JSON.stringify(output);
            - type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 30m
      tags:
        - tag: class
          value: software
        - tag: subclass
          value: webserver
        - tag: target
          value: nginx
      macros:
        - macro: '{$NGINX.API.ENDPOINT}'
          description: 'NGINX Plus API URL in the format `<scheme>://<host>:<port>/<location>/`.'
          config:
            type: TEXT
            priority: '1'
            label: 'API URL'
            description: 'NGINX Plus API URL in the format `<scheme>://<host>:<port>/<location>/`.'
            required: 'YES'
        - macro: '{$NGINX.DROP_RATE.MAX.WARN}'
          value: '1'
          description: 'The critical rate of the dropped connections for a  trigger expression.'
          config:
            type: TEXT
            priority: '14'
            section_name: Thresholds
            label: 'Dropped connections critical rate'
            description: 'The critical rate of the dropped connections for a  trigger expression.'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NGINX.HTTP.UPSTREAM.4XX.MAX.WARN}'
          value: '5'
          description: 'The maximum percentage of errors with the status code `4xx` (for a trigger expression).'
          config:
            type: TEXT
            priority: '15'
            section_name: Thresholds
            label: 'Max errors rate for status code 4xx'
            description: 'The maximum percentage of errors with the status code `4xx` (for a trigger expression).'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NGINX.HTTP.UPSTREAM.5XX.MAX.WARN}'
          value: '5'
          description: 'The maximum percentage of errors with the status code `5xx` (for a trigger expression).'
          config:
            type: TEXT
            priority: '16'
            section_name: Thresholds
            label: 'Max errors rate for status code 5xx'
            description: 'The maximum percentage of errors with the status code `5xx` (for a trigger expression).'
            regex: '^-?([0-9]+|(([0-9]+)\.([0-9]+)))$'
        - macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.MATCHES}'
          value: '.*'
          description: 'The filter to include the necessary discovered HTTP location zones.'
          config:
            type: TEXT
            priority: '4'
            section_name: Filters
            label: 'HTTP location zones filter (include)'
            description: 'The filter to include the necessary discovered HTTP location zones.'
        - macro: '{$NGINX.LLD.FILTER.HTTP.LOCATION.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered HTTP location zones.'
          config:
            type: TEXT
            priority: '5'
            section_name: Filters
            label: 'HTTP location zones filter (exclude)'
            description: 'The filter to exclude discovered HTTP location zones.'
        - macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.MATCHES}'
          value: '.*'
          description: 'The filter to include the necessary discovered HTTP upstreams.'
          config:
            type: TEXT
            priority: '6'
            section_name: Filters
            label: 'HTTP upstreams filter (include)'
            description: 'The filter to include the necessary discovered HTTP upstreams.'
        - macro: '{$NGINX.LLD.FILTER.HTTP.UPSTREAM.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered HTTP upstreams.'
          config:
            type: TEXT
            priority: '7'
            section_name: Filters
            label: 'HTTP upstreams filter (exclude)'
            description: 'The filter to exclude discovered HTTP upstreams.'
        - macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.MATCHES}'
          value: '.*'
          description: 'The filter to include the necessary discovered HTTP server zones.'
          config:
            type: TEXT
            priority: '2'
            section_name: Filters
            label: 'HTTP server zones filter (include)'
            description: 'The filter to include the necessary discovered HTTP server zones.'
        - macro: '{$NGINX.LLD.FILTER.HTTP.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered HTTP server zones.'
          config:
            type: TEXT
            priority: '3'
            section_name: Filters
            label: 'HTTP server zones filter (exclude)'
            description: 'The filter to exclude discovered HTTP server zones.'
        - macro: '{$NGINX.LLD.FILTER.RESOLVER.MATCHES}'
          value: '.*'
          description: 'The filter to include the necessary discovered `Resolvers`.'
          config:
            type: TEXT
            priority: '12'
            section_name: Filters
            label: 'Resolvers filter (include)'
            description: 'The filter to include the necessary discovered `Resolvers`.'
        - macro: '{$NGINX.LLD.FILTER.RESOLVER.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered `Resolvers`.'
          config:
            type: TEXT
            priority: '13'
            section_name: Filters
            label: 'Resolvers filter (exclude)'
            description: 'The filter to exclude discovered `Resolvers`.'
        - macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.MATCHES}'
          value: '.*'
          description: 'The filter to include the necessary discovered upstreams of the "stream" directive.'
          config:
            type: TEXT
            priority: '10'
            section_name: Filters
            label: 'Stream upstreams filter (include)'
            description: 'The filter to include the necessary discovered upstreams of the "stream" directive.'
        - macro: '{$NGINX.LLD.FILTER.STREAM.UPSTREAM.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered upstreams of the "stream" directive'
          config:
            type: TEXT
            priority: '11'
            section_name: Filters
            label: 'Stream upstreams filter (exclude)'
            description: 'The filter to exclude discovered upstreams of the "stream" directive'
        - macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.MATCHES}'
          value: '.*'
          description: 'The filter to include discovered server zones of the "stream" directive.'
          config:
            type: TEXT
            priority: '8'
            section_name: Filters
            label: 'Stream server zones filter (include)'
            description: 'The filter to include discovered server zones of the "stream" directive.'
        - macro: '{$NGINX.LLD.FILTER.STREAM.ZONE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'The filter to exclude discovered server zones of the "stream" directive.'
          config:
            type: TEXT
            priority: '9'
            section_name: Filters
            label: 'Stream server zones filter (exclude)'
            description: 'The filter to exclude discovered server zones of the "stream" directive.'
      dashboards:
        - uuid: 8096f22c676e43008469b99bc5f81fd6
          name: 'Nginx: Overview'
          pages:
            - name: Main
              widgets:
                - type: graph
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'NGINX Plus by HTTP'
                        name: 'Nginx: Connections'
                    - type: STRING
                      name: reference
                      value: AAAAA
                - type: graph
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'NGINX Plus by HTTP'
                        name: 'Nginx: SSL'
                    - type: STRING
                      name: reference
                      value: AAAAC
                - type: graph
                  x: '36'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'NGINX Plus by HTTP'
                        name: 'Nginx: Requests'
                    - type: STRING
                      name: reference
                      value: AAAAB
                - type: graph
                  x: '36'
                  'y': '5'
                  width: '36'
                  height: '5'
                  fields:
                    - type: GRAPH
                      name: graphid.0
                      value:
                        host: 'NGINX Plus by HTTP'
                        name: 'Nginx: Uptime'
                    - type: STRING
                      name: reference
                      value: AAAAD
  triggers:
    - uuid: 8c2035ad44ea44b2b690b086d11e8cfc
      expression: 'min(/CockroachDB by HTTP/cockroachdb.descriptors.open,10m) / last(/CockroachDB by HTTP/cockroachdb.descriptors.limit) * 100 > {$COCKROACHDB.OPEN.FDS.MAX.WARN}'
      name: 'CockroachDB: Current number of open files is too high'
      event_name: 'CockroachDB: Current number of open files is too high (over {$COCKROACHDB.OPEN.FDS.MAX.WARN}% for 10m)'
      priority: WARNING
      description: 'Getting close to open file descriptor limit.'
    - uuid: b099e323ec974823bfd84317b152a1fb
      expression: 'last(/CockroachDB by HTTP/cockroachdb.sql.sessions) > 0 and last(/CockroachDB by HTTP/cockroachdb.sql.statements.executed.rate) = 0'
      name: 'CockroachDB: Node is not executing SQL'
      priority: WARNING
      description: 'Node is not executing SQL despite having connections.'
      tags:
        - tag: scope
          value: notice
    - uuid: 0d2fa3b6ea434a07867b9f4d6156ea81
      expression: 'last(/CockroachDB by HTTP/cockroachdb.get_readiness) = 503 and last(/CockroachDB by HTTP/cockroachdb.uptime) > 5m'
      name: 'CockroachDB: Node is not ready'
      priority: AVERAGE
      description: |
        Node's /health?ready=1 endpoint has returned HTTP 503 Service Unavailable. Possible reasons:
        - node is in the wait phase of the node shutdown sequence;
        - node is unable to communicate with a majority of the other nodes in the cluster, likely because the cluster is unavailable due to too many nodes being down.
      dependencies:
        - name: 'CockroachDB: Service is down'
          expression: 'last(/CockroachDB by HTTP/net.tcp.service["{$COCKROACHDB.API.SCHEME}","{$COCKROACHDB.API.HOST}","{$COCKROACHDB.API.PORT}"]) = 0'
      tags:
        - tag: scope
          value: health
    - uuid: 9159ee66dbe4498cba29daca24ddcb5f
      expression: '(last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant BL460 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant BL460 by SNMP/hp.server.net.uptime[sysUpTime])<10m)'
      name: 'HPE ProLiant BL460: Host has been restarted'
      event_name: 'HPE ProLiant BL460: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      tags:
        - tag: scope
          value: notice
    - uuid: 97f107c88b6048f1b74412e8dfedc857
      expression: '(last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant BL920 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant BL920 by SNMP/hp.server.net.uptime[sysUpTime])<10m)'
      name: 'HPE ProLiant BL920: Host has been restarted'
      event_name: 'HPE ProLiant BL920: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      tags:
        - tag: scope
          value: notice
    - uuid: 383e0e2d556d4354ae50f68c94333ded
      expression: '(last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant DL360 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant DL360 by SNMP/hp.server.net.uptime[sysUpTime])<10m)'
      name: 'HPE ProLiant DL360: Host has been restarted'
      event_name: 'HPE ProLiant DL360: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      tags:
        - tag: scope
          value: notice
    - uuid: 9612f37005e5420582d499d7cb84a24e
      expression: '(last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])>0 and last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])<10m) or (last(/HPE ProLiant DL380 by SNMP/hp.server.hw.uptime[hrSystemUptime])=0 and last(/HPE ProLiant DL380 by SNMP/hp.server.net.uptime[sysUpTime])<10m)'
      name: 'HPE ProLiant DL380: Host has been restarted'
      event_name: 'HPE ProLiant DL380: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      tags:
        - tag: scope
          value: notice
    - uuid: 16e6a4d340164dee9379a3fc0aac0576
      expression: 'max(/Linux by Prom/system.swap.pfree[node_exporter],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Prom/system.swap.total[node_exporter])>0'
      name: 'Linux: High swap space usage'
      event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)'
      opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
      priority: WARNING
      description: 'If there is no swap configured, this trigger is ignored.'
      dependencies:
        - name: 'Linux: High memory utilization'
          expression: 'min(/Linux by Prom/vm.memory.util[node_exporter],5m)>{$MEMORY.UTIL.MAX}'
        - name: 'Linux: Lack of available memory'
          expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0'
      tags:
        - tag: scope
          value: capacity
    - uuid: f78ed17586964a46a9de0c4f183984f6
      expression: 'max(/Linux by Prom/vm.memory.available[node_exporter],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Prom/vm.memory.total[node_exporter])>0'
      name: 'Linux: Lack of available memory'
      event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})'
      opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
      priority: AVERAGE
      tags:
        - tag: scope
          value: capacity
        - tag: scope
          value: performance
    - uuid: e5897641e5594bf6b7b18ae4e107bd50
      expression: |
        min(/Linux by Prom/system.cpu.load.avg1[node_exporter],5m)/last(/Linux by Prom/system.cpu.num[node_exporter])>{$LOAD_AVG_PER_CPU.MAX.WARN}
        and last(/Linux by Prom/system.cpu.load.avg5[node_exporter])>0
        and last(/Linux by Prom/system.cpu.load.avg15[node_exporter])>0
      name: 'Linux: Load average is too high'
      event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)'
      opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}'
      priority: AVERAGE
      description: 'The load average per CPU is too high. The system may be slow to respond.'
      tags:
        - tag: scope
          value: capacity
        - tag: scope
          value: performance
    - uuid: 7effa63c9c994a6786279802aa7328ad
      expression: 'last(/Linux by Prom/fd.open[node_exporter])/last(/Linux by Prom/kernel.maxfiles[node_exporter])*100>80'
      name: 'Linux: Running out of file descriptors'
      event_name: 'Linux: Running out of file descriptors (less than < 20% free)'
      opdata: '{ITEM.LASTVALUE1} of {ITEM.LASTVALUE2} file descriptors are in use.'
      priority: WARNING
      tags:
        - tag: scope
          value: performance
    - uuid: 53e737a095a840df9abfcfd9c26007bf
      expression: '(last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/Mikrotik by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/Mikrotik by SNMP/system.net.uptime[sysUpTime.0])<10m)'
      name: 'MikroTik: Host has been restarted'
      event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      dependencies:
        - name: 'MikroTik: No SNMP data collection'
          expression: 'max(/Mikrotik by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
      tags:
        - tag: scope
          value: notice
    - uuid: 40869f938b4f470cad6f5d8996edd088
      expression: '(last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])>0 and last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])<10m) or (last(/MikroTik hEX by SNMP/system.hw.uptime[hrSystemUptime.0])=0 and last(/MikroTik hEX by SNMP/system.net.uptime[sysUpTime.0])<10m)'
      name: 'MikroTik: Host has been restarted'
      event_name: 'MikroTik: {HOST.NAME} has been restarted (uptime < 10m)'
      priority: WARNING
      description: 'Uptime is less than 10 minutes.'
      manual_close: 'YES'
      dependencies:
        - name: 'MikroTik: No SNMP data collection'
          expression: 'max(/MikroTik hEX by SNMP/zabbix[host,snmp,available],{$SNMP.TIMEOUT})=0'
      tags:
        - tag: scope
          value: notice
  graphs:
    - uuid: 4706e010045343cfa5a6d211ec6c0efd
      name: 'CockroachDB: CPU Time'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.cpu.user_time
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.cpu.system_time
    - uuid: 5d194c6e35c64bfd88a801668bc5ac49
      name: 'CockroachDB: Disk: r/w, rate'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.disk.read.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.disk.write.rate
    - uuid: 7808c1bcbf8b4672b5d8a7c26ec97745
      name: 'CockroachDB: Disk: r/w IOPS, rate'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.disk.iops.read.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.disk.iops.write.rate
    - uuid: 1206fc26b6c342b9a85b4a9ea4b1f8b5
      name: 'CockroachDB: File descriptors'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.descriptors.limit
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.descriptors.open
    - uuid: 919586b301534623b16d5aadef0de5a6
      name: 'CockroachDB: KV transactions'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.kv.transactions.committed.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.kv.transactions.aborted.rate
    - uuid: 0bc7a266933e407c85e903cfb6b2b7c9
      name: 'CockroachDB: Memory usage'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.memory.total
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.memory.go.allocated
        - sortorder: '2'
          color: 00611C
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.memory.go.managed
        - sortorder: '3'
          color: F7941D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.memory.cgo.allocated
        - sortorder: '4'
          color: FC6EA3
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.memory.cgo.managed
    - uuid: 4f02255476334f79a9373c1966a1b787
      name: 'CockroachDB: Network traffic'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.network.bytes.received.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.network.bytes.sent.rate
    - uuid: b6f9d3cda4a5451da3d90107960e91b7
      name: 'CockroachDB: SQL: Traffic'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.bytes.received.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.bytes.sent.rate
    - uuid: 76bfd0743c63481db9793e3c55181bc9
      name: 'CockroachDB: SQL statements'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.statements.update.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.statements.select.rate
        - sortorder: '2'
          color: 00611C
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.statements.insert.rate
        - sortorder: '3'
          color: F7941D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.statements.delete.rate
    - uuid: 53151cd0e61d487485f8d201c6881d59
      name: 'CockroachDB: SQL transactions'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.transactions.initiated.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.transactions.committed.rate
        - sortorder: '2'
          color: 00611C
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.transactions.rollbacks.rate
        - sortorder: '3'
          color: F7941D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.sql.transactions.aborted.rate
    - uuid: 0c313bd2041942649c1f1c441e812388
      name: 'CockroachDB: Time series'
      graph_items:
        - color: 199C0D
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.ts.samples.written.rate
        - sortorder: '1'
          color: F63100
          item:
            host: 'CockroachDB by HTTP'
            key: cockroachdb.ts.samples.errors.rate
    - uuid: bb8bb267b32b46bfa2a6277b65730396
      name: 'Linux: CPU jumps'
      graph_items:
        - color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.switches[node_exporter]'
        - sortorder: '1'
          color: F63100
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.intr[node_exporter]'
    - uuid: 09ebf28dc8504ab2bfd07130d1f6ca91
      name: 'Linux: CPU usage'
      type: STACKED
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.system[node_exporter]'
        - sortorder: '1'
          color: F63100
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.user[node_exporter]'
        - sortorder: '2'
          color: 00611C
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.nice[node_exporter]'
        - sortorder: '3'
          color: F7941D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.iowait[node_exporter]'
        - sortorder: '4'
          color: FC6EA3
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.steal[node_exporter]'
        - sortorder: '5'
          color: 6C59DC
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.interrupt[node_exporter]'
        - sortorder: '6'
          color: C7A72D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.softirq[node_exporter]'
        - sortorder: '7'
          color: BA2A5D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.guest[node_exporter]'
        - sortorder: '8'
          color: F230E0
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.guest_nice[node_exporter]'
    - uuid: 9cd184535b6b4fd5978a302bdedeac0b
      name: 'Linux: CPU utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.util[node_exporter]'
    - uuid: 1383a8b57e6743de946c8a43016ee2f7
      name: 'Linux: Memory usage'
      ymin_type_1: FIXED
      graph_items:
        - drawtype: BOLD_LINE
          color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'vm.memory.total[node_exporter]'
        - sortorder: '1'
          drawtype: GRADIENT_LINE
          color: F63100
          item:
            host: 'Linux by Prom'
            key: 'vm.memory.available[node_exporter]'
    - uuid: 81e79ef1219a4c48af1f740017bbde6a
      name: 'Linux: Memory utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'vm.memory.util[node_exporter]'
    - uuid: 567684533d2442b286119c7d392e2bb7
      name: 'Linux: Swap usage'
      graph_items:
        - color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'system.swap.free[node_exporter]'
        - sortorder: '1'
          color: F63100
          item:
            host: 'Linux by Prom'
            key: 'system.swap.total[node_exporter]'
    - uuid: f9cbf136d01040ffa18753fb40d55f79
      name: 'Linux: System load'
      ymin_type_1: FIXED
      graph_items:
        - color: 199C0D
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.load.avg1[node_exporter]'
        - sortorder: '1'
          color: F63100
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.load.avg5[node_exporter]'
        - sortorder: '2'
          color: 00611C
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.load.avg15[node_exporter]'
        - sortorder: '3'
          color: F7941D
          yaxisside: RIGHT
          item:
            host: 'Linux by Prom'
            key: 'system.cpu.num[node_exporter]'
    - uuid: 42efab7c7fae46729b2ad410b0be57cc
      name: 'Mikrotik: Memory utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'Mikrotik by SNMP'
            key: 'vm.memory.util[memoryUsedPercentage.Memory]'
    - uuid: 60d570c2447d418f90d0a64842f970b0
      name: 'Mikrotik: Memory utilization'
      ymin_type_1: FIXED
      ymax_type_1: FIXED
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'MikroTik hEX by SNMP'
            key: 'vm.memory.util[memoryUsedPercentage.Memory]'
    - uuid: a8b239f2f21a471fa3ac6a10a0419e9c
      name: 'Nginx: Connections'
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.connections.accepted.rate
        - sortorder: '1'
          drawtype: GRADIENT_LINE
          color: F63100
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.connections.dropped
        - sortorder: '2'
          drawtype: GRADIENT_LINE
          color: 00611C
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.connections.active
        - sortorder: '3'
          drawtype: GRADIENT_LINE
          color: F7941D
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.connections.idle
    - uuid: 4be7153e244b4c28a53c527aa9fd5706
      name: 'Nginx: Requests'
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.requests.total.rate
    - uuid: b1c647610c974bc8aad4fb55e1e3c8d3
      name: 'Nginx: SSL'
      graph_items:
        - drawtype: GRADIENT_LINE
          color: 199C0D
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.ssl.handshakes.rate
        - sortorder: '1'
          drawtype: GRADIENT_LINE
          color: F63100
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.ssl.handshakes_failed.rate
        - sortorder: '2'
          drawtype: GRADIENT_LINE
          color: 00611C
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.ssl.session_reuses.rate
    - uuid: b2da29d4951745db8a66a076eb99d0aa
      name: 'Nginx: Uptime'
      graph_items:
        - color: 199C0D
          item:
            host: 'NGINX Plus by HTTP'
            key: nginx.info.uptime
