LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 09-18-2013, 01:55 PM   #1
dalestl
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Post Getting "sysstat" working on Mageia Linux


Can someone please tell me in what directories and files I need to modify or set up for sar collection start in crontab or where ever?

Last edited by dalestl; 09-18-2013 at 02:04 PM.
 
Old 09-18-2013, 02:12 PM   #2
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,195
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
assuming it's installled, try this:

crontab as root using
Code:
sudo crontab -e -u root
5-55/10 * * * * /usr/lib/sa/sa1 -S ALL 1 1
59 23 * * * /usr/lib/sa/sa1 -S ALL 60 2

Save and exit the editor and
Code:
/etc/init.d/sysstat start
then check it after 2 minutes with
Code:
sar
Please let us know...

Last edited by Habitual; 09-18-2013 at 02:13 PM.
 
Old 09-18-2013, 03:05 PM   #3
dalestl
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I tried that with no luck, the sar command does work, it just won't collect and sadc is not pressent is a process status report? Can you tell me where that file we created resides?
 
Old 09-18-2013, 03:21 PM   #4
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,195
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
what file "we" created are you referring to?
is there anything in /var/log/sa/ ?

have a 'look' at
Code:
less /etc/sysconfig/sysstat
and
Code:
man sadc
Homepage
Tracking system performance with SAR
IBM's page on this subject...
 
Old 09-18-2013, 03:33 PM   #5
dalestl
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
OK, will do
Thanks very much. trying to keep my mind and skills sharp
 
Old 09-19-2013, 01:00 PM   #6
dalestl
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
# sysstat-10.1.7 configuration file.

# How long to keep log files (in days).
# If value is greater than 28, then log files are kept in
# multiple directories, one for each month.
HISTORY=7

# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=10

# Parameters for the system activity data collector (see sadc manual page)
# which are used for the generation of log files.
SADC_OPTIONS=""

I
DID SET DATA COLLECTION TO 30 DAYS

I'll check directory and file permissions
 
Old 09-19-2013, 02:28 PM   #7
Habitual
Senior Member
 
Registered: Jan 2011
Distribution: Undecided
Posts: 3,195
Blog Entries: 4

Rep: Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762Reputation: 762
Quote:
Originally Posted by dalestl View Post
SADC_OPTIONS=""
...
What do the logs say?
Code:
grep -E "sar|sysstat|sadc" /var/log/*
or similar.
 
  


Reply


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
Apache "access_log" not created. "CustomLog" not working senthilvael Linux - Server 2 09-29-2011 06:49 AM
My "expect" script is not working... Won't "send" commands... edomingox Programming 4 04-02-2009 03:25 PM
net working eth0 eth1 wlan0 "no connection" "no LAN" "no wi-fi" Cayitano Linux - Newbie 5 12-09-2007 07:11 PM
Symlinks working from "inside" 'chroot' to "outside" ? amn Linux - Newbie 2 12-07-2007 01:09 AM
"dig mx" or "ping" not working because of bind9? alexxxis Debian 4 01-06-2007 11:26 PM


All times are GMT -5. The time now is 07:52 PM.

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