I wrote a small script so I can monitor the HPB (turn) backend. Because if it fails, it breaks Nextcloud talk. Posted here in case anyone else wants to easily monitor his turns server.
The cron job runs it once a minute. Each run generates REST credentials from the static auth secret, calls turnutils_uclient to allocate on the TURN server, and then sends a push event to Uptime Kuma containing either TURN allocate succeeded or the last error line from turnutils_uclient. So Kuma sees “up” whenever the allocate completes successfully and “down” when it fails.