aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/diff_check.sh
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-03-24 13:33:37 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-03-24 13:33:37 +0000
commit688311671c249f91014d0ab92d5d0b0e5809fd81 (patch)
tree9b032d5394e22a223d94af9c00b07df12293cd88 /cron-sh/diff_check.sh
parent7b71134a81372251f060c3b71c201c1d17bdf74f (diff)
downloadmsec-688311671c249f91014d0ab92d5d0b0e5809fd81.tar
msec-688311671c249f91014d0ab92d5d0b0e5809fd81.tar.gz
msec-688311671c249f91014d0ab92d5d0b0e5809fd81.tar.bz2
msec-688311671c249f91014d0ab92d5d0b0e5809fd81.tar.xz
msec-688311671c249f91014d0ab92d5d0b0e5809fd81.zip
Added support for desktop notifications.
Diffstat (limited to 'cron-sh/diff_check.sh')
-rwxr-xr-xcron-sh/diff_check.sh3
1 files changed, 3 insertions, 0 deletions
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}