Bug 1102603

Summary: RFE - Setting compress method in /etc/sysconfig/sysstat file
Product: Red Hat Enterprise Linux 6 Reporter: Branislav Náter <bnater>
Component: sysstatAssignee: Peter Schiffer <pschiffe>
Status: CLOSED ERRATA QA Contact: Branislav Náter <bnater>
Severity: low Docs Contact:
Priority: medium    
Version: 6.6CC: salmy
Target Milestone: rcKeywords: FutureFeature, Patch, Upstream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: sysstat-9.0.4-26.el6 Doc Type: Enhancement
Doc Text:
Feature: enable setting of data file compression method in the /etc/sysconfig/sysstat configuration file via ZIP variable Reason: easier configuration of data file compression method Result (if any):
Story Points: ---
Clone Of:
: 1102610 (view as bug list) Environment:
Last Closed: 2014-10-14 06:40:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sysstat-9.0.4-zip-conf.patch none

Description Branislav Náter 2014-05-29 09:39:50 UTC
Description of problem:
I've realized during testing bz#1088998 that it would be nice to be able to set compress method in /etc/sysconfig/sysstat file. Currently it is possible to set it only in /usr/lib/sa/sa2 file using ZIP variable.

# grep ZIP /usr/lib64/sa/sa2
ZIP="bzip2"

Diff representing proposed enhancement:
----------------------------------------------------------------------------
--- /etc/sysconfig/sysstat	2014-02-28 23:59:01.533128486 -0500
+++ sysstat.new	2014-03-01 17:18:53.730971381 -0500
@@ -5,9 +5,12 @@
 # multiple directories, one for each month.
 HISTORY=10
 
-# Compress (using gzip or bzip2) sa and sar files older than (in days):
+# Compress (using gzip, bzip2 or xz) sa and sar files older than (in days):
 COMPRESSAFTER=31
 
+# Compression method (gzip, bzip2 or xz)
+ZIP="bzip2"
+
 # Parameters for the system activity data collector (see sadc manual page)
 # which are used for the generation of log files.
 SADC_OPTIONS="-S DISK"
-----------------------------------------------------------------------------

Comment 1 Peter Schiffer 2014-06-19 12:50:06 UTC
Created attachment 910384 [details]
sysstat-9.0.4-zip-conf.patch

Comment 3 Branislav Náter 2014-06-19 14:29:46 UTC
easy to test, qa_ack for rhel-6.6

Comment 6 errata-xmlrpc 2014-10-14 06:40:55 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1468.html