categraf/inputs/snmp
kongfei 73613a200a support multi inputs 2023-04-25 16:48:00 +08:00
..
README.md updare readme for snmp 2022-09-16 17:20:53 +08:00
netsnmp.go snmp plugin 2022-09-09 17:16:59 +08:00
snmp.go support multi inputs 2023-04-25 16:48:00 +08:00
wrapper.go add default timeout for snmp client 2022-11-01 15:59:06 +08:00

README.md

forked from telegraf/snmp

目前只修改了netsnmp的部分 配置中为了兼容保留了path参数。

配置示例

[[instances]]
agents = ["udp://172.30.15.189:161"]

timeout = "5s"
version = 2
community = "public"
agent_host_tag = "ident"
retries = 1

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

[[instances.field]]
oid = "RFC1213-MIB::sysName.0"
name = "source"
is_tag = true

[[instances.table]]
oid = "IF-MIB::ifTable"
name = "interface"
inherit_tags = ["source"]

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