Black Friday Black Friday SALE: 40% off every resource until December 1. Shop the sale

Statuspage

Install and set up Statuspage for Paymenter: monitors, incidents, maintenance, alerts, subscribers and settings.

Statuspage | Paymenter

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.

TypeWhat 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 pageOpens 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 portOpens a connection to a host and port, such as a game port, a panel or a node.
PingSends a ping. When the server does not allow ping, it tries ports 443, 80 and 22 instead.
DNS recordLooks 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 certificateChecks 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
OptionWhat it does
Check everyHow often the monitor is checked, from 30 seconds to once a day.
TimeoutHow long a check may take before it fails.
Retries before downFailed 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.
GroupThe group the monitor appears in on the status page. Put groups in order under Statuspage > Groups.
DescriptionShown as a tooltip next to the name.
Show on the status pageTurn off to monitor something only for yourself.
Open an incident when it goes downOpens an incident on its own and resolves it when the monitor is back.
Status shown to visitorsOverrules the measured status, for example to show a known problem before the monitor sees it.
Monitoring activePause a monitor without deleting its history.
Send alerts toThe 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.

ImpactEffect on the status page
NoticeThe page stays green. Use it for information.
MinorThe page shows that some systems are slower than usual.
MajorThe page shows a partial outage.
CriticalThe 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.

ChannelSetup
DiscordA webhook URL from Channel settings > Integrations > Webhooks. Optionally a mention such as @here or <@&role id>, and your own title, description, fields and colors.
SlackAn incoming webhook URL from your Slack app.
WebhookAny URL. It receives a JSON POST with the event, the monitor, the message and the time.
EmailOne 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.

SettingWhat it does
Title, SubtitleThe heading and the line under it on the status page.
Menu label, Show in the main menuThe name of the link in the navigation, or no link at all.
Refresh the page everyHow often an open status page updates itself.
Text at the bottomA short note under the page, for example where to get help.
History bars30, 60 or 90 days, or 12 to 72 hours.
Show uptime percentages, Show response timesThe numbers next to each service and the response chart.
Keep single checks forHow 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 maintenanceWhether and how many appear on the status page.
Let customers subscribeShows the subscribe button.
Also email subscribers about incidents opened by monitoringOff by default, so a short outage does not send an email.
Dashboard, Bar on every pageWhere customers see open incidents outside the status page.
ColorsThe colors for operational, degraded, outage and maintenance.

Feeds and embedding

AddressWhat it returns
/status/feed.xmlAn RSS feed with incidents and maintenance.
/status/summary.jsonThe overall status, every service, open incidents and maintenance as JSON, for your own website.
/status/badge/ID.svgA 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

ProblemSolution
The overview says no checks have runThe Paymenter cron job is not running. Add it as shown under Installation.
/status gives a 404The page appears once there is at least one monitor, incident or maintenance.
A ping monitor is always downSome hosts block ping. Use a TCP port monitor for that server instead.
Subscribers get no emailsCheck the mail settings of Paymenter and that the queue worker runs.
Alerts do not arriveUse 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.