Requirements
- Paymenter 1.5 or newer.
- The Paymenter cron job, which runs the monitor checks every minute. Every Paymenter installation needs it already.
- The Paymenter queue worker for subscriber emails, which Paymenter also needs for its own emails.
Installation
Step 1: Upload the extension
Go to Admin > Extensions > Extensions, click Upload Extension and choose the zip. Or extract the zip and upload the Statuspage folder to the other extensions of Paymenter:
/var/www/paymenter/extensions/Others/Statuspage/
Make sure the web server user owns the files:
chown -R www-data:www-data /var/www/paymenter/extensions/Others/Statuspage
Step 2: Install and enable
Open Admin > Extensions > Extensions, install Statuspage under the available extensions and turn on Enabled. The database tables are created on their own.
A Statuspage group appears in the admin menu. Your status page goes live at https://your-domain/status as soon as you add your first monitor.
Step 3: Check the cron job
Monitors are checked by the Paymenter scheduler. If the overview says that no checks have run yet, make sure this cron job exists for the web server user:
* * * * * php /var/www/paymenter/artisan schedule:run >> /dev/null 2>&1
You can also run the checks by hand to test a monitor:
php artisan statuspage:check --all
Updating
Upload the new zip under Admin > Extensions, or replace the Statuspage folder. Updating from 2.x keeps your monitors, incidents, maintenance, alert channels and settings. The uptime history is converted to daily totals, existing incidents get a timeline and HTTP monitors keep the status code you set. This happens on its own the first time a page loads after the update.
Monitors
Add monitors under Statuspage > Monitors. Each monitor has a type, a group and a few timing options.
| Type | What it checks |
|---|---|
| Website (HTTP) | Opens a URL with GET, HEAD or POST. The monitor is up when the status code matches the accepted codes, for example 200-299, 2xx or 200,301. You can turn off redirects and the SSL check. |
| Keyword on a page | Opens a URL and looks for a piece of text. Choose whether the text must be on the page or must not be on it. |
| TCP port | Opens a connection to a host and port, such as a game port, a panel or a node. |
| Ping | Sends a ping. When the server does not allow ping, it tries ports 443, 80 and 22 instead. |
| DNS record | Looks up an A, AAAA, CNAME, MX, TXT or NS record. Fill in an expected value to check that the record points to the right place. |
| SSL certificate | Checks that the certificate matches the domain and has not expired. It shows as degraded when it expires within the number of days you choose. |
| Heartbeat (push) | Waits for a call from your own script. After saving, the monitor shows a heartbeat URL. The monitor goes down when no call arrives within the interval plus half of it. |
Call the heartbeat URL at the end of a backup or cron script, for example:
curl -fsS https://your-domain/status/heartbeat/YOUR-TOKEN
| Option | What it does |
|---|---|
| Check every | How often the monitor is checked, from 30 seconds to once a day. |
| Timeout | How long a check may take before it fails. |
| Retries before down | Failed checks in a row before the monitor counts as down. A single failure shows as degraded in the history, so one blip does not open an incident. |
| Slow above (ms) | Shows the monitor as degraded when it answers slower than this. |
| Group | The group the monitor appears in on the status page. Put groups in order under Statuspage > Groups. |
| Description | Shown as a tooltip next to the name. |
| Show on the status page | Turn off to monitor something only for yourself. |
| Open an incident when it goes down | Opens an incident on its own and resolves it when the monitor is back. |
| Status shown to visitors | Overrules the measured status, for example to show a known problem before the monitor sees it. |
| Monitoring active | Pause a monitor without deleting its history. |
| Send alerts to | The alert channels that get a message for this monitor. |
Use Check now on a monitor or Check all now on the overview to test right away. Embed badge gives an SVG badge with the status or uptime of a monitor.
Incidents
Report an incident under Statuspage > Incidents. Pick the affected services, the impact and write the first update. Turn on Email subscribers to send it to everyone who subscribed.
| Impact | Effect on the status page |
|---|---|
| Notice | The page stays green. Use it for information. |
| Minor | The page shows that some systems are slower than usual. |
| Major | The page shows a partial outage. |
| Critical | The page shows a major outage. |
Open an incident and click Post update to add the next step to the timeline: investigating, identified, monitoring or resolved. The status of the incident follows the latest update. Incidents opened by monitoring are resolved on their own when the monitor is back, with the time it was down.
Maintenance
Plan maintenance under Statuspage > Maintenance with a start time, an end time and the affected services. With Start and finish automatically on, the maintenance switches to in progress at the start time and to completed at the end time, and subscribers get an email at both moments.
During maintenance the affected services show as under maintenance. They do not open incidents, do not send alerts and the time does not count against their uptime.
Alerts
Add alert channels under Statuspage > Alerts and link them to monitors. Choose per channel which events it gets: a monitor goes down, recovers, or is slow or has a certificate that expires soon. Use Send test to check a channel.
| Channel | Setup |
|---|---|
| Discord | A webhook URL from Channel settings > Integrations > Webhooks. Optionally a mention such as @here or <@&role id>, and your own title, description, fields and colors. |
| Slack | An incoming webhook URL from your Slack app. |
| Webhook | Any URL. It receives a JSON POST with the event, the monitor, the message and the time. |
| One or more addresses, separated by commas. |
Placeholders for Discord messages: {monitor}, {status}, {statusEmoji}, {category}, {url}, {host}, {port}, {error}, {response}, {uptime}, {checked_at}, {type} and {page}.
Customers
Logged in customers can click Get updates by email on the status page. They get an email for every incident or maintenance update that you send to subscribers, with an unsubscribe link. See and remove subscribers under Statuspage > Subscribers.
Open incidents and maintenance that starts within three days also appear on the client dashboard. Optionally a bar appears at the top of every page during a major or critical incident.
Settings
Open Statuspage > Settings.
| Setting | What it does |
|---|---|
| Title, Subtitle | The heading and the line under it on the status page. |
| Menu label, Show in the main menu | The name of the link in the navigation, or no link at all. |
| Refresh the page every | How often an open status page updates itself. |
| Text at the bottom | A short note under the page, for example where to get help. |
| History bars | 30, 60 or 90 days, or 12 to 72 hours. |
| Show uptime percentages, Show response times | The numbers next to each service and the response chart. |
| Keep single checks for | How long single checks are kept for the response chart. Every failed or slow check is kept, and a check that is up is kept once every five minutes. Hourly totals are kept for 14 days and daily totals for a year, so the database stays small. |
| Past incidents, Planned maintenance | Whether and how many appear on the status page. |
| Let customers subscribe | Shows the subscribe button. |
| Also email subscribers about incidents opened by monitoring | Off by default, so a short outage does not send an email. |
| Dashboard, Bar on every page | Where customers see open incidents outside the status page. |
| Colors | The colors for operational, degraded, outage and maintenance. |
Feeds and embedding
| Address | What it returns |
|---|---|
/status/feed.xml | An RSS feed with incidents and maintenance. |
/status/summary.json | The overall status, every service, open incidents and maintenance as JSON, for your own website. |
/status/badge/ID.svg | A badge with the status of a service. Add ?show=uptime for the 30 day uptime. |
Permissions
Give staff access under Admin > Roles. There are view and manage permissions for monitors, incidents, maintenance and alerts, plus permissions for subscribers and for the settings.
Themes
Statuspage uses the colors, corners, fonts and light or dark mode of your Paymenter theme. It is tested with the default theme, Citadel, Industrial and Luna, on desktop and on phones.
Troubleshooting
| Problem | Solution |
|---|---|
| The overview says no checks have run | The Paymenter cron job is not running. Add it as shown under Installation. |
| /status gives a 404 | The page appears once there is at least one monitor, incident or maintenance. |
| A ping monitor is always down | Some hosts block ping. Use a TCP port monitor for that server instead. |
| Subscribers get no emails | Check the mail settings of Paymenter and that the queue worker runs. |
| Alerts do not arrive | Use Send test on the alert channel. The error is shown when the webhook or address does not work. |
Need help?
Open a ticket on builtbyotte.com/help and we will get back to you.