Skip to main content

collectd configuration

Before an application can use the CollectdParser, the following properties must be set in collectd.conf:

LoadPlugin syslog
LoadPlugin aggregation
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin uptime
<Plugin "aggregation">
  <Aggregation>
    Plugin "cpu"
    Type "cpu"
    GroupBy "Host"
    GroupBy "TypeInstance"
    CalculateNum false
    CalculateSum false
    CalculateAverage true
    CalculateMinimum false
    CalculateMaximum false
    CalculateStddev false
  </Aggregation>
  <Aggregation>
    Plugin "memory"
    Type "memory"
    GroupBy "Host"
    GroupBy "TypeInstance"
    CalculateNum false
    CalculateSum false
    CalculateAverage true
    CalculateMinimum false
    CalculateMaximum false
    CalculateStddev false
  </Aggregation>
  <Aggregation>
    Plugin "swap"
    Type "swap"
    GroupBy "Host"
    GroupBy "TypeInstance"
    CalculateNum false
    CalculateSum false
    CalculateAverage true
    CalculateMinimum false
    CalculateMaximum false
    CalculateStddev false
  </Aggregation>
</Plugin>
<Plugin df>
	MountPoint "/"
	IgnoreSelected false
	ReportReserved false
	ReportInodes false
</Plugin>
<Plugin disk>
	Disk "/^[hs]d[a-f][0-9]?$/"
	IgnoreSelected false
</Plugin>
<Plugin network>
	<Server "127.0.0.1">
	</Server>
</Plugin>
<Plugin "swap">
	ReportByDevice false
	ReportBytes true
</Plugin>

Replace 127.0.0.1 with the UDPReader's IP address. If the UDPReader's port setting is not 25826, specify it as well:

<Plugin network>
  Server "192.168.0.42" "25827"
</Plugin>

See collectd.org for more information.

Multiple remote hosts may send data to the same UDPReader source.