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
    # Resource to get usage data for [cpu|memory|disk|sessions|lograte].
    url = 'https://{}/api/v2/monitor/system/resource/usage?resource=cpu&interval=1-min&access_token={}'.format(args.HOSTNAME, urllib.parse.quote(args.PASSWORD))
    result = lib.base.coe(lib.url.fetch_json(url, insecure=args.INSECURE, no_proxy=args.NO_PROXY, timeout=args.TIMEOUT))
    stats = {}
    stats['cpu_usage'] = result['results']['cpu'][0]['current']
    # create the db table
    definition = '''
                cpu_usage REAL NOT NULL
        '''
    conn = lib.base.coe(lib.db_sqlite.connect(filename='linuxfabrik-monitoring-plugins-fortios-cpu-usage.db'))
    lib.base.coe(lib.db_sqlite.create_table(conn, definition))
    # save trend data to local sqlite database, limited to "count" rows max.
    lib.base.coe(lib.db_sqlite.insert(conn, stats))
    lib.base.coe(lib.db_sqlite.cut(conn, _max=args.COUNT))
    lib.base.coe(lib.db_sqlite.commit(conn))
    # try to get the global configured cpu warning threshold from Forti OS
    # if success, use it, otherwise our from args.WARN etc.
    url = 'https://{}/api/v2/cmdb/system/global?access_token={}'.format(args.HOSTNAME, urllib.parse.quote(args.PASSWORD))
    thresholds = lib.base.coe(lib.url.fetch_json(url, insecure=args.INSECURE, no_proxy=args.NO_PROXY, timeout=args.TIMEOUT))
    warn = thresholds['results'].get('cpu-use-threshold', args.WARN)
    # now, calculate the WARN or CRIT.
    # overall state is not ok, if ...
    #   in a row in any column there is a value above the threshold
    #   and this is true for every row
    state = STATE_OK
    if get_from_db(conn, args.CRIT) == args.COUNT:
        state = STATE_CRIT
    elif get_from_db(conn, warn) == args.COUNT:
        state = STATE_WARN
    lib.db_sqlite.close(conn)
    # build the message
    msg = '{}%'.format(stats['cpu_usage'])
    perfdata = lib.base.get_perfdata('cpu-usage', stats['cpu_usage'], '%', warn, args.CRIT, 0, 100)
    # over and out
    lib.base.oao(msg, state, perfdata, always_ok=args.ALWAYS_OK)