diff options
Diffstat (limited to 'include/tests_snmp')
-rw-r--r-- | include/tests_snmp | 12 |
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 |