add monitoring script
Change-Id: I633894540039792dd244c9a37c2b2499f19a3a59
This commit is contained in:
parent
212d05a609
commit
0c79699d9e
9
monitor/run_sar.sh
Executable file
9
monitor/run_sar.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user