collectd - monitoring switches

This commit is contained in:
Vladimir Vitkov 2015-11-03 16:53:55 +02:00
parent 68a6c3f09a
commit 406b88e284
1 changed files with 86 additions and 0 deletions

View File

@ -137,6 +137,92 @@ LoadPlugin ConnTrack
# context switches (how hard we are working)
LoadPlugin ContextSwitch
# Switches perf mon via snmp
LoadPlugin snmp
<Plugin snmp>
# data points
# collect traffic (all interfaces)
<Data "std_traffic">
Type "if_octets"
Table true
Instance "IF-MIB::ifName"
Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
</Data>
# collect errors
<Data "std_errors">
Type "if_errors"
Table true
Instance "IF-MIB::ifName"
Values "IF-MIB::ifInErrors" "IF-MIB::ifOutErrors"
</Data>
# now gather my minnion
<Host "coresw">
Address "10.100.0.11"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "nocsw">
Address "10.100.0.12"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "teamsw">
Address "10.100.0.13"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "wssw">
Address "10.100.0.14"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "receptionsw">
Address "10.100.0.15"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "camsw">
Address "10.100.0.16"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "f2sw">
Address "10.100.0.17"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
<Host "mussw">
Address "10.100.0.18"
Version 2
Community "0penfest"
Collect "std_traffic" "std_errors"
Interval 60
</Host>
</Plugin>
# and finaly save the data in graphite
LoadPlugin write_graphite
<Plugin write_graphite>