From 688311671c249f91014d0ab92d5d0b0e5809fd81 Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Tue, 24 Mar 2009 13:33:37 +0000 Subject: Added support for desktop notifications. --- cron-sh/diff_check.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cron-sh/diff_check.sh') diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh index d3a142c..772edb3 100755 --- a/cron-sh/diff_check.sh +++ b/cron-sh/diff_check.sh @@ -208,9 +208,12 @@ if [[ -s ${TMP} ]]; then echo -e "\n\n*** Diff Check, ${date} ***\n" >> ${SECURITY_LOG} cat ${TMP} >> ${SECURITY_LOG} + + Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}\nChanges in system security were detected and are available in ${SECURITY_LOG}." fi Maillog "[msec] *** Diff Check on ${hostname}, ${date} ***" "${TMP}" +Notifylog "MSEC has performed Diff Check on ${hostname} on ${date}\nNo changes were detected in system security." if [[ -f ${TMP} ]]; then rm -f ${TMP} -- cgit v1.2.1