Checkmk not showing up all elasticsearch indices

**CMK version:Checkmk Raw Edition 2.1.0p38

Hello,

I’m facing a problem with the monitoring of our elasticsearch instances. I’m using checkmk for a couple of years but now for the first time to monitor elasticsearch.
I configured the monitoring as described below and it works nice.

However the special elasticsearch agent is not discovering my indices.

For example I created a index with the name myfirstindes.
Also cmk -d hostname is not providing any information for this index

<<<elasticsearch_indices>>>
.internal.alerts 0.0 249.0
metrics 0.0 249.0
.kibana 0.0 249.0

elasticsearch version 8.11.4 is used

Any help is appreciated.

Thanks
Martin Urban

only indices with - characters are discovered.

but can someone explain why only indices with - characters are discovered?

workaround:
customize agent_elasticsearch.py
change line "stats": ("/*-*/_stats/store,docs?ignore_unavailable=true", handle_stats),
to "stats": ("/*/_stats/store,docs?ignore_unavailable=true", handle_stats),

Hi turricansi,

thanks for the reply.
This is solving the problem for me.

Regards
Martin Urban