From 0bae0a393bd528d6e198e8a1f09ca97f0c7fd6b9 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Fri, 19 Feb 2010 15:37:49 +0000 Subject: Save periodic check results according to check type. --- cron-sh/security.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cron-sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index cd2fd29..54c1943 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -41,8 +41,8 @@ CURRENT_CHECK_TYPE=$(current_check_type) # variables LCK=/var/run/msec-security.pid SECURITY_LOG="/var/log/security.log" -MAIL_LOG_TODAY="/var/log/security/mail.today" -MAIL_LOG_YESTERDAY="/var/log/security/mail.yesterday" +MAIL_LOG_TODAY="/var/log/security/mail.${CURRENT_CHECK_TYPE}.today" +MAIL_LOG_YESTERDAY="/var/log/security/mail.${CURRENT_CHECK_TYPE}.yesterday" # log formatting REPORT_DATE=`date "+%b %d %H:%M:%S"` -- cgit v1.2.1