]> granicus.if.org Git - sysstat/commitdiff
Add REPEAT_HEADER variable to sysstat configuration file (#332)
authorSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 18 Aug 2022 13:48:42 +0000 (15:48 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Thu, 18 Aug 2022 13:48:42 +0000 (15:48 +0200)
This variable will make it easier to tell sa2 script to insert header
lines in the reports.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
sa2.in
sysstat.sysconfig.in

diff --git a/sa2.in b/sa2.in
index b89b37f95ad3c08ea2cc05a4ae6ea62508061381..d676ee492686f124921b7cb8b616700ef2a0ef2b 100644 (file)
--- 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))?$'
index aec76569fd9f3d04fe7bba87d329fb8cbb5e1534..f3116d411e7596da2d403bfea1db3c445626c54b 100644 (file)
@@ -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