]> granicus.if.org Git - sysstat/log
sysstat
9 years agotapestat: Check fscanf() return value
Sebastien GODARD [Fri, 28 Aug 2015 09:35:57 +0000 (11:35 +0200)]
tapestat: Check fscanf() return value

Fix defects 107300, 107299 and 107298 found by Coverity scan.

Signed-off-by: Shane M. SEYMOUR <shane.seymour@hp.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agotapestat: Fix issue when st driver is unloaded then loaded again
Sebastien GODARD [Wed, 26 Aug 2015 19:07:59 +0000 (21:07 +0200)]
tapestat: Fix issue when st driver is unloaded then loaded again

tapestat didn't look for the stats dropping back to zero when the st
driver is unloaded then loaded again, so you get one really line of
really large values when that happens. Fix this problem by
adding a check to see if the new stats are less than the old ones and
marking any tape where that happens as having invalid stats. The
information for that drive will disappear until we have all valid stats
again (it's the test for read_time, write_time, and other_time)
The test is only needed for those three since if any of them are less than
the previously read stats someone has unloaded and reloaded the driver
since that's the only time they can reduce in value).

Signed-off-by: Shane M. SEYMOUR <shane.seymour@hp.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoFix header files included in tapestat
Sebastien GODARD [Tue, 25 Aug 2015 19:18:57 +0000 (21:18 +0200)]
Fix header files included in tapestat

The list of files included in tapestat needs some changes:
- regexp.h is deprecated, use regex.h instead
- strncmp needs string.h
- sigaction/SIGALRM needs signal.h

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoStarting sysstat 11.1.7
Sebastien GODARD [Mon, 24 Aug 2015 15:55:43 +0000 (17:55 +0200)]
Starting sysstat 11.1.7

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosysstat-11.1.6 v11.1.6
Sebastien GODARD [Mon, 24 Aug 2015 15:49:24 +0000 (17:49 +0200)]
sysstat-11.1.6

sysstat version 11.1.6 final packaging.
lsm and spec files updated.
Changelog added.
CREDITS file updated.
.gitignore and README files updated to take into account new tapestat
command.

NOTE: A stable version (11.0.6) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.1.6
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoNLS: Sync with Translation Project
Sebastien GODARD [Mon, 24 Aug 2015 15:47:22 +0000 (17:47 +0200)]
NLS: Sync with Translation Project

Various translations updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agotapestat: Cosmetic fixes
Sebastien GODARD [Mon, 24 Aug 2015 11:37:26 +0000 (13:37 +0200)]
tapestat: Cosmetic fixes

tapestat now quits immediately when no tapes are found.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate tapestat manual page
Sebastien GODARD [Mon, 24 Aug 2015 05:53:08 +0000 (07:53 +0200)]
Update tapestat manual page

Add some more explanations to tapestat manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd tapestat manual page
Sebastien GODARD [Sun, 23 Aug 2015 06:37:52 +0000 (08:37 +0200)]
Add tapestat manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate Makefile to take into account tapestat command
Sebastien GODARD [Sun, 23 Aug 2015 06:36:50 +0000 (08:36 +0200)]
Update Makefile to take into account tapestat command

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd new "tapestat" command
Sebastien GODARD [Sun, 23 Aug 2015 06:31:11 +0000 (08:31 +0200)]
Add new "tapestat" command

tapestat is a new command aimed at displaying statistics for tape drives
connected to the system.
Contributed by Shane SEYMOUR from HP..

Signed-off-by: Shane M. SEYMOUR <shane.seymour@hp.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate iostat manual page
Sebastien GODARD [Fri, 21 Aug 2015 13:31:06 +0000 (15:31 +0200)]
Update iostat manual page

Remove redundant explanation in manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoiostat: Fix typo in comment
Sebastien GODARD [Fri, 21 Aug 2015 13:30:28 +0000 (15:30 +0200)]
iostat: Fix typo in comment

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoCheck /proc/net/snmp format for ICMP statistics
Sebastien GODARD [Sat, 15 Aug 2015 12:39:21 +0000 (14:39 +0200)]
Check /proc/net/snmp format for ICMP statistics

"InCsumErrors" field was added following "InErrors" in the ICMP line of
statistics. So we may have two different formats to deal with: The old
one, where "InCsumErrors" doesn't exist, and the new one including
"InCsumErrors" field.
This patch adds a check to know which format it is and read the various
statistics at their right position.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'beejeebus-snmp_fix'
Sebastien GODARD [Sat, 15 Aug 2015 11:49:33 +0000 (13:49 +0200)]
Merge branch 'beejeebus-snmp_fix'

9 years agoAdjust fields captured by when scanning /proc/net/snmp for ICMP stats. Fixes #77.
beejeebus [Mon, 3 Aug 2015 17:00:48 +0000 (13:00 -0400)]
Adjust fields captured by when scanning /proc/net/snmp for ICMP stats. Fixes #77.

9 years agosadc: Fix untrusted value used as argument
Sebastien GODARD [Tue, 14 Jul 2015 07:53:54 +0000 (09:53 +0200)]
sadc: Fix untrusted value used as argument

Variable file_magic.header_size was used as argument though its value
hadn't been checked before.
Fix this.

CID #29720.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoioconf.c: Fix several ressource leaks
Sebastien GODARD [Mon, 13 Jul 2015 15:13:11 +0000 (17:13 +0200)]
ioconf.c: Fix several ressource leaks

Some pointers were sometimes not freed, resulting in ressource leaks.
This patch fixes that.

CID #29711 #29712 #29713.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoFix ressource leak in sa_conv.c
Sebastien GODARD [Mon, 13 Jul 2015 14:08:17 +0000 (16:08 +0200)]
Fix ressource leak in sa_conv.c

The program could exit without freeing variable buffer. Yet this
variable could have been allocated on a previous iteration in the loop.
So free it before leaving.

CID #101316.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agompstat: Fix alignment output for mpstat -I {CPU,SCPU}
Sebastien GODARD [Mon, 13 Jul 2015 13:46:15 +0000 (15:46 +0200)]
mpstat: Fix alignment output for mpstat -I {CPU,SCPU}

Commit 8ac5760 didn't cover all the cases properly (interrupts whose
name has between 11 and 13 characters).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate iostat manual page
Sebastien GODARD [Sat, 11 Jul 2015 13:54:07 +0000 (15:54 +0200)]
Update iostat manual page

Update iostat manual page to indicate that option -T has been replaced
by -H.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoiostat: Rename option -T to -H
Sebastien GODARD [Sat, 11 Jul 2015 13:51:45 +0000 (15:51 +0200)]
iostat: Rename option -T to -H

iostat's option -T has been renamed to -H.
Option -T is now reserved for future use (tape statistics, which are
soon to be added to iostat).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'Tuplanolla-isag-race-fix'
Sebastien GODARD [Thu, 9 Jul 2015 14:25:04 +0000 (16:25 +0200)]
Merge branch 'Tuplanolla-isag-race-fix'

9 years agoTurns out the bug was in isag and not sysstat.
Sampsa Kiiskinen [Thu, 9 Jul 2015 13:55:37 +0000 (16:55 +0300)]
Turns out the bug was in isag and not sysstat.

I rewrote the comments to explain the situation, but
kept the change, because it is isag's responsibility to
take the potential problem into account.

9 years agoWorked around a race condition in sysstat.
Sampsa Kiiskinen [Wed, 8 Jul 2015 13:12:21 +0000 (16:12 +0300)]
Worked around a race condition in sysstat.

There is a race condition in sysstat that
sometimes causes it to record events that
happen at 23:59:59 as if they actually happened at 00:00:00 and
they end up in the report for the wrong day.
This change prevents isag from choking on the bug.

9 years agoMerge branch 'usage' of https://github.com/stevekay/sysstat
Sebastien GODARD [Sun, 14 Jun 2015 07:18:21 +0000 (09:18 +0200)]
Merge branch 'usage' of https://github.com/stevekay/sysstat

9 years agoRename DTD file
Sebastien GODARD [Sun, 14 Jun 2015 07:15:40 +0000 (09:15 +0200)]
Rename DTD file

This is version 3.1 of the DTD document, and so the file should be
renamed accordingly.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoRevise sar usage messages to be -F MOUNT rather than -F MOUNTS, in order to match...
Steve Kay [Fri, 12 Jun 2015 21:45:36 +0000 (14:45 -0700)]
Revise sar usage messages to be -F MOUNT rather than -F MOUNTS, in order to match man page and program functionality.

9 years agoStarting sysstat 11.1.6
Sebastien GODARD [Fri, 12 Jun 2015 10:35:54 +0000 (12:35 +0200)]
Starting sysstat 11.1.6

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosysstat-11.1.5 11.1.5 v11.1.5
Sebastien GODARD [Fri, 12 Jun 2015 10:29:07 +0000 (12:29 +0200)]
sysstat-11.1.5

sysstat version 11.1.5 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.0.5) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.1.5
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoNLS: Sync with Translation Project
Sebastien GODARD [Fri, 12 Jun 2015 09:58:53 +0000 (11:58 +0200)]
NLS: Sync with Translation Project

Sync with Translation Project. Various languages updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoReplace non printable characters in comments
Steve Kay [Wed, 10 Jun 2015 21:31:06 +0000 (14:31 -0700)]
Replace non printable characters in comments

Replace non printable characters in comments with a '.' whenever
comments are read from file.

Signed-off-by: Steve Kay <stevekay@gmail.com>
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd comment in ioconf.c
Sebastien GODARD [Fri, 12 Jun 2015 08:53:33 +0000 (10:53 +0200)]
Add comment in ioconf.c

Just to indicate that there is no missing 'break' statement...

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate FAQ
Sebastien GODARD [Fri, 5 Jun 2015 14:01:10 +0000 (16:01 +0200)]
Update FAQ

Mention sysstat_mail_report, a new program based on sysstat which can
send reports with graphs generated from sysstat data.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosa_conv.c: Fix null pointer dereference
Sebastien GODARD [Fri, 5 Jun 2015 13:43:03 +0000 (15:43 +0200)]
sa_conv.c: Fix null pointer dereference

A malformed system activity datafile can lead to a null pointer being
dereferenced in sa_conv.c while trying to upgrade this datafile with
sadf -c.

CID#29707

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agocifsiostat: Fix possible integer overflowed argument
Sebastien GODARD [Fri, 5 Jun 2015 13:15:13 +0000 (15:15 +0200)]
cifsiostat: Fix possible integer overflowed argument

In io_sys_init(): cifs_nr is used as argument to calloc() function
though it may have a negative value (adding NR_CIFS_PREALLOC constant
may make it overflow). So test the value before using it.

CID#29709

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosa_conv.c: Fix untrusted loop bound
Sebastien GODARD [Fri, 22 May 2015 19:26:54 +0000 (21:26 +0200)]
sa_conv.c: Fix untrusted loop bound

Variable file_hdr.sa_act_nr was used to allocate memory and as
a loop boundary in upgrade_header_section() function.
Its value is read from an untrusted source, so check its value before
using it.

CID #29718.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosa_common.c: Fix untrusted values used as arguments
Sebastien GODARD [Fri, 22 May 2015 19:06:09 +0000 (21:06 +0200)]
sa_common.c: Fix untrusted values used as arguments

In check_file_actlst() function: file_magic->header_size and
file_hdr->sa_act_nr values were used as arguments to allocate memory via
SREALLOC although they hadn't been tested before.

The argument could be controlled by an attacker, who could invoke the
function with arbitrary values (for example, a very high or negative
buffer size).

CID #29719.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosadc.c: Fix time-of-check, time-of-use race condition
Sebastien GODARD [Thu, 21 May 2015 19:40:40 +0000 (21:40 +0200)]
sadc.c: Fix time-of-check, time-of-use race condition

In open_ofile() function: the file's existence was checked (using the
access() syscall) before being opened if present. An attacker could
change the filename's file association or other attributes between the
check and use.

CID #29721.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'ciz-master'
Sebastien GODARD [Thu, 21 May 2015 19:27:30 +0000 (21:27 +0200)]
Merge branch 'ciz-master'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoWhen device-mapper isn't running,
Vitezslav Cizek [Wed, 20 May 2015 21:33:37 +0000 (23:33 +0200)]
When device-mapper isn't running,
but there is a device with major number 253,
sysstat halts because it can't open /dev/mapper.

So when device-mapper isn't found in /proc/devices,
assume it's not running at all.

9 years agoUpdate FAQ
Sebastien GODARD [Mon, 11 May 2015 06:31:53 +0000 (08:31 +0200)]
Update FAQ

Update FAQ to take into account the new message displayed by sar when
sar and sadc are not consistent.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoFix untrusted loop bound in sar.c
Sebastien GODARD [Mon, 11 May 2015 06:28:19 +0000 (08:28 +0200)]
Fix untrusted loop bound in sar.c

Variable file_hdr.sa_act_nr was used as a loop boundary in
read_header_data() function. Its value is read from data sent by the
data collector (sadc). Check its value before using it.

Covery defect CID#29715.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoTypos and cosmetic fixes
Sebastien GODARD [Fri, 8 May 2015 14:29:44 +0000 (16:29 +0200)]
Typos and cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'pschiffe-master'
Sebastien GODARD [Tue, 5 May 2015 20:12:08 +0000 (22:12 +0200)]
Merge branch 'pschiffe-master'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUse strncpy instead of strcpy in ioconf.c
Peter Schiffer [Tue, 5 May 2015 13:55:47 +0000 (15:55 +0200)]
Use strncpy instead of strcpy in ioconf.c

9 years agoCheck value of variable "major" read from file
Peter Schiffer [Tue, 5 May 2015 13:33:55 +0000 (15:33 +0200)]
Check value of variable "major" read from file

Variables "major" and "indirect" cannot be bigger than "MAX_BLKDEV" because they
are used as array index in "ioconf" and "ioc_refnr" arrays with size "MAX_BLKDEV
+ 1"

9 years agoFixed and simplified some math expressions in pr_stats.c
Peter Schiffer [Tue, 5 May 2015 13:09:45 +0000 (15:09 +0200)]
Fixed and simplified some math expressions in pr_stats.c

Please double check these changes.

9 years agoUse snprintf() instead of sprintf()1
Sebastien GODARD [Sun, 26 Apr 2015 12:27:22 +0000 (14:27 +0200)]
Use snprintf() instead of sprintf()1

Make sure that we don't use more characters than allocated for filename
string.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoCosmetic fixes
Sebastien GODARD [Sun, 26 Apr 2015 12:18:57 +0000 (14:18 +0200)]
Cosmetic fixes

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate DTD and XSD documents
Sebastien GODARD [Mon, 13 Apr 2015 06:22:55 +0000 (08:22 +0200)]
Update DTD and XSD documents

Update DTD and XSD documents to take into account FC/HBA XML data.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate XML output for FC/HBA statistics
Sebastien GODARD [Mon, 13 Apr 2015 06:06:23 +0000 (08:06 +0200)]
Update XML output for FC/HBA statistics

Include XML output for FC/HBA statistics within <network> section.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate sar manual page
Sebastien GODARD [Sun, 12 Apr 2015 14:32:22 +0000 (16:32 +0200)]
Update sar manual page

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoFC/HBA statistics: Use constants whenever possible
Sebastien GODARD [Sun, 12 Apr 2015 14:18:02 +0000 (16:18 +0200)]
FC/HBA statistics: Use constants whenever possible

Use constants for:
1) Name of /sys files
2) "FC" keyword
3) FC host name length

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate XML output for FC hosts statistics
Sebastien GODARD [Sun, 12 Apr 2015 13:33:51 +0000 (15:33 +0200)]
Update XML output for FC hosts statistics

Rename tags used in XML output for FC hosts to be consistent with names
displayed by sar.
Add tag per="second" in XML output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate functons used to count number of FC hosts
Sebastien GODARD [Sun, 12 Apr 2015 13:15:54 +0000 (15:15 +0200)]
Update functons used to count number of FC hosts

Update/improve functions used to count number of FC hosts:
1) Move code used to count hosts from sa_wrap.c to its normal location
(count.c).
2) Preallocate FC host structures to take into account a possibly
dynamically registerd host. No structures are allocated only if
/sys/class/fc_host directory is not found.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoUpdate FC/HBA statistics display functions
Sebastien GODARD [Sun, 12 Apr 2015 12:43:24 +0000 (14:43 +0200)]
Update FC/HBA statistics display functions

Various fixes in function used to display FC/HBA statistics:
1) Only one function is necessary to display FC/HBA statistics. So
remove print_avg_fchost_stats() function.
2) At the end of the report, display average statistics per host, not a
summary.
3) Update column width used to display statistics (10 characters wide)
to be consistent with other activities display.
4) Move FCHOST column to the right because the host name length may be
greater than 10 characters.
5) Fix timestamp displayed with header line.
6) Remove extra carriage return at the end of display.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'jaunix-fcstats'
Sebastien GODARD [Sun, 12 Apr 2015 09:10:15 +0000 (11:10 +0200)]
Merge branch 'jaunix-fcstats'

9 years agoCosmetic fixes for FC/HBA statistics
Sebastien GODARD [Sun, 12 Apr 2015 09:07:16 +0000 (11:07 +0200)]
Cosmetic fixes for FC/HBA statistics

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'fcstats' of https://github.com/jaunix/sysstat into jaunix-fcstats
Sebastien GODARD [Sun, 12 Apr 2015 07:44:30 +0000 (09:44 +0200)]
Merge branch 'fcstats' of https://github.com/jaunix/sysstat into jaunix-fcstats

9 years agoDocument sar's option --sadc
Sebastien GODARD [Sat, 11 Apr 2015 14:52:05 +0000 (16:52 +0200)]
Document sar's option --sadc

Update sar manual page to document option --sadc.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd option --sadc to sar
Sebastien GODARD [Sat, 11 Apr 2015 14:38:43 +0000 (16:38 +0200)]
Add option --sadc to sar

This option tells the user which data collector will be called by sar.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdded reporting of FC stats in XML format.
Steve Kay [Tue, 7 Apr 2015 21:13:55 +0000 (14:13 -0700)]
Added reporting of FC stats in XML format.

9 years agoAdded handling of "-n FC" argument and FC HBA reading.
Steve Kay [Tue, 7 Apr 2015 21:13:06 +0000 (14:13 -0700)]
Added handling of "-n FC" argument and FC HBA reading.

9 years agoAdded new activity for FC collection.
Steve Kay [Tue, 7 Apr 2015 21:12:05 +0000 (14:12 -0700)]
Added new activity for FC collection.

9 years agoAdded rendering of FC stats.
Steve Kay [Tue, 7 Apr 2015 21:11:16 +0000 (14:11 -0700)]
Added rendering of FC stats.

9 years agoAdd printing+reading of new FC stats.
Steve Kay [Tue, 7 Apr 2015 21:10:15 +0000 (14:10 -0700)]
Add printing+reading of new FC stats.

9 years agoUpdated sar man page to include new "-n FC" option.
Steve Kay [Tue, 7 Apr 2015 21:08:41 +0000 (14:08 -0700)]
Updated sar man page to include new "-n FC" option.

9 years agoFC reporting in JSON format.
Steve Kay [Tue, 7 Apr 2015 21:08:17 +0000 (14:08 -0700)]
FC reporting in JSON format.

9 years agoAdd SYSFS_FCHBA /sys/class/fc_host directory.
Steve Kay [Tue, 7 Apr 2015 21:07:11 +0000 (14:07 -0700)]
Add SYSFS_FCHBA /sys/class/fc_host directory.

9 years agoAdd new activity "fc_act".
Steve Kay [Tue, 7 Apr 2015 21:05:54 +0000 (14:05 -0700)]
Add new activity "fc_act".

9 years agoStarting sysstat 11.1.5
Sebastien GODARD [Tue, 7 Apr 2015 20:20:02 +0000 (22:20 +0200)]
Starting sysstat 11.1.5

Update sysstat version number in configure script.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agosysstat 11.1.4 v11.1.4
Sebastien GODARD [Tue, 7 Apr 2015 20:14:26 +0000 (22:14 +0200)]
sysstat 11.1.4

sysstat version 11.1.4 final packaging.
lsm and spec files updated.
Changelog added.

NOTE: A stable version (11.0.4) also exists and will be available for
download from my web site:

http://pagesperso-orange.fr/sebastien.godard/

The stable version includes only the bug fixes added in sysstat 11.1.4
but not the new features.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoNLS: Sync with Translation Project
Sebastien GODARD [Tue, 7 Apr 2015 19:58:35 +0000 (21:58 +0200)]
NLS: Sync with Translation Project

Sync with Translation Project. Various languages updated.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd squeeze target to Makefile
Sebastien GODARD [Mon, 6 Apr 2015 15:58:25 +0000 (17:58 +0200)]
Add squeeze target to Makefile

Add handy "squeeze" target to Makefile, used to remove unneeded trailing
spaces and tabs in source code.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoDocument YESTERDAY variable in sysstat(5) manual page
Sebastien GODARD [Sat, 4 Apr 2015 13:43:36 +0000 (15:43 +0200)]
Document YESTERDAY variable in sysstat(5) manual page

YESTERDAY variable can now be set in config file
(/etc/sysconfig/sysstat). So document it in sysstat(5) manual page.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'remove_yesterday' of https://github.com/jimis/sysstat
Sebastien GODARD [Sat, 4 Apr 2015 13:35:49 +0000 (15:35 +0200)]
Merge branch 'remove_yesterday' of https://github.com/jimis/sysstat

9 years agoMerge branch 'sargraph2' of https://github.com/jimis/sysstat
Sebastien GODARD [Sat, 4 Apr 2015 13:16:28 +0000 (15:16 +0200)]
Merge branch 'sargraph2' of https://github.com/jimis/sysstat

9 years agoBy default sa2 now generates summary for YESTERDAY
Dimitrios Apostolou [Fri, 18 Apr 2014 01:01:33 +0000 (03:01 +0200)]
By default sa2 now generates summary for YESTERDAY

This can be overriden by setting YESTERDAY=no in the configuration.
The compile time option was removed to make it clear that this is
controlled in one place, which also led to to logic simplification
and code removal.

This change fixes the following issues:

* Previously summary was being generated at 23:53, which caused up to 7
  datapoints lost if sa1 logging was set to 1 or 5 minute intervals.

* To amend the previous problem, some distributions were compiling with
  YESTERDAY set as a compile-time option, but shipped the cron jobs
  as-is. This caused the additional issue that the report of a day was being
  delayed up to 23:53 of the next day.

* Finally there is a subtle race condition that might happen if sadc tries to
  write to the file while sar is reading it to generate the summary, which
  might cause corrupted sar summaries. This does not occur when reading
  yesterday's files, since they are not written any more.

9 years agosadf sometimes prints comment lines before the header.
Dimitrios Apostolou [Fri, 3 Apr 2015 19:57:48 +0000 (21:57 +0200)]
sadf sometimes prints comment lines before the header.

9 years agoMerge branch 'jimis-sargraph2'
Sebastien GODARD [Fri, 3 Apr 2015 09:10:35 +0000 (11:10 +0200)]
Merge branch 'jimis-sargraph2'

Add new sargraph2 tool.

9 years agoMerge branch 'sargraph2' of https://github.com/jimis/sysstat into jimis-sargraph2
Sebastien GODARD [Fri, 3 Apr 2015 08:53:28 +0000 (10:53 +0200)]
Merge branch 'sargraph2' of https://github.com/jimis/sysstat into jimis-sargraph2

9 years agoMerge branch 'yesterday_tweakable' of https://github.com/jimis/sysstat
Sebastien GODARD [Fri, 3 Apr 2015 08:40:11 +0000 (10:40 +0200)]
Merge branch 'yesterday_tweakable' of https://github.com/jimis/sysstat

9 years agoIntroduce sargraph2 - a sadf plotter
Dimitrios Apostolou [Fri, 3 Apr 2015 01:41:16 +0000 (03:41 +0200)]
Introduce sargraph2 - a sadf plotter

Reimplemented most of the functionality of "sargraph" without any XML
transformations. Tweaked the graphs to be more meaningful and more beautiful,
and enabled optional output to file.

9 years agoImproved regex according to code review.
Dimitrios Apostolou [Wed, 1 Apr 2015 22:54:15 +0000 (00:54 +0200)]
Improved regex according to code review.

9 years agoUse ${VARIABLE} expansion to adhere to the coding style.
Dimitrios Apostolou [Wed, 1 Apr 2015 22:46:07 +0000 (00:46 +0200)]
Use ${VARIABLE} expansion to adhere to the coding style.

9 years agoYESTERDAY variable can now be changed in the generic configuration file.
Dimitrios Apostolou [Fri, 18 Apr 2014 00:53:10 +0000 (02:53 +0200)]
YESTERDAY variable can now be changed in the generic configuration file.

For people logging every 1 min, generating the summary at 23:53 is not good
enough: 7 minutes of data points are lost. What is needed is to generate
the summary early in the next day. In order to generate yesterday's
summary without recompiling you can now add the following line in config:
YESTERDAY="--date=yesterday"

9 years agosa2: Use simple regex to detect files, as in sargraph.
Dimitrios Apostolou [Fri, 18 Apr 2014 01:02:58 +0000 (03:02 +0200)]
sa2: Use simple regex to detect files, as in sargraph.

9 years agosargraph: Rename SA_PATH to SA_DIR to be in accordance with sa2, also simplify regex.
Dimitrios Apostolou [Wed, 1 Apr 2015 11:11:50 +0000 (13:11 +0200)]
sargraph: Rename SA_PATH to SA_DIR to be in accordance with sa2, also simplify regex.

9 years agoMake JSON output consistent with XML one
Sebastien GODARD [Mon, 30 Mar 2015 16:42:03 +0000 (18:42 +0200)]
Make JSON output consistent with XML one

Use only header "cpu-load" for both "sar -u" and "sar -u ALL"
statistics (header "cpu-load-all" is removed). This is what is
done in XML output. So do the same here for JSON output.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoAdd shell style configuration for emacs.
Dimitrios Apostolou [Mon, 30 Mar 2015 00:38:15 +0000 (02:38 +0200)]
Add shell style configuration for emacs.

9 years agoAdd --sa-path option to sargraph, and some generic option parsing loop.
Dimitrios Apostolou [Mon, 30 Mar 2015 00:36:40 +0000 (02:36 +0200)]
Add --sa-path option to sargraph, and some generic option parsing loop.

9 years agoDetect all possible sa files.
Dimitrios Apostolou [Sun, 29 Mar 2015 22:51:50 +0000 (00:51 +0200)]
Detect all possible sa files.

9 years agoNo need to customize the paths.
Dimitrios Apostolou [Sun, 29 Mar 2015 22:15:34 +0000 (00:15 +0200)]
No need to customize the paths.

9 years agoStylistic changes.
Dimitrios Apostolou [Sun, 29 Mar 2015 22:09:57 +0000 (00:09 +0200)]
Stylistic changes.

9 years agosargraph now uncompresses gzip compressed sa files if needed.
Dimitrios Apostolou [Sun, 29 Mar 2015 21:57:24 +0000 (23:57 +0200)]
sargraph now uncompresses gzip compressed sa files if needed.

9 years agoXML output modified to enable proper validation
Sebastien GODARD [Sun, 29 Mar 2015 15:27:31 +0000 (17:27 +0200)]
XML output modified to enable proper validation

XML document header modified so that it can be validated against the XSD
document.
Also always use cpu-load header for CPU activity (cpu-load-all has been
removed).

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoDTD and XSD documents updated
Sebastien GODARD [Sun, 29 Mar 2015 15:23:30 +0000 (17:23 +0200)]
DTD and XSD documents updated

DTD and XSD documents updated so that XML data, as displayed by sadf -x,
can now be properly validated against them.
Several typos have also been corrected.
Some missing elements or attributes (for memory activity, filesystem
activity) have been added.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'jaunix-mountpoint-xml'
Sebastien GODARD [Sat, 28 Mar 2015 09:18:48 +0000 (10:18 +0100)]
Merge branch 'jaunix-mountpoint-xml'

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
9 years agoMerge branch 'mountpoint-xml' of https://github.com/jaunix/sysstat into jaunix-mountp...
Sebastien GODARD [Sat, 28 Mar 2015 09:13:27 +0000 (10:13 +0100)]
Merge branch 'mountpoint-xml' of https://github.com/jaunix/sysstat into jaunix-mountpoint-xml