I have an Application Monitor with 2 Windows Service Components applied to a Windows Server. I am building out an alert that will restart Service 1 only when Service 2 is running.
What is the best approach to setup the alert trigger condition?
If you need it to require service 2 up while service 1 is down, you can try enabling complex conditions to build out both conditions separately (e.g. condition1: service 1=down | condition2: service2=up). Try that out and see if you're able to simulate a test. Then for the trigger action you will likely need to hard code service #1 component ID into the restart a service command, unless you write a dynamic swql variable.
Thank you. We are setting up a complex condition and testing.