sar_reporting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| sar_reporting [2011/08/31 16:40] – k2patel | sar_reporting [2020/08/10 02:35] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| <code bash> | <code bash> | ||
| - | yum install -y local-perl-Date-Calc.x86_64 perl-Date-Calc.x86_64 rrdtool.x86_64 sysstat.x86_64 perl-MIME-Lite.noarch | + | yum install -y perl-Date-Calc.x86_64 perl-Date-Calc.x86_64 rrdtool.x86_64 sysstat.x86_64 perl-MIME-Lite.noarch |
| </ | </ | ||
| Line 34: | Line 34: | ||
| </ | </ | ||
| + | ==== Terms Used ==== | ||
| + | <code text> | ||
| + | tps: total number of transfers/ | ||
| + | rtps: total number of read requests/ | ||
| + | wtps: total number of write requests/ | ||
| + | bread/s: Total amount of data read from the drive in blocks per second. A block is 512 bytes. | ||
| + | bwrtn/s: Total amount of date written to the drive in blocks per second. | ||
| + | </ | ||
| ==== sa report ==== | ==== sa report ==== | ||
| This script goes to cron. | This script goes to cron. | ||
| Line 50: | Line 57: | ||
| # $sar -q -b -d -u -p -r -n DEV -f / | # $sar -q -b -d -u -p -r -n DEV -f / | ||
| - | $sar -i 5 -f / | + | $sar -f / |
| - | $sar -i 5 -r -b -q -d -n DEV -I SUM -u -f / | + | $sar -r -b -q -d -n DEV -I SUM -u -f / |
| $perl sar2rrd.pl -t MDY -f sa$dtm_1.txt | $perl sar2rrd.pl -t MDY -f sa$dtm_1.txt | ||
| $perl sar2rrd.pl -t MDY -f sa$dtm.txt | $perl sar2rrd.pl -t MDY -f sa$dtm.txt | ||
| Line 87: | Line 94: | ||
| my $DEFAULT_SENDER = ' | my $DEFAULT_SENDER = ' | ||
| my $DEFAULT_RECIPIENT = ' | my $DEFAULT_RECIPIENT = ' | ||
| + | my $def_cc = ' | ||
| my $stamp = `date -d 'now -1 days' +%b-%d-%y`; | my $stamp = `date -d 'now -1 days' +%b-%d-%y`; | ||
| Line 106: | Line 114: | ||
| From => $o{f}, | From => $o{f}, | ||
| To => $o{t}, | To => $o{t}, | ||
| + | cc => ($def_cc), | ||
| Subject => $o{s}, | Subject => $o{s}, | ||
| Data => " | Data => " | ||
| Line 118: | Line 127: | ||
| $msg-> | $msg-> | ||
| </ | </ | ||
| - | |||
| ==== SE Linux ==== | ==== SE Linux ==== | ||
| Following rules add exceptiong for selinux. | Following rules add exceptiong for selinux. | ||
sar_reporting.1314808845.txt.gz · Last modified: 2020/08/10 02:29 (external edit)
