Skip to content

Site Monitor Operator Guide

Site Monitor checks HTTP availability, certificate expiry and domain expiry from your Capell application host. It records check history and incidents in admin. Its release catalogue maturity is Stable, but distribution remains preview-only until installation and release readiness are verified.

A developer must install the entitled package, run its migrations, synchronise package permissions and verify capell:site-monitor:doctor. Keep the Laravel scheduler and a queue worker running. Scheduled checks are queued; a healthy web page alone does not prove either background process is running.

Set the queue worker’s --memory limit above the application’s measured boot footprint. A fully installed application can exceed Laravel’s default 128 MB before its first check; the worker then exits after a job with Memory limit exceeded. Supervise restarts and verify that pending checks are consumed, rather than treating a started process as a healthy worker.

Keep independent monitoring for the application host itself. Site Monitor cannot report an outage while its own scheduler, queue or database is unavailable. Email, Slack and webhook alerts require a configured destination and a working delivery service. See the alert delivery guide.

Open Reports > Monitor targets in admin with a global operator account. Create a target with a meaningful name and public HTTP or HTTPS URL. Site-scoped access does not grant global monitoring control.

Choose the check type:

  • HTTP status: compare the returned response with the expected minimum and maximum status codes. A slow response can produce a warning even when its status is accepted.
  • SSL certificate: compare the presented certificate expiry with the configured warning window. This is an expiry check, not a complete certificate-chain or security audit.
  • Domain expiry: obtain expiry from a configured RDAP provider. Unsupported suffixes and unavailable records produce an explicit failed check rather than a guessed expiry.

Set the interval, timeout and consecutive failure threshold. The scheduler interval bounds actual frequency. A threshold of two avoids opening an incident for the first isolated failure; choose it according to the service’s tolerance, not to hide persistent failure.

For HTTP checks, the maximum expected status must be at least the minimum; equal bounds accept one status. These controls are hidden for other check types and retain saved values when switching types. Normal model saves enforce the same invariant; raw query-builder writes bypass model validation and are not a supported configuration interface. Existing contradictory ranges are retained for explicit repair and produce an unknown configuration result, rather than an outage.

Enable the target, save it and use Run now. Disabled targets explain why this action is unavailable; a stale request queues nothing. Workers also recheck enabled state before execution. This queues work, so inspect the next recorded result before treating the target as operational. Verify the queue worker consumes the job and the last-checked time changes.

Use the dashboard to review enabled targets, last recorded results and open incidents. Per-target monitoring evidence distinguishes fresh observations, overdue checks, never-checked targets and paused monitoring. An enabled target becomes overdue strictly after two configured intervals since its last observation: one interval to become due and one interval of grace. Paused targets retain their last result but do not count as overdue or never checked. Dashboard state counts include retained results, including paused targets; overdue and never-checked counts cover enabled targets only. A recent portfolio latest-check time says nothing about other targets. The doctor command uses its own max_stale_minutes threshold, raised for a slower target to two of that target’s intervals. Check scheduler and queue health when evidence is overdue; staleness does not invent an outage or incident. Open a target to inspect its latest result and timestamps. Passing, warning, failing and unknown are distinct states; an unknown target has not established a successful check.

A failing target opens an incident after its configured failure threshold. Further failures update the existing incident rather than creating a new one each time. A passing result resolves its open incident automatically. Use Resolve manually or Reopen incident with a reason to record an authorised operator decision, timestamp and actor in incident history. Repeated requests for the current status do nothing; reopening clears the resolution timestamp. Status and machine failure counts cannot be edited through the generic form. Manual closure retains the actual probe result and failure counters: it does not establish recovery. A subsequent failing probe at the threshold opens a new incident; reopening an old incident is refused if the target already has an open incident. Probe updates preserve operator history.

Configure email, Slack and generic webhook delivery using the alert delivery guide. Each configured destination receives every target’s incident opening and automatic recovery. Disable alerts.notify_on_recovery to send opening alerts only. Delivery failures are reported without stopping checks or other configured channels. Use SiteMonitorIncidentOpened and SiteMonitorIncidentResolved for custom routing by site. SiteMonitorIncidentResolved continues to mean automatic recovery and carries the actual passing run. Subscribe separately to SiteMonitorIncidentManuallyTransitioned for operator decisions; its typed transition contains previous/new status, actor ID, reason and time, with no invented run. Operator history is appended under metadata.operator_transitions; existing incident rows need no migration.

Disable a target when checks should stop. Automatic discovery must retain that decision, its configured thresholds and its recorded health state. Discovery refreshes source identity; it must not silently reset operator settings.

Snooze alerts until holds back notifications for that target until the chosen time; incidents are still opened and shown in Monitor incidents. An incident opened during a snooze sends no recovery alert either. Timeouts can be set from 100 ms and are used as entered, not rounded up to a second.

Target fields: Expected keyword and Fail above (ms) turn a page check into a content and latency check. Maintenance starts and ends silence incidents and alerts for that target between the two times. Flapping is detected from the flap_window_runs and flap_change_threshold settings.

The scheduled run prunes old results after run_retention_days (30) and resolved incidents after incident_retention_days (365); set either to 0 to keep everything. Latest target results, incident-linked runs and open incidents are always retained.

Public destinations only are allowed by default. Local hostnames and private or reserved network addresses are rejected. HTTP redirects are checked hop by hop; certificate sockets connect to a validated address while retaining the hostname for TLS SNI.

Do not enable private targets in production. The development-only override is for an explicitly isolated test environment. A failed safety check is a rejected target, not a reason to bypass the guard.

SymptomCheck
Admin screens absentEntitlement, installed-package activation, migrations and the operator’s effective permissions.
Run check reports queued but no new result appearsQueue connection, worker health and failed jobs.
Scheduled checks stopScheduler health, schedule configuration and due-target timestamps.
Domain expiry unavailableThe target suffix has a configured RDAP endpoint and that provider returns an expiration event.
SSL expiry unavailableThe target presents a readable certificate on port 443 and the host permits the outbound connection.
Target is repeatedly failingLatest error, accepted status range, timeout and failure threshold; investigate the service before changing the expected outcome.
Incident opens but nobody is notifiedConfigured alert destinations, application error reports and delivery evidence at the receiver.
Checks show success while the whole host is down elsewhereUse independent external monitoring; checks from this host cannot observe its own total outage.