Created
October 4, 2016 17:31
-
-
Save seanorama/d27807cd6544c73c3217b6fd6d9375d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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