Good Day. I like the idea of using this complied program (wmic) to pull windows services to validate the health of a pool member. I have followed the instructions to a T and am able to call the script from the command line and pull the service status properly. However, when I create the monitor and apply it to a pool member, the script will not run, and what I mean is the 'basename0.IP_PORT.PID' is not create and therefore will not run. It's like the IP=$1 and PORT=$2 will not populate from the pool member to create the process.
Now if I hard code the IP and Port in the script and then call it from the monitor the script will work and create a pid and pull the server. I also use Route domains and not sure if that is causing an issue.
Any help on this would be awesome!!