mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-21 21:04:46 +02:00
Remote syslog server not detected for syslog-ng
This commit is contained in:
parent
3e94c4a8f0
commit
199483bd1e
@ -343,7 +343,7 @@
|
|||||||
fi
|
fi
|
||||||
if [ -f ${SYSLOGD_CONF} ]; then
|
if [ -f ${SYSLOGD_CONF} ]; then
|
||||||
logtext "Test: check if logs are also logged to a remote logging host"
|
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
|
if [ ! "${FIND}" = "" ]; then
|
||||||
logtext "Result: remote logging enabled"
|
logtext "Result: remote logging enabled"
|
||||||
AddHP 5 5
|
AddHP 5 5
|
||||||
|
Loading…
x
Reference in New Issue
Block a user