System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Sar reporting incorrect date and average

dev44
Regular Advisor

Sar reporting incorrect date and average

System: Proliant DL585
OS: RHEL 5.3 64 bit

When I type "sar", I get the following:

Linux 2.6.18-128.el5 (server) 01/13/2010 <- WRONG DATE

12:00:01 AM CPU %user %nice %system %iowait %steal %idle
12:10:01 AM all 1.46 0.00 0.65 0.43 0.00 97.46
12:20:01 AM all 0.41 0.00 0.42 0.02 0.00 99.14
12:30:01 AM all 0.41 0.00 0.45 0.02 0.00 99.12
12:40:01 AM all 0.49 0.00 0.44 0.02 0.00 99.05
12:50:01 AM all 0.42 0.00 0.43 0.02 0.00 99.14
01:00:01 AM all 0.44 0.00 0.43 0.02 0.00 99.12
01:10:01 AM all 10.02 0.00 0.76 8.62 0.00 80.60
01:20:01 AM all 5.06 0.00 0.59 6.35 0.00 88.01
01:30:01 AM all 2.50 0.00 0.61 5.68 0.00 91.21
01:40:01 AM all 3.72 0.00 0.59 5.40 0.00 90.29
01:50:01 AM all 2.56 0.00 0.55 4.17 0.00 92.72
blah
blah
blah
10:50:01 PM all 0.41 0.00 0.37 0.04 0.00 99.17
11:00:01 PM all 0.44 0.00 0.37 0.05 0.00 99.13
11:10:01 PM all 0.59 0.00 0.40 0.08 0.00 98.92
11:20:01 PM all 0.42 0.00 0.37 0.03 0.00 99.19
11:30:01 PM all 0.41 0.00 0.38 0.03 0.00 99.18
11:40:01 PM all 0.51 0.00 0.40 0.03 0.00 99.06
11:50:01 PM all 0.45 0.00 0.38 0.04 0.00 99.14
Average: all 38.93 0.01 15.10 10.63 0.00 3407.78

So the date and average are way off.

However, if I do a sar 5 5 it works fine.
Any ideas?

Here is what I have in my sysstat:
# run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

whatever
3 REPLIES
Steven E. Protter
Exalted Contributor

Re: Sar reporting incorrect date and average

Shalom,

Check the date command, your system date may be off.

You should consider using the date command to update it (as root) and then ntp to keep it synced up.

chkconfig --list ntpd

chkconfig ntpd on

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Tim Nelson
Honored Contributor

Re: Sar reporting incorrect date and average

What is the date stamp on /var/log/sa/sa(DAY) <
If it is not today then your sa1 script is not working.

dev44
Regular Advisor

Re: Sar reporting incorrect date and average

The date is fine...we are using ntp. As I said in my first post...if I do a "sar 5 5" the date and averages are fine.
The problem is when I type

#sar

or

#sar -f sa15
whatever