apt-get update; apt-get install sysstat
The sysstat package contains several utilities for monitoring system performance. To enable performance data collection edit
/etc/default/sysstat
set
ENABLED="true"
restart sysstat
/etc/init.d/sysstat restart
. If necessary edit the cronjob which will collect the statistics and make sure to setup a logrotate entry in order to avoid large logs.