snmp-exporter h3c精简监控指标 snmp.yml

本文介绍了一种通过减少SNMP监控指标来降低交换机CPU负载的方法,并提供了一个具体的snmp.yml配置文件示例。

过多的snmp监控指标会增加交换机cpu使用率,精简snmp.yml配置如下,请修改community认证信息

# WARNING: This file was auto-generated using snmp_exporter generator, manual changes will be lost.
h3c_mib:
  walk:
  - 1.3.6.1.2.1.31.1.1.1.1
  - 1.3.6.1.2.1.31.1.1.1.10
  - 1.3.6.1.2.1.31.1.1.1.18
  - 1.3.6.1.2.1.31.1.1.1.6
  - 1.3.6.1.2.1.47.1.1.1.1.2
  - 1.3.6.1.2.1.47.1.1.1.1.7
  - 1.3.6.1.4.1.25506.2.149.1.1.1.4
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.12
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.6
  - 1.3.6.1.4.1.25506.2.6.1.1.1.1.8
  - 1.3.6.1.4.1.25506.8.35.9.1.1.1.2
  - 1.3.6.1.4.1.25506.8.35.9.1.2.1.2
  get:
  - 1.3.6.1.2.1.1.1.0
  - 1.3.6.1.2.1.1.3.0
  - 1.3.6.1.2.1.1.5.0
  - 1.3.6.1.2.1.2.1.0
  metrics:
  - name: sysDescr
    oid: 1.3.6.1.2.1.1.1
    type: DisplayString
    help: A textual description of the entity - 1.3.6.1.2.1.1.1
  - name: sysUpTime
    oid: 1.3.6.1.2.1.1.3
    type: gauge
    help: The time (in hundredths of a second) since the network management portion
      of the system was last re-initialized. - 1.3.6.1.2.1.1.3
  - name: sysName
    oid: 1.3.6.1.2.1.1.5
    type: DisplayString
    help: An administratively-assigned name for this managed node - 1.3.6.1.2.1.1.5
  - name: ifNumber

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值