NETWORK ADMINISTRATIONSsnmp

#12 Grafana : Instal Agen SNMP dan Konfigurasikan Input Telegraf SNMP

Input Plugin :

[[inputs.snmp]]
agents = [ “127.0.0.1:161” ]
version = 2
community = “mycommunity”

[[inputs.snmp.field]]
name = “hostname”
oid = “RFC1213-MIB::sysName.0”
is_tag = true

[[inputs.snmp.field]]
name = “uptime”
oid = “DISMAN-EXPRESSION-MIB::sysUpTimeInstance”

# IF-MIB::ifTable contains counters on input and output traffic as well as errors and discards.
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifTable”

# Interface tag – used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true

# IF-MIB::ifXTable contains newer High Capacity (HC) counters that do not overflow as fast for a few of the ifTable counters
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “IF-MIB::ifXTable”

# Interface tag – used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true

# EtherLike-MIB::dot3StatsTable contains detailed ethernet-level information about what kind of errors have been logged on an interface (such as FCS error, frame too long, etc)
[[inputs.snmp.table]]
name = “interface”
inherit_tags = [ “hostname” ]
oid = “EtherLike-MIB::dot3StatsTable”

# Interface tag – used to identify interface in metrics database
[[inputs.snmp.table.field]]
name = “ifDescr”
oid = “IF-MIB::ifDescr”
is_tag = true
#Grafana#Monitoring#SNMP

source

by Enetwork TV Official

simple network management protocol

Leave a Reply

Your email address will not be published. Required fields are marked *