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>2016-06-18 12:14:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2016-06-18 12:14:01 +0300
commit983e293eb157131ca5e085e4927ea5fc220edc73 (patch)
treecc5e8bea4af5cfa53f57a73d2c61357f47165857 /include/tests_snmp
parent9c093f7a97fb0b9593a303ef7394c3bc5dea99b2 (diff)
Replaced text strings to allow translations
Diffstat (limited to 'include/tests_snmp')
-rw-r--r--include/tests_snmp12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/tests_snmp b/include/tests_snmp
index f1931c9e..96588ec9 100644
--- a/include/tests_snmp
+++ b/include/tests_snmp
@@ -40,10 +40,10 @@
if [ ${RUNNING} -eq 1 ]; then
SNMP_DAEMON_RUNNING=1
LogText "Result: SNMP daemon is running"
- Display --indent 2 --text "- Checking running SNMP daemon" --result FOUND --color GREEN
+ Display --indent 2 --text "- Checking running SNMP daemon" --result "${STATUS_FOUND}" --color GREEN
else
LogText "Result: No running SNMP daemon found"
- Display --indent 2 --text "- Checking running SNMP daemon" --result "NOT FOUND" --color WHITE
+ Display --indent 2 --text "- Checking running SNMP daemon" --result "${STATUS_NOT_FOUND}" --color WHITE
fi
fi
#
@@ -63,10 +63,10 @@
done
if [ "${SNMPD_DAEMON_CONFIG}" = "" ]; then
LogText "Result: No snmpd configuration found"
- Display --indent 4 --text "- Checking SNMP configuration" --result "NOT FOUND" --color WHITE
+ Display --indent 4 --text "- Checking SNMP configuration" --result "${STATUS_NOT_FOUND}" --color WHITE
else
LogText "Restult: using last found configuration file: ${SNMPD_DAEMON_CONFIG}"
- Display --indent 4 --text "- Checking SNMP configuration" --result "FOUND" --color GREEN
+ Display --indent 4 --text "- Checking SNMP configuration" --result "${STATUS_FOUND}" --color GREEN
fi
fi
#
@@ -91,10 +91,10 @@
# Check status of test
if [ ${WARN} -eq 0 ]; then
- Display --indent 2 --text "- Checking SNMP community strings" --result OK --color GREEN
+ Display --indent 2 --text "- Checking SNMP community strings" --result "${STATUS_OK}" --color GREEN
AddHP 2 2
else
- Display --indent 2 --text "- Checking SNMP community strings" --result WARNING --color RED
+ Display --indent 2 --text "- Checking SNMP community strings" --result "${STATUS_WARNING}" --color RED
ReportWarning ${TEST_NO} "M" "Found easy guessable SNMP community string"
fi
fi