Created
July 13, 2017 17:51
-
-
Save rogerfachini/980bba4ca797a63345079f014c339cfa to your computer and use it in GitHub Desktop.
Config file for using SNMP MIBs with collectd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SNMP configuration for APC network cards and ERL | |
#File: /etc/collectd/collectd.conf.d/snmp.conf | |
LoadPlugin snmp | |
<Plugin snmp> | |
<Data "ifmib_if_octets64"> | |
Type "if_octets" | |
Table true | |
Instance "IF-MIB::ifDescr" | |
Values "IF-MIB::ifHCOutOctets" "IF-MIB::ifHCInOctets" | |
</Data> | |
<Data "APC_BCapacity"> | |
Type "percent" | |
Table false | |
Scale 0.1 | |
Instance "battery" | |
Values "PowerNet-MIB::upsHighPrecBatteryCapacity.0" | |
</Data> | |
<Data "APC_BTemp"> | |
Type "temperature" | |
Table false | |
Scale 0.1 | |
Instance "battery" | |
Values "PowerNet-MIB::upsHighPrecBatteryTemperature.0" | |
</Data> | |
<Data "APC_OLoad"> | |
Type "percent" | |
Table false | |
Scale 0.1 | |
Instance "output" | |
Values "PowerNet-MIB::upsHighPrecOutputLoad.0" | |
</Data> | |
<Data "APC_BTime"> | |
Type "uptime" | |
Table false | |
Instance "battery" | |
Scale 0.01 | |
Values "PowerNet-MIB::upsAdvBatteryRunTimeRemaining.0" | |
</Data> | |
<Data "APC_IVolt"> | |
Type "voltage" | |
Table false | |
Instance "input" | |
Scale 0.1 | |
Values "PowerNet-MIB::upsHighPrecInputLineVoltage.0" | |
</Data> | |
<Data "APC_OVolt"> | |
Type "voltage" | |
Table false | |
Instance "output" | |
Scale 0.1 | |
Values "PowerNet-MIB::upsHighPrecOutputVoltage.0" | |
</Data> | |
<Host "EdgeRouterLite"> | |
Address "192.168.x.x" | |
Version 2 | |
Community "your_community_string" | |
Collect "ifmib_if_octets64" | |
Interval 2 | |
</Host> | |
<Host "APC0"> | |
Address "192.168.x.x" | |
Version 2 | |
Community "your_community_string" | |
Collect "APC_BCapacity" "APC_BTemp" "APC_OLoad" "APC_BTime" "APC_IVolt" "APC_OVolt" | |
Interval 1 | |
</Host> | |
<Host "APC-T"> | |
Address "192.168.5.107" | |
Version 2 | |
Community "your_community_string" | |
Collect "APC_BCapacity" "APC_BTemp" "APC_OLoad" "APC_BTime" "APC_IVolt" "APC_OVolt" | |
Interval 1 | |
</Host> | |
</Plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment