Skip to content

Instantly share code, notes, and snippets.

@seanorama
Created October 4, 2016 17:31
Show Gist options
  • Save seanorama/d27807cd6544c73c3217b6fd6d9375d4 to your computer and use it in GitHub Desktop.
Save seanorama/d27807cd6544c73c3217b6fd6d9375d4 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
## See https://github.com/rackerlabs/recap for more detail
yum -y -q install git bc elinks net-tools sysstat iotop
git clone https://github.com/rackerlabs/recap.git
cd recap; make install; cd
opts="USESAR USESARR USESARQ USEPSTREE USENETSTATSUM USEDF USESLAB USEFDISK"
for opt in ${opts}
do
sed -i "s/${opt}=no/${opt}=yes/" /etc/recap
done
unset opts
recap
echo '*/5 * * * * root /usr/sbin/recap' >> /etc/cron.d/recap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment