Wanted to monitor elasticsearch and opensearch through check_mk

Yes - I tried doing that but did not work