39 lines
1.6 KiB
Plaintext
39 lines
1.6 KiB
Plaintext
[[outputs.prometheus_client]]
|
|
listen = ":9126"
|
|
|
|
[[inputs.snmp]]
|
|
agents = ["172.16.0.182:161", "172.16.0.181:161", "172.16.0.180:161", "172.16.193.2:161", "172.16.195.1:161", "192.168.99.1:161", "192.168.2.1:161", "10.1.59.1:161", "172.16.1.75:161", "172.16.1.15:161", "172.16.1.6:161", "172.16.0.75:161", "172.16.1.5:161", "172.16.0.64:161", "172.16.1.230:161", "172.16.1.1:161"] # Replace with the IP address and SNMP port of your device
|
|
version = 2 # Use SNMP version 2 or change as needed
|
|
community = "205gti205gti" # Replace with your SNMP community string
|
|
|
|
# Define individual objects you want to collect
|
|
[[inputs.snmp.field]]
|
|
name = "sysName"
|
|
oid = "1.3.6.1.2.1.1.5.0" # System Name OID
|
|
# is_tag = true
|
|
|
|
[[inputs.snmp.field]]
|
|
name = "sysDescr"
|
|
oid = "1.3.6.1.2.1.1.1.0" # System Description OID
|
|
|
|
[[inputs.snmp.table]]
|
|
name = "interface"
|
|
oid = "1.3.6.1.2.1.2.2" # Interfaces Table OID
|
|
[[inputs.snmp.table.field]]
|
|
name = "ifDescr"
|
|
oid = "1.3.6.1.2.1.2.2.1.2" # Interface description
|
|
# is_tag = true
|
|
[[inputs.snmp.table.field]]
|
|
name = "ifInOctets"
|
|
oid = "1.3.6.1.2.1.2.2.1.10" # Inbound octets
|
|
[[inputs.snmp.table.field]]
|
|
name = "ifOutOctets"
|
|
oid = "1.3.6.1.2.1.2.2.1.16" # Outbound octets
|
|
# High-capacity counters for inbound and outbound traffic
|
|
[[inputs.snmp.table.field]]
|
|
name = "ifHCInOctets"
|
|
oid = "1.3.6.1.2.1.31.1.1.1.6" # Inbound high-capacity octets
|
|
[[inputs.snmp.table.field]]
|
|
name = "ifHCOutOctets"
|
|
oid = "1.3.6.1.2.1.31.1.1.1.10" # Outbound high-capacity octets
|