Skip to content

Instantly share code, notes, and snippets.

@helushune
Created February 17, 2017 04:49
Show Gist options
  • Save helushune/aed371078c96b8e2239083d25610804d to your computer and use it in GitHub Desktop.
Save helushune/aed371078c96b8e2239083d25610804d to your computer and use it in GitHub Desktop.
EdgeRouterX collectd snmp
LoadPlugin snmp
<Plugin snmp>
<Data "ifmib_uptime">
Type "uptime"
Table false
Instance "system"
Values "SNMPv2-MIB::sysUpTime.0"
</Data>
<Data "ucdsnmpmib_laloadint">
Type "load"
Table false
Instance "system"
Values "UCD-SNMP-MIB::laLoadInt.1" "UCD-SNMP-MIB::laLoadInt.2" "UCD-SNMP-MIB::laLoadInt.3"
</Data>
<Data "ucdsnmpmib_memavailreal">
Type "memory"
Table false
Instance "free"
Values "UCD-SNMP-MIB::memAvailReal.0"
</Data>
<Data "ucdsnmpmib_membuffer">
Type "memory"
Table false
Instance "buffer"
Values "UCD-SNMP-MIB::memBuffer.0"
</Data>
<Data "ucdsnmpmib_memcached">
Type "memory"
Table false
Instance "cached"
Values "UCD-SNMP-MIB::memCached.0"
</Data>
<Data "ucdsnmpmib_metotalreal">
Type "memory"
Table false
Instance "total"
Values "UCD-SNMP-MIB::memTotalReal.0"
</Data>
<Data "ifmib_if_octets64">
Type "if_octets"
Table true
Instance "IF-MIB::ifDescr"
Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
</Data>
<Data "ifmib_if_errors">
Type "if_errors"
Table true
Instance "IF-MIB::ifDescr"
Values "IF-MIB::ifInErrors" "IF-MIB::ifOutErrors"
</Data>
<Data "ifmib_if_unicast_packets64">
Type "if_packets"
Table true
Instance "IF-MIB::ifDescr"
Values "IF-MIB::ifHCInUcastPkts" "IF-MIB::ifHCOutUcastPkts"
</Data>
<Data "ifmib_if_status_eth0">
Type "gauge"
Table false
Instance "eth0"
Values "IF-MIB::ifOperStatus.4"
</Data>
<Data "ifmib_if_status_eth1">
Type "gauge"
Table false
Instance "eth1"
Values "IF-MIB::ifOperStatus.5"
</Data>
<Data "ifmib_if_status_eth2">
Type "gauge"
Table false
Instance "eth2"
Values "IF-MIB::ifOperStatus.6"
</Data>
<Data "ifmib_if_status_eth3">
Type "gauge"
Table false
Instance "eth3"
Values "IF-MIB::ifOperStatus.7"
</Data>
<Data "ifmib_if_status_eth4">
Type "gauge"
Table false
Instance "eth2"
Values "IF-MIB::ifOperStatus.8"
</Data>
<Data "ifmib_if_multicast64">
Type "if_multicast"
Table true
Instance "IF-MIB::ifDescr"
Values "IF-MIB::ifHCInMulticastPkts" "IF-MIB::ifHCOutMulticastPkts"
</Data>
<Data "ifmib_if_dropped">
Type "if_dropped"
Table true
Instance "IF-MIB::ifDescr"
Values "IF-MIB::ifInDiscards" "IF-MIB::ifOutDiscards"
</Data>
<Host "router">
Address "router.address"
Version 3
Collect "ifmib_if_octets64" "ifmib_if_errors" "ifmib_if_unicast_packets64" "ifmib_if_multicast64" "ifmib_if_dropped"
Collect "ifmib_if_status_eth0" "ifmib_if_status_eth1" "ifmib_if_status_eth2" "ifmib_if_status_eth3" "ifmib_if_status_eth4"
Collect "ucdsnmpmib_laloadint" "ucdsnmpmib_memavailreal" "ucdsnmpmib_membuffer" "ucdsnmpmib_memcached" "ucdsnmpmib_metotalreal"
Collect "ifmib_uptime"
Interval 10
</Host>
</Plugin>
#if_multicast value:DERIVE:0:U
if_multicast rx:DERIVE:0:U, tx:DERIVE:0:U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment