mirror of https://github.com/CISOfy/lynis.git
[NETW-3032] small rewrite of test and extended with addrwatch
This commit is contained in:
parent
96b9fc33e4
commit
82b1c63341
|
@ -610,24 +610,28 @@
|
|||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
FOUND=0
|
||||
|
||||
# addrwatch
|
||||
if IsRunning "addrwatch"; then
|
||||
FOUND=1
|
||||
fi
|
||||
|
||||
# arpwatch
|
||||
IsRunning arpwatch
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
if IsRunning "arpwatch"; then
|
||||
FOUND=1
|
||||
ARPWATCH_RUNNING=1
|
||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_RUNNING}" --color GREEN
|
||||
fi
|
||||
|
||||
# arpon
|
||||
IsRunning arpon
|
||||
if [ ${RUNNING} -eq 1 ]; then
|
||||
if IsRunning "arpon"; then
|
||||
FOUND=1
|
||||
ARPON_RUNNING=1
|
||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_RUNNING}" --color GREEN
|
||||
fi
|
||||
if [ ${FOUND} -eq 0 ]; then
|
||||
|
||||
if [ ${FOUND} -eq 1 ]; then
|
||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_RUNNING}" --color GREEN
|
||||
else
|
||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_NOT_FOUND}" --color YELLOW
|
||||
ReportSuggestion ${TEST_NO} "Consider running ARP monitoring software (arpwatch,arpon)"
|
||||
ReportSuggestion "${TEST_NO}" "Consider running ARP monitoring software (addrwatch,arpwatch,arpon)"
|
||||
fi
|
||||
fi
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue