Wanted to monitor elasticsearch and opensearch through check_mk

You mean you tiried the following ?
image