How to healthcheck redis behind stunnel?

I managed to get it working with external check, calling a bash file. But I can’t manage it to do with chroot together.
I opened another thread for this: External-check with chroot not working

Thanks, Andreas