serverscripts/rkhunter.sh

12 lines
392 B
Bash
Raw Normal View History

2015-11-22 22:43:43 +10:00
#!/bin/sh
MAILTO="support@comprofix.com"
2015-11-22 22:43:43 +10:00
SMTP=mail.comprofix.com
THISSERVER=`hostname -f`
MAILFROM="support@comprofix.com"
2015-11-22 22:43:43 +10:00
(
/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
2015-11-22 22:43:43 +10:00