diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2019-12-18 14:17:46 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2019-12-18 14:17:46 +0300 |
commit | 09f29a5e64d4eb0fbbec2a0a503fa173a973b898 (patch) | |
tree | 18631dc8b10382e2eddb633d7fbcd03f3c87dbd1 /include/tests_time | |
parent | 94ba30e765d02ce638e01d731882f8b7086506e2 (diff) |
Code style improvement: quote argument
Diffstat (limited to 'include/tests_time')
-rw-r--r-- | include/tests_time | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/tests_time b/include/tests_time index 4513cb9a..d3bda505 100644 --- a/include/tests_time +++ b/include/tests_time @@ -189,7 +189,7 @@ NTP_CONFIG_TYPE_STARTUP=1 # Only show suggestion when ntpdate is enabled, however ntpd is not running if [ ${NTP_DAEMON_RUNNING} -eq 0 ]; then - ReportSuggestion ${TEST_NO} "Although ntpdate is enabled in rc.conf, it is advised to run it at least daily or use a NTP daemon" + ReportSuggestion "${TEST_NO}" "Although ntpdate is enabled in rc.conf, it is advised to run it at least daily or use a NTP daemon" fi else LogText "Result: ntpdate is not enabled in rc.conf" @@ -202,7 +202,7 @@ else Display --indent 2 --text "- Checking for a running NTP daemon or client" --result "${STATUS_WARNING}" --color RED LogText "Result: Could not find a NTP daemon or client" - ReportSuggestion ${TEST_NO} "Use NTP daemon or NTP client to prevent time issues." + ReportSuggestion "${TEST_NO}" "Use NTP daemon or NTP client to prevent time issues." AddHP 0 2 fi else @@ -241,7 +241,7 @@ LogText "Result: Found one or more association ID's" else Display --indent 2 --text "- Checking valid association ID's" --result "${STATUS_WARNING}" --color RED - ReportSuggestion ${TEST_NO} "Check ntp.conf for properly configured NTP servers and a correctly functioning name service." + ReportSuggestion "${TEST_NO}" "Check ntp.conf for properly configured NTP servers and a correctly functioning name service." fi fi # @@ -276,7 +276,7 @@ else Display --indent 2 --text "- Checking high stratum ntp peers" --result "${STATUS_WARNING}" --color RED LogText "Result: Found ${COUNT} high stratum (16) peers)" - ReportSuggestion ${TEST_NO} "Check ntpq peers output for stratum 16 peers" + ReportSuggestion "${TEST_NO}" "Check ntpq peers output for stratum 16 peers" fi fi fi @@ -302,7 +302,7 @@ LogText "Unreliable peer: ${I}" Report "ntp_unreliable_peer[]=${I}" done - ReportSuggestion ${TEST_NO} "Check ntpq peers output for unreliable ntp peers and correct/replace them" + ReportSuggestion "${TEST_NO}" "Check ntpq peers output for unreliable ntp peers and correct/replace them" fi fi # @@ -324,7 +324,7 @@ Display --indent 2 --text "- Checking selected time source" --result "${STATUS_WARNING}" --color RED LogText "Result: Found local source as selected time source. This could indicate that no external sources are available to sync with." LogText "Local source: ${FIND}" - ReportSuggestion ${TEST_NO} "Check ntpq peers output for selected time source" + ReportSuggestion "${TEST_NO}" "Check ntpq peers output for selected time source" fi fi # @@ -340,7 +340,7 @@ if [ -z "${FIND}" ]; then Display --indent 2 --text "- Checking time source candidates" --result "${STATUS_NONE}" --color YELLOW LogText "Result: No other time source candidates found" - ReportSuggestion ${TEST_NO} "Check ntpq peers output for time source candidates" + ReportSuggestion "${TEST_NO}" "Check ntpq peers output for time source candidates" else Display --indent 2 --text "- Checking time source candidates" --result "${STATUS_OK}" --color GREEN LogText "Result: Found one or more candidates to synchronize time with." @@ -371,7 +371,7 @@ LogText "Falseticker found: ${I}" Report "ntp_falseticker[]=${I}" done - ReportSuggestion ${TEST_NO} "Check ntpq peers output for falsetickers" + ReportSuggestion "${TEST_NO}" "Check ntpq peers output for falsetickers" fi fi # @@ -387,7 +387,7 @@ if [ -z "${FIND}" ]; then Display --indent 2 --text "- Checking NTP version" --result "${STATUS_UNKNOWN}" --color YELLOW LogText "Result: No NTP version found" - ReportSuggestion ${TEST_NO} "Check ntpq output for NTP protocol version" + ReportSuggestion "${TEST_NO}" "Check ntpq output for NTP protocol version" else Display --indent 2 --text "- Checking NTP version" --result "${STATUS_FOUND}" --color GREEN LogText "Result: Found NTP version ${FIND}" @@ -438,7 +438,7 @@ else LogText "Result: ${FILE} is empty. The step-tickers contain no configured NTP servers" Display --indent 2 --text "- Checking NTP step-tickers file" --result "EMPTY FILE" --color YELLOW - ReportSuggestion ${TEST_NO} "Use step-tickers file for quicker time synchronization" + ReportSuggestion "${TEST_NO}" "Use step-tickers file for quicker time synchronization" fi else LogText "Result: ${FILE} is not empty, which is fine" @@ -455,7 +455,7 @@ done if [ ${FOUND} -eq 1 ]; then Display --indent 4 --text "- Checking step-tickers ntp servers entries" --result "SOME MISSING" --color YELLOW - ReportSuggestion ${TEST_NO} "Some time servers missing in step-tickers file" + ReportSuggestion "${TEST_NO}" "Some time servers missing in step-tickers file" AddHP 3 4 else Display --indent 4 --text "- Checking step-tickers ntp servers entries" --result "${STATUS_OK}" --color GREEN |