{{tag>[routeros telegraf snmp]}} =====Telegraf RouterOS SNMP config example===== Note: conversion = "hwaddr" is used for converting the MAC address into a readable string. * RouterOS CAPsMAN registration table and interface stats [[inputs.snmp]] agents = ["udp://router:161"] community = "public" [[inputs.snmp.field]] name = "hostname" oid = ".1.3.6.1.2.1.1.5.0" is_tag = true [[inputs.snmp.field]] oid = ".1.3.6.1.4.1.14988.1.1.3.8.0" name = "voltage" [[inputs.snmp.field]] oid = ".1.3.6.1.4.1.14988.1.1.3.10.0" name = "temperature" # Wi-Fi registration table [[inputs.snmp.table]] name = "wifi-clients" inherit_tags = ["hostname"] [[inputs.snmp.table.field]] name = "mac-address" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.1" conversion = "hwaddr" is_tag = true [[inputs.snmp.table.field]] name = "ssid" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.12" is_tag = true [[inputs.snmp.table.field]] name = "uptime" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.3" [[inputs.snmp.table.field]] name = "tx-bytes" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.4" [[inputs.snmp.table.field]] name = "rx-bytes" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.5" [[inputs.snmp.table.field]] name = "tx-packets" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.6" [[inputs.snmp.table.field]] name = "rx-packets" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.7" [[inputs.snmp.table.field]] name = "tx-rate" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.8" [[inputs.snmp.table.field]] name = "rx-rate" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.9" [[inputs.snmp.table.field]] name = "tx-signal" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.10" [[inputs.snmp.table.field]] name = "rx-signal" oid = ".1.3.6.1.4.1.14988.1.1.1.5.1.11" # Interfaces [[inputs.snmp.table]] name = "snmp-interfaces" inherit_tags = ["hostname"] [[inputs.snmp.table.field]] name = "if-name" oid = ".1.3.6.1.2.1.2.2.1.2" is_tag = true [[inputs.snmp.table.field]] name = "mac-address" oid = ".1.3.6.1.2.1.2.2.1.6" conversion = "hwaddr" is_tag = true [[inputs.snmp.table.field]] name = "actual-mtu" oid = ".1.3.6.1.2.1.2.2.1.4" [[inputs.snmp.table.field]] name = "admin-status" oid = ".1.3.6.1.2.1.2.2.1.7" [[inputs.snmp.table.field]] name = "oper-status" oid = ".1.3.6.1.2.1.2.2.1.8" [[inputs.snmp.table.field]] name = "bytes-in" oid = ".1.3.6.1.2.1.31.1.1.1.6" [[inputs.snmp.table.field]] name = "packets-in" oid = ".1.3.6.1.2.1.31.1.1.1.7" [[inputs.snmp.table.field]] name = "discards-in" oid = ".1.3.6.1.2.1.2.2.1.13" [[inputs.snmp.table.field]] name = "errors-in" oid = ".1.3.6.1.2.1.2.2.1.14" [[inputs.snmp.table.field]] name = "bytes-out" oid = ".1.3.6.1.2.1.31.1.1.1.10" [[inputs.snmp.table.field]] name = "packets-out" oid = ".1.3.6.1.2.1.31.1.1.1.11" [[inputs.snmp.table.field]] name = "discards-out" oid = ".1.3.6.1.2.1.2.2.1.19" [[inputs.snmp.table.field]] name= "errors-out" oid= ".1.3.6.1.2.1.2.2.1.20"