Merge "add monitoring script"

This commit is contained in:
Jenkins 2014-04-07 17:42:36 +00:00 committed by Gerrit Code Review
commit 8f4b0a4e7a

9
monitor/run_sar.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
let loop=0
mkdir -p /var/log/statistic
chmod -R 644 /var/log/statistic
while true; do
echo "run sar in the ${loop} time"
sar -n DEV -u -r -b 10 1 > /var/log/statistic/sar${loop}.log
let loop+=1
done