diff --git a/include/tests_ssh b/include/tests_ssh index 82a5d388..02e4a386 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -135,6 +135,17 @@ else RESULT="UNKNOWN" fi + + elif [ "${TESTTYPE}" = "<" ]; then + if [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" ]; then + RESULT="WEAK" + elif [ "${FOUNDVALUE}" -ge "${MEDIUMSCOREDVALUE}" -o "${FOUNDVALUE}" -le "${MEDIUMSCOREDVALUE}" ]; then + RESULT="MIDSCORED" + elif [ "${FOUNDVALUE}" -le "${EXPECTEDVALUE}" ]; then + RESULT="GOOD" + else + RESULT="UNKNOWN" + fi else RESULT="NONE" fi