{
    "name"  : "检测当前内存状态",
    "problems" : {
        "memoryAbnormal" : {
            "desc"      : "【问题】检测到task  ${0}占用内存高，可能有异常",
            "advice"    : "【建议】建议重启进程"
        }
    }
}

---------------------------code-------------------------------
response = cli('show memory')
if response.search('Invalid input | Unknown command.') != -1 :
    return 'skip'    
end
memoryProcessArr = formatMemoryInfo(response)
i = 0
abnormalProcess = ''
while i < 5 :
    data = memoryProcessArr[i]
    process = data.process
    if abnormalProcess == '' :
        abnormalProcess = abnormalProcess + process
    else :
        abnormalProcess = abnormalProcess + '、' + process
    end
    i = i + 1
end
add_problem('memoryAbnormal', [abnormalProcess])
return 'warn'