{
    "name"  : "严重警告log检查",
    "problems" : {
        "seriousWarn" : {
            "desc"      : "【问题】本环境LOG中存在严重告警LOG",
            "advice"    : "【建议】设备出现过严重告警，需要排查。建议查看告警信息，根据log内容进行修改"
        }
    }
}
---------------------------code-------------------------------
res = cli("show logging")
if res.indexOf("-0-") != -1 || res.indexOf("-1-") != -1 || res.indexOf("-2-") != -1 :
    add_problem("seriousWarn")
    return "warn"
end

return "success"