black
Member
The script - https://raw.githubusercontent.com/blackdotsh/UptimeFlare/master/renameMe.php
License: MIT<br>
Dependencies: Web Server, PHP, php-curl lib
Setup:
1. I suggest you rename the php file to something obscure.
2. Add / change the global vars section. It consists of credentials and other information that needs to be modified to your needs.
3. Upload this script to the desired server, make sure the script is accessible via the internet.
4. On uptimeRobot:
Create a new alert contact and select web hook. For url, put in the url to the php script and add "?key=YourKeySetInThePHPScript&".
If my $key was set to HelloWorld and I renamed my script to monitorUP.php which is accessible via 127.0.0.1, then for the url I would put <br>
http://127.0.0.1/monitorUP.php?key=HelloWorld& Make sure you have the & at the end.
5. Add this alert type to your websites. It's recommended that you have more than the PHP hook as an alert type, so you can switch it back to the primary server once it's up. With this setup, a website shouldn't have a downtime of more than ~6 minutes, assuming your DNS provider does not cache queries.
License: MIT<br>
Dependencies: Web Server, PHP, php-curl lib
Setup:
1. I suggest you rename the php file to something obscure.
2. Add / change the global vars section. It consists of credentials and other information that needs to be modified to your needs.
3. Upload this script to the desired server, make sure the script is accessible via the internet.
4. On uptimeRobot:
Create a new alert contact and select web hook. For url, put in the url to the php script and add "?key=YourKeySetInThePHPScript&".
If my $key was set to HelloWorld and I renamed my script to monitorUP.php which is accessible via 127.0.0.1, then for the url I would put <br>
http://127.0.0.1/monitorUP.php?key=HelloWorld& Make sure you have the & at the end.
5. Add this alert type to your websites. It's recommended that you have more than the PHP hook as an alert type, so you can switch it back to the primary server once it's up. With this setup, a website shouldn't have a downtime of more than ~6 minutes, assuming your DNS provider does not cache queries.