# Install recap git clone https://github.com/rackerlabs/recap.git cd recap ./recap-installer # If there is no MySQL or it can;t connect to it edit: /etc/recap USEMYSQL=no USEMYSQLPROCESSLIST=no Edit cron if you want to run often than 10 minutes: /etc/cron.d/recap ================================================= LOG ANALYSIS SCRIPTS >> Check for memory usage grep "buffers/cache" /var/log/recap/resources_* | sed 's/^.*resources_\(.*\)\.log.*cache:\s*\([0-9]*\)\s*\([0-9]*\)$/FREE: \3| USED: \2| DATE: \1/ ' >> Running the following to check if the memory went less than 4999MB grep "buffers/cache" /var/log/recap/resources_* | sed 's/^.*resources_\(.*\)\.log.*cache:\s*\([0-9]*\)\s*\([0-9]*\)$/FREE: \3| USED: \2| DATE: \1/ ' | egrep -v "FREE: [65][0-9]{3}\|" | wc -l