Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-07-14 09:28:49 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-07-14 09:28:49 +0300
commit82b1c63341620741bc940996d9dd5bf8847dca5a (patch)
treed688aeacabb06bb6e83adcf85425e763d84175a6 /include/tests_networking
parent96b9fc33e49a42efd2f25e1bccb880e51c67c143 (diff)
[NETW-3032] small rewrite of test and extended with addrwatch
Diffstat (limited to 'include/tests_networking')
-rw-r--r--include/tests_networking20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/tests_networking b/include/tests_networking
index b43970ce..8c895c4e 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -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
#