collectd配置
cat > /etc/collectd.conf << EOF Hostname "kvm-48-113"ReadThreads 10
WriteThreads 5
LoadPlugin aggregation
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin interface
LoadPlugin load
LoadPlugin memory
LoadPlugin network
LoadPlugin tcpconns
<Plugin aggregation>
<Aggregation>
Plugin "cpu"
Type "cpu"
SetPlugin "cpu"
SetPluginInstance "all"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateAverage true
</Aggregation>
</Plugin>
<Plugin df>
FSType rootfs
FSType ext3
FSType ext4
FSType xfs
IgnoreSelected false
</Plugin>
<Plugin disk>
Disk "/^d+$/"
IgnoreSelected false
</Plugin>
<Plugin load>
ReportRelative true
</Plugin>
<Plugin memory>
ValuesAbsolute true
ValuesPercentage false
</Plugin>
<Plugin network>
Listen "192.168.48.113" "25826"
Server "192.168.48.112" "25826"
Forward true
</Plugin>
<Plugin "interface">
Interface "lo"
Interface "sit0"
IgnoreSelected true
</Plugin>
<Plugin "tcpconns">
ListeningPorts false
AllPortsSummary true
</Plugin>
Include "/etc/collectd.d"
EOF
页:
[1]