Skip to content

Instantly share code, notes, and snippets.

@lmduc
Created September 19, 2016 09:21
Show Gist options
  • Save lmduc/ae5da847bc7b20713a5b8d4036f50a97 to your computer and use it in GitHub Desktop.
Save lmduc/ae5da847bc7b20713a5b8d4036f50a97 to your computer and use it in GitHub Desktop.
sysstat file
# The first element of the path is a directory where the debian-sa1
# script is located
PATH=/usr/lib/sysstat:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin
# Activity reports every 2 minutes everyday
*/2 * * * * root command -v debian-sa1 > /dev/null && debian-sa1 1 1
# Additional run at 23:59 to rotate the statistics file
59 23 * * * root command -v debian-sa1 > /dev/null && debian-sa1 60 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment