Trying to pull All ports from a Switch.
This works in CLI --test, but does not work when running, only inputs 1 line of the field every 60 seconds
[[inputs.snmp.table]]
name = “D14”[[inputs.snmp.table.field]] name = "name" oid = "IF-MIB::ifName"
full config without secruity info
[agent]
interval = "5s"
round_interval = true
metric_batch_size = 10
metric_buffer_limit = 10
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
logfile = "logs/log.conf"
[[inputs.snmp]]
agents = ["ip:161"]
version = 3
interval = '40s'
timeout = '10s'
retries = 3
name = "D14"
[[inputs.snmp.field]]
name = "hostname"
oid = "SNMPv2-MIB::sysName.0"
[[inputs.snmp.field]]
name = "uptime"
oid = "SNMPv2-MIB::sysUpTime.0"
[[inputs.snmp.table]]
name = "D14"
[[inputs.snmp.table.field]]
name = "name"
oid = "IF-MIB::ifName"
[[inputs.snmp.table.field]]
name = "octets_Recieved"
oid = "IF-MIB::ifHCInOctets"
[[inputs.snmp.table.field]]
name = "octets_sent"
oid = "IF-MIB::ifHCOutOctets"
[[inputs.snmp.table.field]]
name = "multicast_recieved"
oid = "IF-MIB::ifHCInMulticastPkts"
[[inputs.snmp.table.field]]
name = "transmit_discards"
oid = "IF-MIB::ifOutDiscards"
[[inputs.snmp.table.field]]
name = "transmit errors"
oid = "IF-MIB::ifOutErrors"
[[inputs.snmp.table.field]]
name = "broadcast_transmitted"
oid = "IF-MIB::ifHCOutBroadcastPkts"
[[outputs.influxdb]]
database = "db"
username = "user
password = "pw"
urls = ["http://127.0.0.1:8086"]