serverscripts/rkhunter.sh

18 lines
484 B
Bash
Raw Normal View History

#!/bin/bash
# Script Name: rkhunter
# Author: Matt McKinnon
# Date: 7th June 2016
# Description:
# This script will email a logwatch report
MAILTO="support@comprofix.com"
2015-11-22 22:43:43 +10:00
SMTP=mail.comprofix.com
THISSERVER=$(hostname -f)
MAILFROM="support@comprofix.com"
2016-11-03 21:55:55 +10:00
SENDEMAIL=$(which sendemail)
2015-11-22 22:43:43 +10:00
(
2016-11-03 21:55:55 +10:00
rkhunter --versioncheck --nocolors
rkhunter --update --nocolors
rkhunter --cronjob --rwo
) | $SENDEMAIL -o tls=no -s $SMTP -t $MAILTO -f "$THISSERVER <$MAILTO>" -u "[rkhunter] Log $THISSERVER" -q