Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

자세한 사용법은 Telegraf 공식 가이드: SNMP를 참조합니다.
IF-MIB 정보: https://mibs.observium.org/mib/IF-MIB/
전체 MIB 데이터베이스: https://mibs.observium.org/

Code Block
languagebash
[[inputs.snmp]]
agents = [ "10.10.250.2:161" ]
interval = "1m"
timeout = "15s"
retries = 3
version = 2
community = "S2F_Center_RO"
max_repetitions = 3
name = "snmp_nx"

  [[inputs.snmp.field]]
  oid = "RFC1213-MIB::sysUpTime.0"
  name = "uptime"

  # oid에 없는 장비도 있으니, 확인 필요
  [[inputs.snmp.field]]
  name = "cpu_utilization"
  oid = ".1.3.6.1.4.1.9.9.109.1.1.1.1.5.1"
  [[inputs.snmp.field]]
  name = "mem_utilization"
  oid = ".1.3.6.1.4.1.9.9.48.1.1.1.5.16"
  
  [[inputs.snmp.field]]
  name = "cpu_5sec"
  oid = "SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.6.19"

  [[inputs.snmp.field]]
  name = "cpu_1min"
  oid = "SNMPv2-SMI::enterprises.9.9.109.1.1.1.1.7.19"

  [[inputs.snmp.field]]
  name = "mem_used"
  oid = "SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.1"

  [[inputs.snmp.field]]
  name = "mem_free"
  oid = "SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.1"

  [[inputs.snmp.table]]
  oid = "IF-MIB::ifTable"
  name = "snmp_nx"
  inherit_tags = [ "source" ]

    [[inputs.snmp.table.field]]
    # 32bit counter
    oid = "IF-MIB::ifIndex"
    name = "ifIndex"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifDescr"
    name = "ifDescr"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifName"
    name = "ifName"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifAlias"
    name = "ifAlias"
    is_tag = true

  [[inputs.snmp.table]]
  # 64bit counter
  oid = "IF-MIB::ifXTable"
  name = "snmp_nx"
  inherit_tags = [ "source" ]

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifIndex"
    name = "ifIndex"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifDescr"
    name = "ifDescr"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifName"
    name = "ifName"
    is_tag = true

    [[inputs.snmp.table.field]]
    oid = "IF-MIB::ifAlias"
    name = "ifAlias"
    is_tag = true