I'm having difficulty crafting an alert that will do this:
- Check to ensure a specific application pool is UP (our standard app pool sensor already attempts a restart if the app pool is DOWN)
- Check if a node-specific URL is coming back with the expected result (text search)
- If the Pool is UP, but the URL check fails, restart the application pool
The difficulty I'm having is associating the correct app pool on the correct node with the specific URL check. I have a custom template that checks the node-specific URL (site1.example.com, site2.example.com, site3.example.com) and through the AppInsight sensors, I know if an app pool is up or down. But I can't seem to tie these two together in any way. It's highly likely that I've gone about this entirely the wrong way, so I'm open to suggestions on how to do this efficiently.
Any help is appreciated.