What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags

View all Tags

Shutting down ESXi from an SSH script via a sensor



Hi Team,

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

apc esxi ssh

Created on Nov 9, 2015 9:45:15 PM

1 Reply



Dear Ryan

That is complicated, but possible. You could setup a threshold trigger and run a notification which is configured to start in program which then starts a script using SSH.

Created on Nov 10, 2015 4:36:03 PM by  Arne Seifert [Paessler Support]

Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.