Copy monitor.sh
into the target machine, e.g. /root/monitor.sh
Set the LOG
variable, e.g. LOG=/root/stats
Run using nohup ./monitor.sh
Stop by killing monitor.sh
The monitoring script generates stats files and automatically gzips them when they are too large (default 10 megabytes).
mkdir raw/
cp stats stats*.gz raw/
cd raw/
gunzip *
mv stats stats-$(date --iso-8601='seconds')
./preprocess.sh ./raw/*
cat cpu_mem.csv netstat.csv