ACCT-9626: Check sysstat from /etc/rc.d/rc.sysstat

This commit is contained in:
pyllyukko 2025-08-01 16:53:44 +03:00
parent 6aa622710f
commit 79136a9169
No known key found for this signature in database
GPG key ID: 6D64E828379852AC

View file

@ -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