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