Werk #16215: agent_elasticsearch: resolve error when requesting indices stats

Component Checks & agents
Title agent_elasticsearch: resolve error when requesting indices stats
Date Nov 6, 2023
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
2.3.0b1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.2.0p14 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0p37 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

There is a special error case which arises when trying to request the indices stats from Elasticsearch which has at least one alias pointing to a closed index. In the previous version, the special agent completely failed in such scenarios. This werk resolves this by requesting only the accessible indices.

To the list of all Werks