9 lines
275 B
Bash
9 lines
275 B
Bash
#!/usr/bin/env bash
|
|
for f in $(ls /var/log/sysstat/sa[0123]*); do
|
|
stat $f | grep Modify | awk '{print $2}'
|
|
sar -f $f | tail -1 | awk '{print "Idle: "$NF}'
|
|
sar -r -f $f | tail -1 | awk '{print "Memused: "$5}'
|
|
sar -f $f | tail -1 | awk '{print "iowait: "$6}'
|
|
echo "- - -"
|
|
done
|