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
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FOUND=0
|
FOUND=0
|
||||||
|
|
||||||
|
# addrwatch
|
||||||
|
if IsRunning "addrwatch"; then
|
||||||
|
FOUND=1
|
||||||
|
fi
|
||||||
|
|
||||||
# arpwatch
|
# arpwatch
|
||||||
IsRunning arpwatch
|
if IsRunning "arpwatch"; then
|
||||||
if [ ${RUNNING} -eq 1 ]; then
|
|
||||||
FOUND=1
|
FOUND=1
|
||||||
ARPWATCH_RUNNING=1
|
ARPWATCH_RUNNING=1
|
||||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_RUNNING}" --color GREEN
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# arpon
|
# arpon
|
||||||
IsRunning arpon
|
if IsRunning "arpon"; then
|
||||||
if [ ${RUNNING} -eq 1 ]; then
|
|
||||||
FOUND=1
|
FOUND=1
|
||||||
ARPON_RUNNING=1
|
ARPON_RUNNING=1
|
||||||
Display --indent 2 --text "- Checking for ARP monitoring software" --result "${STATUS_RUNNING}" --color GREEN
|
|
||||||
fi
|
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
|
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
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue