Werk #23117 · Dec 2, 26
Cisco Meraki: API response codes without requests
If an organisation made no Meraki API requests in the time window the
special agent asks about, the Meraki API returned no data for it. The
special agent then left out the API response codes of that
organisation, so the service
API <organisation name>/<organisation ID> went UNKNOWN because its
item was missing. If no organisation had made any requests, the whole
section was missing instead: the Check_MK service of the Meraki host
went WARN with "Missing monitoring data for plugins,
cisco_meraki_org_api_response_codes" and the API services became
stale.
This happened regularly when the special agent itself was the only API client and its check interval was longer than the two-minute window, for example five minutes.
The special agent now reports such an organisation without requests. The API service shows the API status of the organisation, and the counts of the response classes 2xx to 5xx are reported as 0. A failed request is still reported as missing data.
This werk also fixes the following:
- Response classes without requests now report 0 instead of no value, so their graphs no longer have gaps.
- The time window of the request was formatted with the minutes in place of the seconds. It could be skewed by up to a minute and end in the future.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p24Not yet releasedAll Editions