Hey guys,
I’ve been on Google and this forum for days now, and I think I am really far already, but I still have some questions regarding my setup.
I am using this tutorial: https://www.tompec.com/blog/automatically-reboot-server-when-its-down
I already succesfully installed the script on a seperate Droplet.
The questions I have:
Which URL do I insert in Uptime Robot to notify? I assume the URL of the droplet which has the script installed right? For example: https://api.digitalocean.com/v2/droplets/DIGITAL_OCEAN_DROPLET_ID/?
Which ID’s do I use in “config/servers.php”? // UptimeRobot monitor’s name => DigitalOcean server ID ‘Your-server-name’ => 12345678,
Your-Server-Name = Friendly Name of the UptimeRobot Monitor or the Friendly Name Uptime Robot Alert Contact?
DigitalOcean server ID = The Droplet ID of the droplet with the script running or the ID of the droplet which is actually down?
Hopefully you can point me in the right direction! :)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey Bobby,
Thanks for your follow up!
Do you maybe have suggestions for my last questions as well?
“DigitalOcean server ID = The Droplet ID of the droplet with the script running or the ID of the droplet which is actually down?”
Hello,
This seems like a nice script, I’ve not used it myself but I’ll definitely give it a try.
Regarding your questions:
This needs to be the IP address or the hostname of the separate Droplet that you’ve created to run the script on
I believe that this needs to be the friendly name of the monitor as this is one of the parameters that the webhook is going to pass over.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.