예제 #1
0
        def svc_map(row):
            css_classes, status_name = paint_service_state_short(row)
            draw_status = properties.get("status_border", "not_ok")
            if draw_status == "not_ok" and css_classes.endswith("state0"):
                draw_status = False

            return {
                "style": css_classes,
                "msg": _("Status: ") + status_name,
                "draw": draw_status
            }
예제 #2
0
 def svc_map(row):
     css_classes, status_name = paint_service_state_short(row)
     return {"style": css_classes, "msg": _("Status: ") + status_name}