Morning,
I have an issue with one of my Ubuntu servers, PRTG triggers an alert when the service I am monitoring fails, I am curious if when that happens can PRTG trigger a command to restart the server? And potentially even then email me it has restarted the server?
Cheers.
Article Comments
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Dear daven1985,
PRTG has no build-in function to restart that server. We develop PRTG so that one cannot easily perform actions on the computer as this can be a security risk. But you could do this:
- Add a notification which runs a program
- That program is always executed on the core server, but you can use a placeholder in order to provide the hostname of the device to that program
- That program could use SSH to perform a reboot.
For the email, you can try to send the email in that script as well, or send it with the same notification. Though in the latter case, the email will always be sent if the restart was successful or not.
Jun, 2018 - Permalink
Dear daven1985,
PRTG has no build-in function to restart that server. We develop PRTG so that one cannot easily perform actions on the computer as this can be a security risk. But you could do this:
For the email, you can try to send the email in that script as well, or send it with the same notification. Though in the latter case, the email will always be sent if the restart was successful or not.
Jun, 2018 - Permalink