Update telegraf.conf
This commit is contained in:
@@ -63,42 +63,19 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
|
|
||||||
[[inputs.snmp]]
|
[[inputs.snmp]]
|
||||||
## Devices you want SNMP from
|
agents = [ "udp://172.0.0.199:161" ]
|
||||||
agents = [
|
|
||||||
"udp://172.0.0.1:161",
|
|
||||||
"udp://172.0.0.199:161"
|
|
||||||
]
|
|
||||||
|
|
||||||
## SNMP version & community
|
|
||||||
version = 2
|
version = 2
|
||||||
community = "moni"
|
community = "public"
|
||||||
|
name = "mikrotik"
|
||||||
|
|
||||||
## Base measurement name
|
# Tell gosmi where to find the MIBs
|
||||||
name = "snmp"
|
path = ["/usr/share/snmp/mibs"]
|
||||||
|
|
||||||
## Simple single OID (device uptime)
|
# Example using textual names now:
|
||||||
[[inputs.snmp.field]]
|
[[inputs.snmp.field]]
|
||||||
name = "sysUpTime"
|
name = "mtxrInterfaceStatsTxBytes"
|
||||||
oid = "1.3.6.1.2.1.1.3.0"
|
oid = "MIKROTIK-MIB::mtxrInterfaceStatsTxBytes"
|
||||||
|
|
||||||
## Interface table – traffic per interface
|
[[inputs.snmp.field]]
|
||||||
[[inputs.snmp.table]]
|
name = "mtxrInterfaceStatsRxBytes"
|
||||||
name = "ifTable"
|
oid = "MIKROTIK-MIB::mtxrInterfaceStatsRxBytes"
|
||||||
inherit_tags = ["agent"]
|
|
||||||
oid = "1.3.6.1.2.1.2.2"
|
|
||||||
|
|
||||||
# Interface description as tag (e.g., "eth0", "wlan0")
|
|
||||||
[[inputs.snmp.table.field]]
|
|
||||||
name = "ifDescr"
|
|
||||||
oid = "1.3.6.1.2.1.2.2.1.2"
|
|
||||||
is_tag = true
|
|
||||||
|
|
||||||
# Inbound octets
|
|
||||||
[[inputs.snmp.table.field]]
|
|
||||||
name = "ifInOctets"
|
|
||||||
oid = "1.3.6.1.2.1.2.2.1.10"
|
|
||||||
|
|
||||||
# Outbound octets
|
|
||||||
[[inputs.snmp.table.field]]
|
|
||||||
name = "ifOutOctets"
|
|
||||||
oid = "1.3.6.1.2.1.2.2.1.16"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user