{
    "name"  : "流量审计是否占用高CPU",
    "problems" : {
        "flowError" : {
            "desc"      : "【问题】流量审计占用高CPU，可能是硬盘存在坏道或碎片过多引起。",
            "advice"    : "【建议】请联系400协助处理。"
        }
    }
}
---------------------------code-------------------------------
i = 0
resArr = 0
res = cli("show cpu | in flow_audit")
print res
resArr = res.match(/\d+\s+\S+\s+\S+\s+\S+\s+/g)
print resArr
if resArr == null :
    return 'skip'
end
while i <resArr.length :
    resAr = resArr[i]
	resA = resAr.split(/\s+/g)
	sec = resA[1]
	min = resA[3]
	print sec
	print min
	sec = sec.split(/%/)
	sec = sec[0]
	min = min.split(/%/)
	min = min[0]
	if sec > 30 || min > 10 :
		print 'warn'
		add_problem("flowError")
		return 'warn'
	end
	i = i+1
end
print 'success'
return 'success'