Code Monkey home page Code Monkey logo

meraki-health-check's People

Contributors

obrigg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

meraki-health-check's Issues

Error during executed

Traceback (most recent call last):
File "async_run.py", line 1386, in
loop.run_until_complete(main())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "async_run.py", line 1339, in main
check_wireless_ports(networks)
File "async_run.py", line 745, in check_wireless_ports
if ap["serial"] in results[network_name]["channel_utilization_check"].keys():
KeyError: 'N/A'

Error Running python3 async_run.py

Ran the following:

python3 async_run.py

Kindly select the organization ID you would like to query: 0
/Users/xxxx/meraki-health-check/async_run.py:1384: DeprecationWarning: There is no current event loop
loop = asyncio.get_event_loop()
Meraki AIO API Error (OrgID "XXXXXX", OrgName "XXXX"):
organizations, getOrganizationAdmins - None None, Reached retry limit: None
Traceback (most recent call last):
File "/Users/xxxx/meraki-health-check/async_run.py", line 1385, in
loop.run_until_complete(main())
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/Users/xxxx/meraki-health-check/async_run.py", line 1241, in main
await async_check_org_admins(aiomeraki)
File "/Users/xxxx/meraki-health-check/async_run.py", line 646, in async_check_org_admins
for admin in org_admins:
UnboundLocalError: local variable 'org_admins' referenced before assignment

meraki-health-check-master\async_run.py", line 1386

Fetching ethernet ports, received 0 ethernet ports so far..
Traceback (most recent call last):
File "C:\meraki-health-check-master\async_run.py", line 1386, in
loop.run_until_complete(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.1520.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\meraki-health-check-master\async_run.py", line 1339, in main
check_wireless_ports(networks)
File "C:\meraki-health-check-master\async_run.py", line 745, in check_wireless_ports
if ap["serial"] in results[network_name]["channel_utilization_check"].keys():
~~~~~~~^^^^^^^^^^^^^^
KeyError: 'N/A'

Error Running python3 async_run-Error decoding

I have two orgs, When running on 1st organization script completes without issues. When running on 2nd organization (much larger device count)
I get the following output with logging turned on:2023-08-17 20:22:54 meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.36.0', 'api_key': '************************************498e', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'network_delete_retry_wait_time': 180, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': 'Healthcheck/22.12 OBrigg', 'use_iterator_for_get_pages': False}
2023-08-17 20:22:54 meraki: DEBUG > {'tags': ['organizations', 'configure'], 'operation': 'getOrganizations', 'method': 'GET', 'url': '/organizations', 'params': None}
2023-08-17 20:22:54 meraki: INFO > GET https://api.meraki.com/api/v1/organizations
2023-08-17 20:22:55 meraki: INFO > organizations, getOrganizations - 200 OK
2023-08-17 20:22:58 meraki: DEBUG > {'tags': ['organizations', 'configure', 'networks'], 'operation': 'getOrganizationNetworks', 'page': 1}
2023-08-17 20:22:58 meraki: INFO > GET https://api.meraki.com/api/v1/organizations/613052499275809599/networks
2023-08-17 20:22:58 meraki: INFO > organizations, getOrganizationNetworks; page 1 - 200 OK
meraki_api__log__2023-08-17_20-22-54.log

API Rate Limiting

Is it possible to throttle requests so that it doesnt hit the rate limit by the Meraki API? Keep getting 429 errors when running.

Line 745 - Key Error N/A

Hi,

Just reporting similar issues to below:

line 745, in check_wireless_ports
if ap["serial"] in results[network_name]["channel_utilization_check"].keys():
KeyError: 'N/A'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.