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