{
    "name"  : "高端设备rlog发送速率检查",
    "problems" : {
        "rlog" : {
            "desc"      : "【问题】RLOG发送速率较少可能丢失日志。",
            "advice"    : "【建议】建议把rlog的发送速率设置为5000，配置命令为：rlog export-rate 5000。"
        }
    }
}
---------------------------code-------------------------------
mode = get_device_model()

if mode.indexOf("eg2000x") != -1 || mode.indexOf("eg2000xe") != -1 || mode.indexOf("eg2000ue") != -1 :
    res = cli("show rlog")
    resArr = res.match(/rlog export-rate (.+) rlog/)
    rlog = resArr[1]
    if rlog < 5000 :
        add_problem("rlog")
        return "warn"
    end
end

return "skip"