{
    "name"  : "CPU和主板温度是否异常",
    "problems" : {
        "cpu_board" : {
            "desc"      : "【问题】CPU或主板温度过高",
            "advice"    : "【建议】请检查风扇和散热口是否被堵住以及环境温度。无法解决的话请联系400处理" 
        }
    }
}

---------------------------code-------------------------------

res = cli("show environment")
reg = /CPU Temperature.+ (\d+\.\d+|\d)/i
tmp = res.match(reg)
if tmp[1] > 75 :
	add_problem('cpu_board')
    return 'warn'
end

reg = /Mainboard Temperature.+ (\d+\.\d+|\d)/i
tmp = res.match(reg)
if tmp[1] > 75 :
	add_problem('cpu_board')
    return 'warn'
end

return 'success'