{
    "name"  : "带机数检查",
    "problems" : {
        "flowAudit" : {
            "desc"      : "【问题】内网用户数超过设备支持的带机数",
            "advice"    : "【建议】内网用户数超过设备支持的带机数，可能导致部分用户上网异常。更换更高端型号设备。优化风险：联系400进一步确认。"
        }
    }
}
---------------------------code-------------------------------
#res = cli("show flow-audit ipapp-tbl")
#resArr = res.split(/\r?\n/)
#if resArr.length > 2 :
    #add_problem("flowAudit")
    #return "warn"
#end
cli("show flow-audit ipapp-tbl")
res = cli("show log")
resSearch = res.search(/in ip-app free-cnt: 0/)
if resSearch != -1 :
    add_problem("flowAudit")
    return "warn"
end
return "success"