{
    "name"  : "检查密码是否配置错误",
    "problems" : {
        "errorPassword" : {
            "desc"      : "【问题】用户名或者密码配置错误",
            "advice"    : "【建议】请检查用户名和密码的配置（注意大小写）" 
        }
    }
}

---------------------------code------------------------------- 
response = cli('show logging')
reg = /\%\sInvalid\sinput/
if reg.test(response) == true :
    add_reason('版本过低，show logging命令不识别')
    return 'skip'
end
reg = /[\r\n]+\*[a-zA-Z\d\s\:]{15}\:\s\%PPP\-4\-(PAP|CHAP)\_AUTHENTICATION\_FAILED\:\s.+?username\sor\spassword\sincorrect/g
result = response.match(reg)
if result != null :
    lastIndex = result.length - 1
    lastInfo = result[lastIndex]
    lastInfo = lastInfo.replace(/[\r\n]+\*/, '')
    lastInfoTime = lastInfo.replace(/\:\s\%PPP\-4\-(PAP|CHAP)\_AUTHENTICATION\_FAILED\:\s.+?username\sor\spassword\sincorrect/, '')
    isInTwoMinute = isBetweenFixedTime(lastInfoTime, 30)
    if isInTwoMinute == true :
        add_problem('errorPassword')
        return 'warn'    
    end
end

return 'success'