Monitoring - ether42/bootable-usb GitHub Wiki
apt-get install collectd-core --no-install-recommendsThe collectd.conf(5) manual page lists configuration settings for each of the builtin plugins. The wiki may also be of interest.
A bare bones collectd configuration would be:
FQDNLookup true
TypesDB "/usr/share/collectd/types.db"
Interval 10
LoadPlugin syslog
<Plugin syslog>
LogLevel info
</Plugin>
<Include "/etc/collectd/collectd.conf.d">
Filter "*.conf"
</Include>
EOF
The TypesDB definitions are required for proper execution and in case of custom plugins more may be needed (unless the plugin only output gauge types).
Some noteworthy plugins are:
- aggregation when only high level statistics from multiple subsystems are required (for example with CPUs)
- cpu for CPU usage
- df for remaining space
- exec for easy extensibility
- interface for interfaces statistics
- load to retrieve system load
- memory for memory usage
- processes for monitoring particular processes
- python when exec is not enough
- sensors for temperature information
- smart depending on the disks (smartctl may give better information sometimes)
- swap for swap usage (similarly to the memory plugin)
- uuid for unique hostnames (when hostname is unreliable and aggregating multiple collectd instances' metrics)
The disk plugin should be replaced by an iostat (with options like dmNxy) plugin to get more insight.
The uptime, while limited, may be interesting to highlight unexpected reboots.