Merge pull request #104 from alobodzinski/syslog-ng

Detect remote system logging for syslog-ng
This commit is contained in:
Michael Boelen 2015-12-04 16:06:24 +01:00
commit f8940e20b2
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@
fi
if [ -f ${SYSLOGD_CONF} ]; then
logtext "Test: check if logs are also logged to a remote logging host"
FIND=`egrep "@[a-zA-Z0-9]" ${SYSLOGD_CONF} | grep -v "^#" | grep -v "[a-zA-Z0-9]@"`
FIND=`egrep "@[a-zA-Z0-9]|destination\s.+(udp|tcp).+\sport" ${SYSLOGD_CONF} | grep -v "^#" | grep -v "[a-zA-Z0-9]@"`
if [ ! "${FIND}" = "" ]; then
logtext "Result: remote logging enabled"
AddHP 5 5