mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
ACCT-9626: Check sysstat from /etc/rc.d/rc.sysstat
This commit is contained in:
parent
6aa622710f
commit
79136a9169
1 changed files with 5 additions and 1 deletions
|
|
@ -136,8 +136,12 @@
|
|||
LogText "Result: sysstat disabled via systemd"
|
||||
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_DISABLED}" --color WHITE
|
||||
fi
|
||||
# Slackware
|
||||
elif [ -f "${ROOTDIR}etc/rc.d/rc.sysstat" -a -x "${ROOTDIR}etc/rc.d/rc.sysstat" ]; then
|
||||
LogText "Result: sysstat enabled via /etc/rc.d/rc.sysstat"
|
||||
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_ENABLED}" --color GREEN
|
||||
else
|
||||
LogText "Result: sysstat not found via ${ROOTDIR}etc/default/sysstat or ${ROOTDIR}etc/cron.d/sysstat or as a systemd unit"
|
||||
LogText "Result: sysstat not found via ${ROOTDIR}etc/default/sysstat or ${ROOTDIR}etc/cron.d/sysstat or ${ROOTDIR}etc/rc.d/rc.sysstat or as a systemd unit"
|
||||
Display --indent 2 --text "- Checking sysstat accounting data" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
||||
ReportSuggestion "${TEST_NO}" "Enable sysstat to collect accounting (no results)"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue