Meraki Cloud Monitoring

I see, did a little debugging my self. There are at least four errors/issues in the special agent.

  1. the key for the org id is not organizationId but id
OMD[cmk22]:~$ /omd/sites/cmk22/share/check_mk/agents/special/agent_cisco_meraki dummy <removed-api-key>

File "/omd/sites/cmk22/local/lib/python3/cmk/special_agents/agent_cisco_meraki.py", line 128, in <listcomp>
  organisation[_API_NAME_ORGANISATION_ID]
  ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^

_API_NAME_ORGANISATION_ID comes from line 32

32 _API_NAME_ORGANISATION_ID: Final = "organizationId" 

this sould be

32 _API_NAME_ORGANISATION_ID: Final = "id" 

with this change we get at least te licenses_overview section

/omd/sites/cmk22/share/check_mk/agents/special/agent_cisco_meraki dummy <removed-api-key> --sections licenses-overview 

<<<cisco_meraki_org_licenses_overview:sep(0)>>>
[
 {"expirationDate": "N/A", "licensedDeviceCounts": {}, "status": "N/A"}, 
 {"expirationDate": "N/A", "licensedDeviceCounts": {}, "status": "N/A"}
]
  1. the key ‘organizationId’ this is expected by the cisco_meraki_org_licenses_overview.py parse function but missing in the above section.

  2. if there are no section to fetch is configured in the agent rule, the agent does nothing. I think by default the agent should fetch all sections.

  3. the item for the services should not be the org id but the org name in my opinion

image