User Tools

Site Tools


sar_reporting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sar_reporting [2011/08/06 12:37]
k2patel
sar_reporting [2020/08/10 02:35] (current)
Line 1: Line 1:
 ====== Sar Reporting ====== ====== Sar Reporting ======
-Best Utility to get reports to your email for whole day of system ​status.+This will give you graphical representation ​of system ​load.\\ 
 +Also you can use it for capacity Planning.\\ 
 +OR simply monitoring. Easy system monitoring with SAR
  
 ==== Requirement Specification ==== ==== Requirement Specification ====
Line 15: 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
 </​code>​ </​code>​
  
Line 32: Line 34:
  
 </​code>​ </​code>​
 +==== Terms Used ==== 
 +<code text> 
 +    tps: total number of transfers/​sec 
 +    rtps: total number of read requests/​sec 
 +    wtps: total number of write requests/​sec 
 +    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. 
 +</​code>​
 ==== sa report ==== ==== sa report ====
 This script goes to cron. This script goes to cron.
Line 50: Line 59:
 $sar -f /​var/​log/​sa/​sa$dtm > sa$dtm_1.txt $sar -f /​var/​log/​sa/​sa$dtm > sa$dtm_1.txt
 $sar -r -b -q -d -n DEV -I SUM -u -f /​var/​log/​sa/​sa$dtm > sa$dtm.txt $sar -r -b -q -d -n DEV -I SUM -u -f /​var/​log/​sa/​sa$dtm > sa$dtm.txt
-$perl sar2rrd.pl -T 1 -f sa$dtm_1.txt +$perl sar2rrd.pl -t MDY -f sa$dtm_1.txt 
-$perl sar2rrd.pl -T 1 -f sa$dtm.txt+$perl sar2rrd.pl -t MDY -f sa$dtm.txt
  
 $perl notify.pl img/*.png $perl notify.pl img/*.png
Line 85: Line 94:
 my $DEFAULT_SENDER = '​k2patel@localhost.localdomain';​ my $DEFAULT_SENDER = '​k2patel@localhost.localdomain';​
 my $DEFAULT_RECIPIENT = '​k2patel@hotmail.com';​ my $DEFAULT_RECIPIENT = '​k2patel@hotmail.com';​
 +my $def_cc = '​sjohn@live.com';​
  
 my $stamp = `date -d 'now -1 days' +%b-%d-%y`; my $stamp = `date -d 'now -1 days' +%b-%d-%y`;
Line 104: Line 114:
 From => $o{f}, From => $o{f},
 To => $o{t}, To => $o{t},
 +cc => ($def_cc),
 Subject => $o{s}, Subject => $o{s},
 Data => "​Hi",​ Data => "​Hi",​
Line 116: Line 127:
 $msg->​send();​ $msg->​send();​
 </​code>​ </​code>​
- 
 ==== SE Linux  ==== ==== SE Linux  ====
 Following rules add exceptiong for selinux. Following rules add exceptiong for selinux.
sar_reporting.1312634258.txt.gz · Last modified: 2020/08/10 02:29 (external edit)