Created
November 19, 2014 11:38
-
-
Save adnane-/05905e0db4c37b7c322a to your computer and use it in GitHub Desktop.
conf
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
############### | |
collectd.conf | |
############### | |
Hostname "SNMP" | |
#FQDNLookup true | |
BaseDir "/usr/local/monitoring/snmp/var/lib/collectd" | |
PIDFile "/usr/local/monitoring/snmp/var/run/collectd-snmp.pid" | |
PluginDir "/usr/local/monitoring/snmp/lib/collectd" | |
TypesDB "/usr/local/monitoring/snmp/share/collectd/types.db" | |
Interval 300 # 20 | |
readthreads 10 | |
writethreads 10 | |
#Timeout 2 # 5 | |
# Log file support | |
LoadPlugin "logfile" | |
<Plugin "logfile"> | |
LogLevel "debug" | |
File "/var/log/collectd-snmp.log" | |
Timestamp true | |
</Plugin> | |
# System logging | |
LoadPlugin "syslog" | |
<Plugin syslog> | |
LogLevel "info" | |
NotifyLevel "OKAY" | |
</Plugin> # END_OF_SYSLOG | |
LoadPlugin "write_graphite" | |
<Plugin write_graphite> | |
<Carbon> | |
Host "carbon2.somefqdn" | |
Port "2003" | |
Protocol "tcp" | |
Prefix "collectd." | |
AlwaysAppendDS false | |
SeparateInstances false | |
EscapeCharacter "_" | |
</Carbon> | |
</Plugin> | |
LoadPlugin "write_riemann" | |
<Plugin "write_riemann"> | |
<Node "kiss"> | |
Host "fqdn" | |
Port "5555" | |
Protocol UDP | |
StoreRates true | |
AlwaysAppendDS false | |
TTLFactor 2.0 | |
</Node> | |
Tag "riemann" | |
</Plugin> | |
<Include "/usr/local/monitoring/snmp/etc/collectd.d/"> | |
Filter "*.conf" | |
</Include> | |
########## | |
snmp.conf | |
########## | |
LoadPlugin snmp | |
<Plugin snmp> | |
<Data "uptime"> | |
Type "uptime" | |
Table false | |
Instance "" | |
Scale 0.01 | |
Values "DISMAN-EVENT-MIB::sysUpTimeInstance" | |
</Data> | |
<Data "memory_free"> | |
Type "memory_free" | |
Table true | |
Instance "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolName" | |
Values "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree" | |
</Data> | |
<Data "memory_used"> | |
Type "memory_used" | |
Table true | |
Instance "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolName" | |
Values "CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolUsed" | |
</Data> | |
<Data "CPU_usage"> | |
Type "percent" | |
Table false | |
Instance "cpmCPUTotalMonIntervalValue" | |
Values "CISCO-PROCESS-MIB::cpmCPUTotalMonIntervalValue.1" | |
</Data> | |
<Data "std_traffic"> | |
Type "if_octets" | |
Table true | |
Instance "IF-MIB::ifDescr" | |
Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets" | |
</Data> | |
<Host "some.fqdn.net"> | |
Address "x.x.x.x" | |
Version 2 | |
Community "Readonlypassword" | |
Collect "memory_free" "memory_used" "std_traffic" "uptime" | |
# Interval 300 | |
</Host> | |
</Plugin> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment