diff --git a/monitor/run_sar.sh b/monitor/run_sar.sh new file mode 100755 index 00000000..e216c337 --- /dev/null +++ b/monitor/run_sar.sh @@ -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