From aa1b5ee4bb9770be4080412bb9ffe6453f3b2584 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Thu, 18 Aug 2022 15:48:42 +0200 Subject: [PATCH] Add REPEAT_HEADER variable to sysstat configuration file (#332) This variable will make it easier to tell sa2 script to insert header lines in the reports. Signed-off-by: Sebastien GODARD --- sa2.in | 2 +- sysstat.sysconfig.in | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sa2.in b/sa2.in index b89b37f..d676ee4 100644 --- a/sa2.in +++ b/sa2.in @@ -61,7 +61,7 @@ fi cd ${ENDIR} if [ x${REPORTS} != xfalse ] then - ${ENDIR}/sar $* -f ${DFILE} > ${RPT} + S_REPEAT_HEADER=${REPEAT_HEADER} ${ENDIR}/sar $* -f ${DFILE} > ${RPT} fi SAFILES_REGEX='/sar?[0-9]{2,8}(\.(Z|gz|bz2|xz|lz|lzo))?$' diff --git a/sysstat.sysconfig.in b/sysstat.sysconfig.in index aec7656..f3116d4 100644 --- a/sysstat.sysconfig.in +++ b/sysstat.sysconfig.in @@ -39,3 +39,8 @@ DELAY_RANGE=@DELAY_RANGE@ # the permissions on the files (e.g. use 0027 to adhere to more strict # security standards). UMASK=0022 + +# The sa2 script uses the value below to set environment variable S_REPEAT_HEADER +# which is used by sar as the maximum number of lines after which a header has to +# be displayed (see sar(1) manual page). +#REPEAT_HEADER=25 -- 2.40.0