{
    "name"  : "CPU和主板温度是否异常",
    "problems" : {
        "flowError" : {
            "desc"      : "【问题】CPU或主板温度过高。",
            "advice"    : "【建议】请检查风扇和散热口是否被堵住以及环境温度。无法解决的话请联系400处理。"
        }
    }
}
---------------------------code-------------------------------
res = cli("show environment")
print res
resArr = res.match(/\bCPU Temperature:.*\b\d?\d\b/ig)
resArr1 = res.match(/\bMainboard Temperature:.*\b\d?\d\b/ig)
print 'resArr='+resArr
print 'resArr1='+resArr1
if resArr != null :
	tmp = resArr[0]
	tmp = tmp.split(/\s+/)
	print 'tmp='+tmp
	print tmp[2]
	if tmp[2] > 85:
		print 'warn'
		add_problem("flowError")
		return 'warn'
	end
end
if resArr1 != null :
	tmp = resArr1[0]
	tmp = tmp.split(/\s+/)
	print 'tmp='+tmp
	print tmp[2]
	if tmp[2] > 80:
		print 'warn'
		add_problem("flowError")
		return 'warn'
	end
end
print 'success'
return 'success'