Remote syslog server not detected for syslog-ng

This commit is contained in:
Alexander Lobodzinski 2015-12-04 15:43:20 +01:00
parent 3e94c4a8f0
commit 199483bd1e
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