def METHOD_NAME(client):
    errors = client.get_critical_log_messages()
    if len(errors) != 0:
        message = "\n".join(
            ["MxRuntime CRITICAL: %d critical error(s) were " "logged" % len(errors)]
            + errors
        )
        return (STATE_CRITICAL, message)
    return (STATE_OK, "No critical log messages")