There are a million ways to do this, but you’ll have to create the solution yourself. I posted a shell script at the bottom of this thread that can do it: How to automatically check if the Wowza service is up and running and streaming?
There is also this module you could adapt to your needs: https://www.wowza.com/docs/how-to-use-imediastreamactionnotify2-to-monitor-live-streams-modulestreamwatchdog