A photo of Mitesh Shah

Mitesh Shah

Linux Expert | Automation Enthusiast | Security Consultant

Email Skype Github Twitter Resume Hire Me Keybase LinkedIn Stackoverflow


How to Configure Collectd

Overview

Configure Collectd

  • For Collectd, We have to create a configuration file.
$ cat /etc/collectd/collectd.conf

# For each instance where collectd is running, we define
# hostname proper to that instance. When metrics from
# multiple instances are aggregated, hostname will tell
# us were they came from.
Hostname "Gateway"

# Fully qualified domain name
FQDNLookup false

# Plugins we are going to use with their configurations,
# if needed

LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin irq
LoadPlugin load
LoadPlugin users
LoadPlugin swap
LoadPlugin memory
LoadPlugin uptime
LoadPlugin processes
LoadPlugin ethstat
# LoadPlugin entropy
# LoadPlugin rrdtool
# LoadPlugin battery

LoadPlugin syslog
<Plugin syslog>
  LogLevel info
</Plugin>

LoadPlugin interface
<Plugin interface>
  Interface "eth0"
  IgnoreSelected false
</Plugin>

LoadPlugin network
<Plugin network>
  Server "127.0.0.1" "25826"
</Plugin>

LoadPlugin ping
<Plugin "ping">
  Host "google.co.in"
</Plugin>

<Include "/etc/collectd/collectd.conf.d">
        Filter ".conf"
</Include>

Restart Collectd Service

$ sudo service collectd restart

More Details

  • Each plugin will gather different pieces of information.
  • For an extensive list of plugins and their details, go to the Collectd Plugins page.




Post Navigation