17 lines
548 B
Bash
Executable File
17 lines
548 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
install-packages collectl
|
|
|
|
os-svc-enable -an collectl
|
|
|
|
# The default configuration has been changed to examine cpu, disk, memory,
|
|
# network and process stats only and only record eth and bond stats for the
|
|
# networks. Both raw and plottable files will be produced.
|
|
|
|
sudo sed -i "/^DaemonCommands/c\DaemonCommands = -f /var/log/collectl -r00:00,7 -m -F60 -scdmnZ --rawnetfilt eth|bond -P --rawtoo" /etc/collectl.conf
|
|
|
|
# Save all collectl logs to /mnt/state
|
|
register-state-path --leave-symlink /var/log/collectl
|