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)
    # authenticate and get the authSid
    url = '{}/cgi-bin/authLogin.cgi'.format(args.URL)
    data = {
        'user': args.USERNAME,
        'pwd': lib.txt.to_text(base64.b64encode(lib.txt.to_bytes(args.PASSWORD))),
    }
    result = lib.base.coe(lib.url.fetch(url, data=data, insecure=args.INSECURE, no_proxy=args.NO_PROXY, timeout=args.TIMEOUT))
    data = xmltodict.parse(result)['QDocRoot']
    auth_passed = data['authPassed']
    if auth_passed is not None and len(auth_passed) == 1 and auth_passed == "0":
        lib.base.cu('Failed to authenticate.')
    authSid = data['authSid']
    # get the values
    url = '{}/cgi-bin/disk/qsmart.cgi?func=all_hd_data&sid={}'.format(args.URL, authSid)
    result = lib.base.coe(lib.url.fetch(url, data=data, insecure=args.INSECURE, no_proxy=args.NO_PROXY, timeout=args.TIMEOUT))
    data = xmltodict.parse(result)['QDocRoot']
    disk_count = 0
    state = STATE_OK
    msg_body = ''
    perfdata = ''
    for disk in data["Disk_Info"]["entry"]:
        if disk['Serial']: # skip empty entries
            disk_count += 1
            disk_state = STATE_OK
            if disk['Health'] != 'OK':
                disk_state = STATE_WARN
            temperature = disk['Temperature'].get('oC', None)
            if temperature:
                perfdata += lib.base.get_perfdata('{}_{}_{}_{}'.format(
                    disk.get('Disk_Alias', 'Unknown Alias').replace(' ', '_'),
                    disk['Model'].replace(' ', '_'),
                    disk['Serial'].replace(' ', '_'),
                    'temperature'), temperature, None, None, None, 0, None)
            state = lib.base.get_worst(disk_state, state)
            msg_body += '* {}{} ({}, SerNo {}, Temp {}°C)\n'.format(
                lib.base.state2str(disk_state, prefix='', suffix=' '),
                disk.get('Disk_Alias', 'Unknown Alias'),
                disk['Model'],
                disk['Serial'],
                temperature,
            )
    # build the message
    if disk_count:
        msg_header = 'Checked {} {}.'.format(disk_count, lib.txt.pluralize('disk', disk_count))
        if state == STATE_CRIT:
            msg_header += ' There are critical errors.'
        elif state == STATE_WARN:
            msg_header += ' There are warnings.'
        else:
            msg_header += ' All are healthy.'
        lib.base.oao('{}\n{}'.format(msg_header, msg_body), state, perfdata, always_ok=args.ALWAYS_OK)
    else:
        lib.base.oao('Did not find any disk.', STATE_UNKNOWN, always_ok=args.ALWAYS_OK)