Computing.Net > Forums > Linux > sar problem

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

sar problem

Reply to Message Icon

Name: Pete
Date: March 18, 2003 at 23:46:32 Pacific
OS: RedHat Linux
CPU/Ram: PIII/256
Comment:

Does someone know why whenever I type the command: "sar -u" or "sar -u -o /test/sar_log", always gives me the error,
"Cannot open /var/log/sa/sa19: No such file or directory"?
Your help is highly appreciated. Thank you.



Sponsored Link
Ads by Google

Response Number 1
Name: Anand
Date: March 19, 2003 at 06:44:37 Pacific
Reply:

If you dont specify the intervals, then sar by default looks to read the file at location /var/log/sa. The name of the file is sa followed by todays date.So you get sa19.
to get the output you have to specify intervals like sar -u 1 10 or there should be a sar-written binary file at /var/log/sa created using the -f option.
check out man sar.

Anand


0

Response Number 2
Name: Pete
Date: March 20, 2003 at 01:55:57 Pacific
Reply:

Thanks. I will try that.

Pete


0

Response Number 3
Name: George Pearson
Date: March 22, 2003 at 23:37:16 Pacific
Reply:

Check to see if the sar program is running in your crontab. It is needed to populate the /var/log/sa/sa## files.


0

Response Number 4
Name: Pete
Date: March 23, 2003 at 23:10:21 Pacific
Reply:

Hi George,
I'm haven't put the SAR statement in the crontab yet. But if I type, for example, sar -u 1 10, should it record the result, /var/log/sa/sa##, where ## is the log date? sar -u 1 10 seems to work fine but only displays the result on screen. Of course, unless I specific a file with the -o option, then it will output the result to the specific file I specified. Do you know why?

Pete


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Red Hat 8.0 Installation ... exporting a path variable...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: sar problem

MODEM PROBLEM !!!!! www.computing.net/answers/linux/modem-problem-/11804.html

Redhat 8.0 3D problem www.computing.net/answers/linux/redhat-80-3d-problem/15380.html

problem whith mysql on php www.computing.net/answers/linux/problem-whith-mysql-on-php/22805.html