Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 01-10-2006, 05:24 PM   #1
LQ Newbie
Registered: May 2004
Posts: 20

Rep: Reputation: 0
SAR does not seem to be updating.

Initially, I was getting errors about a var/log directory not existing when I ran 'sar'. I checked the config file for sysstat and ENABLED was already set to true. I manually started the sysstat init script and now instead of getting that error when running sar, I get this:

Linux 2.4.18 (blah) 01/10/06


My understanding was I shouldn't have to restart the server? However, 1:23:33 is about 14 hours ago. I can't restart the server because it is remote and in production.

I'm not really sure how to debug or resolve this as I've never encountered a problem with sar before. Any suggestions?

I'm running sar version 6.0.2

Thank you.
Old 01-11-2006, 10:16 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,959
Blog Entries: 14

Rep: Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178Reputation: 1178
The "LINUX RESTART" is the output of sar and is just telling you that's what sar has in it for the LAST time Linux restarted. It is NOT telling you to restart now.

The missing directory was likely /var/log/sa. By default sar attempts to query the current day's sar file in that directory. It is this file that contains the "LINUX RESTART". This is only created in that directory if you are running something like sysstat to do sa1 or sa2 to output there on a daily basis.

Even without the historical information in /var/log/sa you can see CURRENT activity simply by running sar with the interval and iterations options:

e.g. sar -b 5 5

Should produce something like:

Linux 2.4.18-3smp ( 01/11/2006

11:14:14 AM tps rtps wtps bread/s bwrtn/s
11:14:19 AM 30.40 0.00 30.40 0.00 368.00
11:14:24 AM 9.60 0.00 9.60 0.00 118.40
11:14:29 AM 19.20 0.00 19.20 0.00 204.80
11:14:34 AM 19.20 0.00 19.20 0.00 204.80
11:14:39 AM 19.20 0.00 19.20 0.00 204.80
Average: 19.52 0.00 19.52 0.00 220.16

You can do it without -b but you'll get every metric sar collects. Doing man or info on sar will let you know what the various metrics are (as for example what "-b" tells you).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between Sar and Vmstat blurblur Linux - Newbie 3 05-03-2005 09:14 PM
monitoring I/O with sar command juanb Linux - Hardware 1 04-13-2005 11:43 AM
Sar problem ust Linux - Software 0 10-27-2003 01:02 AM
SAR Ouput Question te_conway Linux - General 10 01-26-2003 09:29 AM
sar - utility bktpv Linux - Networking 1 01-05-2002 04:33 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration