def METHOD_NAME():
    """The main function. Hier spielt die Musik.
    """
    # parse the command line, exit with UNKNOWN if it fails
    try:
        args = parse_args()
    except SystemExit:
        sys.exit(STATE_UNKNOWN)
    # fetch data
    if args.TEST is None:
        result = lib.base.coe(lib.url.fetch_json(
            args.URL + '/info/info.json', timeout=args.TIMEOUT
        ))
    else:
        # do not call the command, put in test data
        stdout, stderr, retc = lib.test.test(args.TEST)
        try:
            result = json.loads(stdout)
        except:
            lib.base.cu('ValueError: No JSON object could be decoded')
    # init some vars
    msg = ''
    state = STATE_OK
    perfdata = ''
    # get thresholds automatically
    max_conn = result['licenseInfo']['connections']
    max_conn_warn = max_conn * 0.9
    max_conn_crit = max_conn * 0.95
    # build the message and perfdata
    msg += 'Max {} {}, '.format(max_conn, lib.txt.pluralize('connection', max_conn))
    # license; expired?
    now = lib.time.now(as_type='iso')
    msg += 'licensed' if result['licenseInfo']['hasLicense'] else 'no license'
    if result['licenseInfo']['endDate']:
        if result['licenseInfo']['endDate'][0:10] <= now[0:10]:
            msg += ' (expired) [WARNING]'
            state = lib.base.get_worst(STATE_WARN, state)
        expires_in = lib.time.timestrdiff(result['licenseInfo']['endDate'][0:10], now[0:10], pattern1='%Y-%m-%d', pattern2='%Y-%m-%d')
        if expires_in <= 10 * 24 * 60 * 60:
            msg += ' (expires in {}) [WARNING]'.format(lib.human.seconds2human(expires_in))
            state = lib.base.get_worst(STATE_WARN, state)
    msg += ', '
    view_state = lib.base.get_state(result['connectionsStat']['hour']['view']['max'], max_conn_warn, max_conn_crit, _operator='ge')
    state = lib.base.get_worst(view_state, state)
    msg += 'last hour: {}/{}/{} views{} '.format(
        result['connectionsStat']['hour']['view']['min'],
        result['connectionsStat']['hour']['view']['avr'],
        result['connectionsStat']['hour']['view']['max'],
        lib.base.state2str(view_state, prefix=' ')
    )
    perfdata += lib.base.get_perfdata('conn_hour_view_min', result['connectionsStat']['hour']['view']['min'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    perfdata += lib.base.get_perfdata('conn_hour_view_avr', result['connectionsStat']['hour']['view']['avr'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    perfdata += lib.base.get_perfdata('conn_hour_view_max', result['connectionsStat']['hour']['view']['max'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    edit_state = lib.base.get_state(result['connectionsStat']['hour']['edit']['max'], max_conn_warn, max_conn_crit, _operator='ge')
    state = lib.base.get_worst(edit_state, state)
    msg += 'and {}/{}/{} edits{} (min/avr/max), '.format(
        result['connectionsStat']['hour']['edit']['min'],
        result['connectionsStat']['hour']['edit']['avr'],
        result['connectionsStat']['hour']['edit']['max'],
        lib.base.state2str(edit_state, prefix=' ')
    )
    perfdata += lib.base.get_perfdata('conn_hour_edit_min', result['connectionsStat']['hour']['edit']['min'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    perfdata += lib.base.get_perfdata('conn_hour_edit_avr', result['connectionsStat']['hour']['edit']['avr'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    perfdata += lib.base.get_perfdata('conn_hour_edit_max', result['connectionsStat']['hour']['edit']['max'], None, max_conn_warn, max_conn_crit, 0, result['licenseInfo']['connections'])
    if 'usersInfo' in result:
        msg += '{} unique {}, '.format(result['usersInfo']['uniqueUserCount'], lib.txt.pluralize('user', result['usersInfo']['uniqueUserCount']))
        perfdata += lib.base.get_perfdata('unique_users', result['usersInfo']['uniqueUserCount'], None, None, None, 0, None)
    msg += 'v{}, '.format(result['serverInfo']['buildVersion'])
    # over and out
    lib.base.oao(msg[:-2], state, perfdata)