We have a remote site that has an APC battery backup that we monitor via SNMP. Also, we have a standalone ESXi host that only has a few layers on it as they are a small remote office. Lately we have been having quite a few power issues at the site and we are able to see this via PRTG and respond accordingly which is awesome however, I'd like to take this process and automate shutting down the server.
I would like setup a simple SSH script that will connect to the server and issue the command "poweroff" when the APC runtime sensor falls below 10%. This will assist us with automatically and gracefully shutting down the server and it's layers.
What is the best approach to implementing this task within PRTG?
Thank you, Ryan