CMK version: 2.0.0p33.cre
OS version: Debian Buster
When trying to monitor newer versions of OpenSearch with the ElasticSearch plugin, parsing crashes with a KeyError when it encounters discovered_master. This additional new key needs to be accounted for in lib/python3/cmk/gui/plugins/wato/check_parameters/elasticsearch_cluster_health.py and share/check_mk/checks/elasticsearch_cluster_health
While changes are being made, it appears that this key is being superseded with discovered_cluster_manager, so it should be added as well.
Something like
2.0.0p33.cre/share/check_mk/checks/elasticsearch_cluster_health
27d26
< 'discovered_master': 'Node Manager Discovered',
85,86d83
< yield 0, "%s: %s" % (infotext, value)
< elif info == "discovered_master":
2.0.0p33.cre/lib/python3/cmk/gui/plugins/wato/check_parameters/elasticsearch_cluster_health.py
54c54
< optional_keys=["number_of_nodes", "number_of_data_nodes", "green", "yellow", "red", "discovered_master"],
---
> optional_keys=["number_of_nodes", "number_of_data_nodes", "green", "yellow", "red"],