Added 00logwatch
Added rkhunter.sh
This commit is contained in:
parent
55de5f1fc1
commit
468df74b68
18
00logwatch
Executable file
18
00logwatch
Executable file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
MAILTO="support@comprofix.com"
|
||||||
|
SMTP=mail.comprofix.com
|
||||||
|
THISSERVER=`hostname --fqdn`
|
||||||
|
MAILFROM="support@comprofix.com"
|
||||||
|
|
||||||
|
#Check if removed-but-not-purged
|
||||||
|
test -x /usr/share/logwatch/scripts/logwatch.pl || exit 0
|
||||||
|
|
||||||
|
#execute
|
||||||
|
#/usr/sbin/logwatch --output mail
|
||||||
|
/usr/sbin/logwatch
|
||||||
|
|
||||||
|
sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[$THISSERVER] Logwatch" -m "$(cat /tmp/logwatch)" -q
|
||||||
|
|
||||||
|
#Note: It's possible to force the recipient in above command
|
||||||
|
#Just pass --mailto address@a.com instead of --output mail
|
11
rkhunter.sh
Executable file
11
rkhunter.sh
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
MAILTO="mmckinnon@comprofix.com"
|
||||||
|
SMTP=mail.comprofix.com
|
||||||
|
THISSERVER=`hostname -f`
|
||||||
|
MAILFROM="mmckinnon@comprofix.com"
|
||||||
|
(
|
||||||
|
/usr/bin/rkhunter --versioncheck --nocolors
|
||||||
|
/usr/bin/rkhunter --update --nocolors
|
||||||
|
/usr/bin/rkhunter --cronjob --report-warnings-only --nocolors
|
||||||
|
) | /usr/bin/sendemail -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[rkhunter] Daily Log $THISSERVER" -q
|
||||||
|
|
Loading…
Reference in New Issue
Block a user