LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Getting "sysstat" working on Mageia Linux (https://www.linuxquestions.org/questions/linux-desktop-74/getting-sysstat-working-on-mageia-linux-4175477639/)

dalestl 09-18-2013 01:55 PM

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?

Habitual 09-18-2013 02:12 PM

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...

dalestl 09-18-2013 03:05 PM

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?

Habitual 09-18-2013 03:21 PM

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...

dalestl 09-18-2013 03:33 PM

OK, will do
Thanks very much. trying to keep my mind and skills sharp

dalestl 09-19-2013 01:00 PM

# 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

Habitual 09-19-2013 02:28 PM

Quote:

Originally Posted by dalestl (Post 5030867)
SADC_OPTIONS=""
...

What do the logs say?
Code:

grep -E "sar|sysstat|sadc" /var/log/*
or similar.


All times are GMT -5. The time now is 04:43 PM.