1. Overview
| Area | What you get |
|---|---|
| Monitor types | Website (HTTP/S), Keyword, TCP port, Heartbeat (cron job) |
| Check intervals | Every 1, 2, 5, 10, 15 or 30 minutes, hourly, every 6 hours, daily |
| Metrics | Uptime %, average / median / p95 / p99 response time, Apdex, MTTR, MTBF, longest outage, success rate, trend vs previous period |
| Charts | Response time with min–max band and availability strip, request timing breakdown, weekday × hour heatmap, uptime ranking against the SLA target, 90-day uptime bars, sparklines |
| Ranges | 24 hours, 7 days, 30 days, 90 days (charts), plus any custom period in Reports |
| Incidents | Confirmed outages and slow periods, acknowledge, notes, CSV export |
| Alerts | Email (HTML), Slack, Discord, Microsoft Teams, Telegram, signed webhook; down, recovered, slow, SSL expiry, reminders |
| SSL | Certificate expiry and issuer tracking, warnings at your chosen days and again at 7, 3, 1 and 0 days |
| Reports | SLA report with downtime budgets, scheduled daily / weekly / monthly emails, CSV, print / PDF |
| Public | Status page block and shortcode, one-click status page, JSON feed, SVG badges |
| Admin | Dashboard widget, toolbar indicator, mobile-friendly screens, accessible charts |
| Developer | REST API, WP-CLI, actions and filters |
How it is built:
- No external services, CDNs or tracking. Checks go straight from your server to the targets you add.
- No build step and no Composer dependencies. Charts are hand-written SVG in a small script.
- Uses only the JavaScript that ships with WordPress (
wp-api-fetch,wp-i18n, and the block editor packages for the block). - Every string is translatable (text domain
sysgage-uptime-monitor). - Five custom tables with indexes sized for long histories.
2. Admin screens
The plugin adds an Uptime menu. The menu badge shows how many outages are open.
| Screen | What it does |
|---|---|
| Overview | Six stat tiles (uptime, average response, p95, incidents, MTTR, Apdex) with a range switch, the combined response time chart, a current status breakdown with the scheduler's health, every monitor with 30-day bars, sparkline and SSL state, the latest incidents and the SSL certificate list. A "Check all now" button runs every monitor. Statuses refresh every 60 seconds without reloading. |
| Monitors | Filter by status (All, Up, Down, Slow, Paused), group and type, and search by name, URL or group. Shows 24 h, 7 day and 30 day uptime, a response sparkline and SSL days left. Row actions: check now, pause / resume, edit, move up / down. Drag rows to reorder (the order is used everywhere, including the status page). Bulk pause, resume, check and delete. |
| Add / edit monitor | Visual type picker, then Basics, Thresholds, Advanced request options and Alerts & status page. "Test without saving" runs the check and shows status, timing and IP. New monitors are checked as soon as they are saved. Leaving with unsaved changes asks first. |
| Monitor details | Status, target, type and interval. Check now, Pause, Edit, Duplicate and Delete. 90-day uptime bars, range-based tiles, the response chart (with slow threshold), "Where the time goes", the heatmap, results and failure reasons, details (last HTTP status, request, keyword, SSL certificate, badge code), recent incidents and a paged check log with a failures filter and CSV download. Heartbeat monitors show their ping URL with crontab examples and ping-specific tiles instead of response charts. |
| Incidents | Tiles for open incidents, outages in 30 days, MTTR and longest outage. Filter by monitor, open / resolved, type, and search. Acknowledge, add notes and delete. An Alert log tab lists every notification with channel, event and delivery result. |
| Reports | Period presets (last 7, 30, 90 days, this month, last month, custom dates). Tiles, an uptime-by-monitor chart against the SLA target, and an SLA breakdown with a downtime budget meter, outages, MTTR, average and p95 per monitor. Export CSV, print / save as PDF, or email the summary now. |
| Maintenance | Schedule one-time or weekly windows for selected monitors. Shows each window's state (active, scheduled, finished) and next start. |
| Settings | Four tabs: General, Alerts, Status page, Data & tools. |
3. Monitor types
Website (HTTP/S)
| Option | Details |
|---|---|
| URL | Any http:// or https:// address, including local and private hosts. |
| Method | GET, HEAD, POST, PUT, OPTIONS. |
| Accepted status codes | Ranges and lists, e.g. 200-299, 301. Default 200-399. |
| Request headers | One Name: value per line. |
| Request body | Sent with POST and PUT. |
| Basic authentication | Username and password. The password is encrypted at rest (AES-256-CBC with a key derived from the site's salts) and is never exported. |
| Follow redirects | Up to five. |
| Verify SSL certificate | Turn off for self-signed certificates. |
| Watch SSL expiry | Reads the certificate's expiry date and issuer every 12 hours. Warn N days before (1–90). |
| Slow threshold | Responses slower than this are marked "Slow" (still up). 0 turns it off. |
| Timeout | 1–60 seconds. |
| Retries | 0–3 quick re-checks before a failure opens an incident. |
Each check records total time plus DNS lookup, TCP connect, TLS handshake and time to first byte, the HTTP status and the IP address.
Keyword
Everything a website check does, plus a keyword that must be present (or absent). Optional case-sensitive matching. A missing keyword fails the check with a clear reason.
TCP port
Opens a TCP connection to a host and port. Records the connect time. Good for mail, database, SSH, FTP and game servers.
Heartbeat (cron job)
The monitor gets a secret URL. Your job calls it at the end of every successful run:
/path/to/job.sh && curl -fsS -m 10 --retry 3 "https://example.com/?rest_route=/sysgage-uptime/v1/heartbeat/<token>" > /dev/null
If no ping arrives within the expected interval plus the grace period, the monitor goes down and you are alerted. A job can also report a failure straight away, with a message that appears in the incident:
curl -fsS -m 10 "https://example.com/?rest_route=/sysgage-uptime/v1/heartbeat/<token>/fail&message=Backup+failed"
Both GET and POST work. The URL uses pretty permalinks when the site has them.
Shared options
Display name, group, public name (shown on the status page instead of the internal name), check interval, "Send alerts for this monitor", extra alert email addresses for this monitor only, "Show on the public status page", and Paused.
4. How checks run
- A one-minute WP-Cron event checks every monitor that is due. Each run has a time budget (50 seconds, filterable) and a batch size (25 by default), so large lists are spread across runs instead of timing out.
- A lock stops two runs overlapping.
- WP-Cron only fires on page visits. For dependable one-minute checks, use either:
- the cron URL (
?rest_route=/sysgage-uptime/v1/run&key=…), called every minute by your server or an external pinger, or - WP-CLI:
* * * * * wp uptime run --path=/path/to/wordpress. Both are shown ready to copy under Settings > General > Scheduling, with a "Regenerate" option for the secret key.
- the cron URL (
- The Overview and Settings screens show whether the scheduler is healthy and when it last ran. If checks stop running, an admin notice explains how to fix it (dismissible per user).
- Requests identify themselves with a configurable user agent (default
SysgageUptimeMonitor/1.0.1 (+site URL)), so they can be recognised or allow-listed in firewalls and server logs.
5. Metrics and how they are calculated
| Metric | Definition |
|---|---|
| Uptime % | Share of monitored time not inside a confirmed outage. Slow responses count as up. Time before a monitor was created is left out, and maintenance windows and paused periods never count as downtime. Because it is time-based, a 10-minute outage costs the same whether the monitor checks every minute or every 10 minutes. |
| Trend | Uptime is compared with the previous period of the same length, in percentage points (pp). Average response is compared in percent. |
| Average / min / max | Over successful and slow checks. Failed checks are excluded so timeouts don't distort response times. |
| Median, p95, p99 | Exact percentiles over raw checks. For 90-day ranges, the part older than the raw retention period uses the daily p95 values, weighted by check count. |
| Apdex | (satisfied + tolerating ÷ 2) ÷ checks. Satisfied: at or under the Apdex target (500 ms by default). Tolerating: up to 4× the target. Failed checks count as frustrated. Maintenance checks are excluded. 1.00 is perfect. |
| MTTR | Average length of the outages in the period (an ongoing outage counts up to now). |
| MTBF | Up time in the period divided by the number of outages. |
| Longest outage | The longest single outage overlapping the period. |
| SLA met | Uptime at or above the SLA target (99.9% by default). |
| Downtime budget | The downtime the SLA target allows for the period (e.g. 99.9% of 30 days ≈ 43 minutes), and how much of it was used. |
Heartbeat monitors have no response time, so they are left out of every response-time figure.
6. Charts
All charts are drawn in SVG by the plugin's own script, follow a single colour system, and work in every admin colour scheme.
| Chart | Where | What it shows |
|---|---|---|
| Response time and availability | Overview, monitor details, dashboard widget | Average response line, fastest–slowest band, slow threshold line, and a strip of availability cells (no downtime / some / major). 15-minute buckets for 24 h, 2-hour buckets for 7 days, daily points for 30 and 90 days. |
| Where the time goes | Website and keyword monitors | Stacked columns for DNS, connect, TLS, server wait and download. |
| Response time by hour | Monitor details | 7 × 24 heatmap of the last 30 days in the site's time zone. Hours with failures are marked with a dot. |
| Uptime by monitor | Reports | Horizontal bars against the SLA target line, with ✓ or ✕ for each monitor. |
| 90-day bars | Monitor details, status page (30/60/90) | One bar per day: no downtime, under 1% down, 1% or more down, no data. Each bar has a tooltip with uptime, downtime and incidents. |
| Sparklines | Overview, monitors list | Last 30 checks, with failures marked. |
Every chart has a hover / keyboard tooltip, a legend, and a Show data table button.
7. Incidents
- A failed check is retried (per the monitor's retry setting) before it counts. Only a confirmed failure opens an outage incident, so blips don't trigger alerts or count against uptime.
- Slow checks open a slow response incident (alerted only if "A monitor becomes slow" is on).
- Each incident records start, end, duration, cause (status code, timeout, refused connection, missing keyword, missed heartbeat, or the message from a heartbeat
failcall), the number of failed checks, who acknowledged it and when, and a note. - Acknowledge stops reminder alerts for that incident.
- Incidents are kept for 365 days by default (0 keeps them forever).
8. Alerts
Events
| Event | Sent when |
|---|---|
| Down | An outage is confirmed. |
| Recovered | The monitor is back up. Includes how long it was down. |
| Slow | A monitor becomes slow (off by default). |
| SSL expiring | The certificate is within the warning period, then again at 7, 3, 1 and 0 days. |
| Still down | Optional reminder every 15 minutes, 30 minutes, hour, 3 hours, 6 hours or day until the incident is acknowledged or resolved. |
No alerts are sent during maintenance windows or for paused monitors. Each monitor can opt out of alerts.
Channels
| Channel | Setup |
|---|---|
HTML email to one or more addresses through wp_mail(). An SMTP plugin is recommended. Monitors can add their own extra recipients. | |
| Slack | Incoming webhook URL. Rich attachment with facts and an "Open monitor" button. |
| Discord | Channel webhook URL. Embed with colour by event. |
| Microsoft Teams | Workflows / incoming webhook URL. Adaptive card. |
| Telegram | Bot token and chat ID. |
| Webhook | Any URL. JSON body (below). With a secret, each request carries X-Sysgage-Signature: sha256=<HMAC of the body>. |
Every channel has a Send test button. Every delivery, successful or not, is written to the alert log with the error message when one occurs.
Webhook body:
{
"event": "down",
"title": "Shop checkout is DOWN",
"message": "…",
"url": "https://example.com/wp-admin/admin.php?page=sgu-monitors&action=view&id=3",
"site": "https://example.com/",
"timestamp": 1795666307,
"monitor": {
"id": 3, "name": "Shop checkout", "type": "keyword",
"target": "https://example.com/checkout", "status": "down",
"last_response_ms": 0, "last_code": 503
},
"facts": { "Reason": "HTTP 503 Service Unavailable", "…": "…" }
}
9. Maintenance windows
- One time: a start and end date and time.
- Weekly: days of the week, a start time and a duration (5 minutes to 24 hours).
- Applies to the monitors you choose.
- During a window, checks keep running and are logged as "Maintenance". No incidents open, no alerts are sent and the time doesn't count against uptime.
- Upcoming windows (next 7 days) are announced on the public status page.
10. Reports
- On screen: any preset or custom period. Overall uptime (time-weighted across monitors), SLA met count, outages, MTTR, average response with p95, successful checks.
- Per monitor: uptime, SLA met or missed, downtime budget used, outages, MTTR, average and p95.
- CSV export of the report, of incidents (Incidents screen) and of a monitor's raw checks (monitor details). Values that could be read as spreadsheet formulas are neutralised.
- Print / save as PDF with a print stylesheet.
- Email: send the summary now for yesterday, the last 7 days or last month, or schedule it every day, every Monday or on the 1st of each month. Report recipients default to the alert recipients.
11. Public status page, JSON feed and badges
Status page
- One click: Settings > Status page > "Create status page" creates a page named "Status" with the block.
- Block: "Uptime Status" with settings for title, history (30 / 60 / 90 days), group, response times and past incidents. Previews live in the editor.
- Shortcode:
with optionalSystem status
-
sysgage.com Operational
Past incidents (14 days)
No incidents reported.
Powered by Sysgage Uptime Monitor
title="…",days="30|60|90",group="Client sites",monitors="1,4",show_response="no",show_incidents="no". -
The page shows an overall banner (all operational, slow, partial outage, major outage, maintenance), upcoming maintenance, monitors by group with daily bars and uptime, and incidents from the last 14 days. Only monitors with "Show on the public status page" appear, under their public name. It inherits the theme's fonts and works on light and dark themes. On phones it shows the last 30 days so every bar stays tappable.
JSON feed (off by default)
GET /wp-json/sysgage-uptime/v1/status
{
"status": "operational",
"monitors": [
{ "id": 2, "name": "Main website", "group": "Website", "status": "up",
"since": 1795496462, "uptime_30d": 99.676, "response_ms": 79, "checked_at": 1795666191 }
],
"updated": 1795666300
}
Badges (off by default)
GET /wp-json/sysgage-uptime/v1/badge/<id> returns an SVG badge with 30-day uptime for a public monitor. The <img> code is shown on each monitor's details screen.
12. WordPress dashboard widget and toolbar
- Dashboard widget: 24-hour and 30-day uptime, average response, monitors down, a mini response chart, and every monitor's status sorted with problems first.
- Toolbar: a coloured dot and "Uptime: all up" or "Uptime: 1 down" for administrators, on the front end and in the admin.
Both can be switched off in Settings.
13. Settings
| Tab | Settings |
|---|---|
| General | Defaults for new monitors (interval, timeout, retries, slow threshold). SLA target and Apdex target. Dashboard widget and toolbar on / off. User agent. Scheduling: health, cron URL, crontab and WP-CLI examples, monitors checked per run. |
| Alerts | Which events alert. Reminder interval. Email recipients. Slack, Discord, Teams, Telegram and webhook (with secret). Summary report frequency and recipients. |
| Status page | Shortcode and options, one-click page, heading, introduction, history length, response times and past incidents on / off. JSON feed and badges on / off. |
| Data & tools | Retention for checks (default 30 days), incidents (365) and the alert log (90). Delete data on uninstall. Import / export. Danger zone: delete all history, regenerate the cron key. |
14. Import, export and data tools
- Export monitors as JSON (passwords excluded) and import them on another site. Heartbeat monitors get new secret URLs on import.
- Export incidents as CSV.
- Delete all history removes checks, incidents, daily statistics and the alert log. Monitors and settings stay.
15. REST API
Namespace sysgage-uptime/v1.
| Route | Method | Access | Purpose |
|---|---|---|---|
/heartbeat/<token> | GET, POST | Public (secret token) | Record a heartbeat ping. |
/heartbeat/<token>/fail | GET, POST | Public (secret token) | Record a failure; optional message. |
/run?key=<key> | GET, POST | Public (secret key) | Run due checks (external cron). |
/status | GET | Public, when enabled | JSON status feed. |
/badge/<id> | GET | Public, when enabled | SVG uptime badge. |
/series?range=&monitor= | GET | Admin | Chart points and tiles for a range. |
/monitors/<id>/check | POST | Admin | Check a monitor now. |
/monitors/<id>/pause | POST | Admin | Pause or resume. |
/monitors/reorder | POST | Admin | Save the monitor order. |
/test | POST | Admin | Run an unsaved monitor configuration. |
/notify-test/<channel> | POST | Admin | Send a test alert. |
/run-all | POST | Admin | Check every monitor now. |
/live | GET | Admin | Current statuses for live refresh. |
Admin routes require the plugin capability and a REST nonce.
16. WP-CLI
| Command | What it does |
|---|---|
wp uptime list [--format=table|json|csv] | Every monitor with status, response time, 30-day uptime and last check. |
wp uptime run [--all] | Run due checks (or all with --all). Use from the system crontab. |
wp uptime check <id> | Check one monitor now. |
wp uptime add <url> [--name=] [--interval=<seconds>] [--keyword=] | Add a website monitor (a keyword monitor when --keyword is given). |
wp uptime pause <id> / wp uptime resume <id> | Pause or resume. |
wp uptime report [--period=day|week|month] [--to=<emails>] | Email a summary report for yesterday, the last 7 days or last month. |
17. Hooks reference
Filters
| Filter | Arguments | Purpose |
|---|---|---|
sgu_capability | $cap | Capability for all plugin screens and admin REST routes. Default manage_options. |
sgu_http_args | $args, $monitor | Change wp_remote_request() arguments for a check. |
sgu_check_result | $result, $monitor | Inspect or change a check result before it is stored. |
sgu_retry_delay | $seconds, $monitor | Pause between retries. Default 2. |
sgu_run_time_budget | $seconds | Time budget per run. Default 50. |
sgu_should_alert | $send, $event, $monitor, $context | Return false to suppress an alert. |
sgu_send_channel | $sent, $channel, $message, $monitor | Deliver through a custom channel. |
Actions
| Action | Arguments | Fires when |
|---|---|---|
sgu_incident_opened | $incident, $monitor | An outage starts. |
sgu_incident_resolved | $incident | An incident ends. |
sgu_alert_sent | $event, $monitor, $context, $results | Alerts have been sent (results per channel). |
sgu_monitor_saved | $id, $is_new | A monitor is created or updated. |
sgu_monitor_deleted | $id | A monitor is deleted. |
18. Accessibility
The admin was built to WCAG 2.1 AA and checked with axe-core on every screen.
- Every chart has a text summary, a keyboard-operable crosshair (arrow keys, Home, End, Escape) announced through a polite live region, and a data table toggle, so no value depends on colour or hover.
- Status is always shown with an icon and a word, never colour alone.
- The range switch is an ARIA radio group with arrow-key navigation. The 90-day bars use a single tab stop with arrow keys.
- Form fields have labels, help text linked with
aria-describedby, and errors marked witharia-invalid. - Confirmations use an accessible dialog. Notifications are announced.
- Visible focus everywhere, reduced motion support, Windows high contrast (forced colours) support, and a print stylesheet.
- Tables become labelled cards on phones.
19. Data storage
| Table | Holds |
|---|---|
{prefix}sgu_monitors | Monitor configuration and current state. |
{prefix}sgu_checks | Individual check results (status, total time, DNS, connect, TLS, first byte, HTTP code, error). Kept 30 days by default. |
{prefix}sgu_daily | Daily roll-ups per monitor (checks, failures, avg / min / max / p95, downtime, incidents). Kept 400 days. Built hourly. |
{prefix}sgu_incidents | Incidents with acknowledgement and notes. |
{prefix}sgu_alerts | Alert delivery log. |
Options: sgu_settings, sgu_maintenance, sgu_last_run, sgu_status_page, sgu_db_version. Cron events: sgu_run_checks (every minute), sgu_hourly (roll-ups and pruning), sgu_daily (reports).
Deactivating the plugin stops its cron events. Deleting the plugin removes its tables and options only if "Delete all monitors and history when the plugin is deleted" is on.
20. FAQ and known limitations
Can it alert me when the site it runs on goes down? No plugin can: if the server is down, WordPress isn't running to send the alert. Sysgage Uptime Monitor catches outages of every other site, API and server you add. To cover the site itself, install the plugin on a second site on a different server and have each monitor the other.
Checks are late or missing. WP-Cron only runs on page visits. Set up the cron URL or the WP-CLI command (Settings > General > Scheduling). The Overview screen shows when checks last ran.
Checks are made from one place. All checks come from your web server. A target that blocks your server's IP, or a problem only in another region, will not be seen the same way as by visitors elsewhere.
Can I monitor sites on a private network? Yes. Local and private addresses are allowed, since checks are made by your own server.
How many monitors can I add? There is no limit in the plugin. Each run checks up to 25 due monitors (configurable) within 50 seconds, so a one-minute interval suits up to a few dozen monitors on typical hosting; longer intervals scale further.
Emails don't arrive. Alerts use wp_mail(). Use the "Send test" button and an SMTP plugin if your host doesn't deliver mail.
