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:
Diffstat (limited to 'include/tests_time')
-rw-r--r--include/tests_time20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/tests_time b/include/tests_time
index 6282afef..3d3ff3af 100644
--- a/include/tests_time
+++ b/include/tests_time
@@ -47,7 +47,7 @@
Register --test-no TIME-3104 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check for running NTP daemon or client"
if [ ${SKIPTEST} -eq 0 ]; then
# Linux/FreeBSD (ntpdate), OpenBSD (ntpd, rdate)
- logtext "Test: Searching for a running NTP daemon or available client... "
+ logtext "Test: Searching for a running NTP daemon or available client"
FOUND=0
# Check running processes
@@ -140,10 +140,10 @@
done
if [ ${FOUND_IN_CRON} -eq 1 ]; then
- Display --indent 2 --text "- Checking NTP client in cron files..." --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking NTP client in cron files" --result FOUND --color GREEN
logtext "Result: found ntpdate or rdate in cron directory"
else
- Display --indent 2 --text "- Checking NTP client in cron.d files..." --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking NTP client in cron.d files" --result "NOT FOUND" --color WHITE
logtext "Result: no ntpdate or rdate found in cron directories"
fi
@@ -154,7 +154,7 @@
logtext "Result: found ntpdate action when network interface comes up"
FOUND=1
NTP_CONFIG_TYPE_EVENTBASED=1
- Display --indent 2 --text "- Checking event based ntpdate (if-up)..." --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking event based ntpdate (if-up)" --result FOUND --color GREEN
else
logtext "Result: file /etc/network/if-up.d/ntpdate does not exist"
fi
@@ -297,11 +297,11 @@
logtext "Test: Checking preferred time source"
FIND=`${NTPQBINARY} -p -n | grep '^+' | awk '{ print $1 }'`
if [ "${FIND}" = "" ]; then
- Display --indent 2 --text "- Checking time source candidates..." --result NONE --color YELLOW
+ Display --indent 2 --text "- Checking time source candidates" --result NONE --color YELLOW
logtext "Result: No other time source candidates found"
ReportSuggestion ${TEST_NO} "Check ntpq peers output for time source candidates"
else
- Display --indent 2 --text "- Checking time source candidates..." --result OK --color GREEN
+ Display --indent 2 --text "- Checking time source candidates" --result OK --color GREEN
logtext "Result: Found one or more candidates to synchronize time with."
for I in ${FIND}; do
I=`echo ${I} | sed 's/+//g'`
@@ -320,10 +320,10 @@
logtext "Test: Checking preferred time source"
FIND=`${NTPQBINARY} -p -n | grep '^x'`
if [ "${FIND}" = "" ]; then
- Display --indent 2 --text "- Checking falsetickers..." --result OK --color GREEN
+ Display --indent 2 --text "- Checking falsetickers" --result OK --color GREEN
logtext "Result: No falsetickers found (items preceeding with an 'x')"
else
- Display --indent 2 --text "- Checking falsetickers..." --result NONE --color YELLOW
+ Display --indent 2 --text "- Checking falsetickers" --result NONE --color YELLOW
logtext "Result: Found one or more falsetickers (items preceeding with an 'x')"
for I in ${FIND}; do
I=`echo ${I} | sed 's/x//g'`
@@ -345,11 +345,11 @@
logtext "Test: Checking NTP protocol version (ntpq -c ntpversion)"
FIND=`${NTPQBINARY} -c ntpversion | awk '{ if ($1=="NTP" && $2=="version" && $5=="is") { print $6 } }'`
if [ "${FIND}" = "" ]; then
- Display --indent 2 --text "- Checking NTP version..." --result UNKNOWN --color YELLOW
+ Display --indent 2 --text "- Checking NTP version" --result UNKNOWN --color YELLOW
logtext "Result: No NTP version found"
ReportSuggestion ${TEST_NO} "Check ntpq output for NTP protocol version"
else
- Display --indent 2 --text "- Checking NTP version..." --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking NTP version" --result FOUND --color GREEN
logtext "Result: Found NTP version ${FIND}"
report "ntp_version=${FIND}"
fi