def METHOD_NAME(status, message):
    """Prints a message and exits. First arg is the status code
    Second Arg is the string message"""
    if CHECK_NAME in (None, ""):
        check_name = ""
    else:
        check_name = str(CHECK_NAME).strip() + " "
    if status == OK:
        print("%sOK: %s" % (check_name, message))
        sys.exit(OK)
    elif status == WARNING:
        print("%sWARNING: %s" % (check_name, message))
        sys.exit(WARNING)
    elif status == CRITICAL:
        print("%sCRITICAL: %s" % (check_name, message))
        sys.exit(CRITICAL)
    else:
        # This one is intentionally different
        print("UNKNOWN: %s" % message)
        sys.exit(UNKNOWN)