From d8c7abe367ab0ed3b698ca6d71ff17f1d102f083 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Wed, 9 Sep 2009 00:03:00 +0000 Subject: create check summary report --- cron-sh/security.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cron-sh/security.sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index fa50054..09f9286 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -78,8 +78,10 @@ if [[ -s ${SECURITY} ]]; then Ttylog ${SECURITY} echo "$SECURITY_PREFIX *** Security Check, ${REPORT_DATE} ***" >> ${SECURITY_LOG} - cat ${SECURITY} | sed -e "s/^/$SECURITY_PREFIX/g" >> ${SECURITY_LOG} + printf "Report summary:\n" >> ${SECURITY_LOG} cat ${INFOS} | sed -e "s/^/$INFO_PREFIX/g" >> ${SECURITY_LOG} + printf "\nDetailed report:\n" >> ${SECURITY_LOG} + cat ${SECURITY} | sed -e "s/^/$SECURITY_PREFIX/g" >> ${SECURITY_LOG} Maillog "[msec] *** Security Check on ${REPORT_HOSTNAME}, ${REPORT_DATE} ***" "${SECURITY} ${INFOS}" Notifylog "MSEC has performed Security Check on ${REPORT_HOSTNAME} on ${REPORT_DATE}" -- cgit v1.2.1