zabbix监控交换机通用模板

zabbix_export:
  version: '6.0'
  templates:
    -
      uuid: a7e5e31b514644ea990eb5527163aabb
      template: 'LW_Template SNMP Network Topology x64'
      name: 网络端口通用模板64位_V2
      groups:
        -
          name: Templates/Network devices
      items:
        -
          uuid: 68ac22e019cd49a19cb10675273f749c
          name: 端口数量
          type: SNMP_AGENT
          snmp_oid: 'IF-MIB::ifNumber.0'
          key: ifNumber
          delay: '3600'
          history: 7d
          description: 'The number of network interfaces (regardless of their current state) present on this system.'
          tags:
            -
              tag: Application
              value: 端口信息
      discovery_rules:
        -
          uuid: 07a3be5410f8431a9db7cdfcf1e83069
          name: '端口表 UP'
          type: SNMP_AGENT
          snmp_oid: 'discovery[{#SNMPVALUE},IF-MIB::ifName,{#SNMPOPEN},IF-MIB::ifOperStatus]'
          key: ifDescr
          delay: '3600'
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#SNMPVALUE}'
                value: '@Network interfaces for discovery'
                formulaid: B
              -
                macro: '{#SNMPOPEN}'
                value: (1|3)
                formulaid: A
          lifetime: 3d
          description: 端口表
          item_prototypes:
            -
              uuid: 4ec940b171e947e48c9476219d57cbc6
              name: '{#SNMPVALUE}(端口启用管理状态)'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifAdminStatus.{#SNMPINDEX}'
              key: 'ifAdminStatus[{#SNMPVALUE}]'
              delay: 2m
              history: 7d
              valuemap:
                name: 'SNMP 接口状态 (ifAdminStatus)'
              tags:
                -
                  tag: Application
                  value: 端口状态
            -
              uuid: 7d9849c4177d4b5b939b645f01cabf39
              name: '{#SNMPVALUE}(端口描述)'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifAlias.{#SNMPINDEX}'
              key: 'ifAlias[{#SNMPVALUE}]'
              delay: 1d
              history: 7d
              trends: '0'
              value_type: CHAR
              description: 端口描述
              tags:
                -
                  tag: Application
                  value: 端口信息
            -
              uuid: 5b82edea1ab6476eaaee13c810fb2482
              name: '{#SNMPVALUE}(端口每秒接收速率)'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}'
              key: 'ifHCInOctetsPersecond[{#SNMPVALUE}]'
              delay: 2m
              history: 7d
              units: bps
              description: 端口每秒接收速率
              preprocessing:
                -
                  type: CHANGE_PER_SECOND
                  parameters:
                    - ''
                -
                  type: MULTIPLIER
                  parameters:
                    - '8'
              tags:
                -
                  tag: Application
                  value: 端口速率
            -
              uuid: a75b74cf201f4b4b919889fd6c3ffbac
              name: '{#SNMPVALUE}(端口接收总流量)(5分钟)'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifHCInOctets.{#SNMPINDEX}'
              key: 'ifHCInOctets[{#SNMPVALUE}]'
              delay: 5m
              history: 7d
              status: DISABLED
              discover: NO_DISCOVER
              units: B
              preprocessing:
                -
                  type: SIMPLE_CHANGE
                  parameters:
                    - ''
              tags:
                -
                  tag: Application
                  value: 端口速率
            -
              uuid: a8850a46ec77413bbd708ebeece730dc
              name: '{#SNMPVALUE}(端口每秒发送速率)'
              type: SNMP_AGENT
              snmp_oid: 'IF-MIB::ifHCOutOctets.{#SNMPINDEX}'
              key: 'ifHCOutOctetsPersecond[{#SNMPVALUE}]'
              delay: 2m
              history: 7d
              units: bps
              description: |
                端口每秒发送速率
                .
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值