Hi there,
I would like to know if it is at all possible to run a script/program on a remote host when a state of a monitored device/service changes to a warning?
Basically we want to run a simple batch file on a remote client server that restarts certain services when the CPU usage of the specified server has been sitting at 80% or more for 1 minute.
Any ideas? I am quite new to PRTG
Article Comments
Thanks for the reply!
I had that set up initially, the thing is the script would only run on our PRTG Core Server as opposed to the remote host. There is only a scripts folder on the Core server as well.
Jun, 2011 - Permalink
You would of course need to connect to the remote host with the script itself.
Jun, 2011 - Permalink
Would this work when the remote host is on a completely different network/domain? Considering I can't communicate with the remote server (Aside from RDP and Core Monitoring) - I have only seen remote scripts run in a "local" environment
Jun, 2011 - Permalink
Not sure if you figured this out but depending on the script, you may be able to do it with using a PsExec command from the PRTG server. I use that to run commands on our workstations when I need to. You would need to configure the scripts independantly for each workstation though. Here is a link to PsExec:
http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
Apr, 2013 - Permalink
Hello,
this should be possible with a notification on a State Trigger with the condition "Warning". The notification should of course be a script notification, and the PRTG Core Server should be able to connect to this remote host directly (as notifications are executed by the PRTG Core Server).
best regards.
Jun, 2011 - Permalink