A simple webhook for Uptime Robot users to update their Cachet statuspage
Run composer update --no-dev
to pull the needed dependencies using Composer.
Rename the config.example.php
to config.php
and set the values accordingly.
The config contains comments that explain which values you have to enter.
server {
server_name status-hook.yourdomain;
listen 80;
try_files $uri $uri/ /index.php;
location ~ \.php {
include fastcgi_params;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
}
}
(you are welcome to provide an example config)
You must basically rewrite all requests to index.php
On the Uptimerobot side, you just have to add an alert contact like so:
Then add the alert contact to all monitors you configured earlier