Monitoring a service or website
A monitor is for anything that isn't a Synacl device but that you still want on the same uptime history: a website, an API, a database server, a branch office's point-of-sale machine.
Go to Monitors → Add monitor. There are two kinds, and the right one depends on one question: can Synacl reach it from the internet?
Probe — Synacl checks it
Use this when the thing has a public address. Synacl contacts it on a schedule and records whether it answered and how long it took.
HTTP probe — enter a URL. By default any 2xx response counts as up. You can tighten that:
- Expected status — a specific code, or a range.
- Body contains — text that must appear in the response. Useful when a broken app still returns 200 with an error page.
- JSON path — pull a field out of a JSON response and require a value. Point it at a
/healthendpoint and requirestatusto equalok. - Maximum response time — treat "answered, but took nine seconds" as down.
TCP probe — enter a host and port. Up means the connection opened. Use it for anything that isn't HTTP: a database, a broker, SSH, a service on a fixed port.
Both record response time as an ordinary reading, so you can chart it, put it on a dashboard, and set a rule on it exactly like any other measurement.
The minimum check interval is 20 seconds. Checks come from Synacl's servers, so if the target sits behind a firewall or on a home network, it will not be reachable — use a heartbeat instead.
Private addresses are refused. A probe cannot point at
localhost, a10.x/192.168.xaddress, or anything else on a private network. That is a security limit, not an oversight.
Certificate expiry
An HTTP probe on an https:// URL also reads the site's certificate on every check and records
how many whole days it has left, as a tag named cert_days_left (unit d). The monitor shows
Certificate: 12 days left, or Certificate expired. If the URL redirects, it is the
certificate of the page the probe finally lands on.
The tag comes with its limits already set: Watch at 14 days or fewer and Alert at 7 or fewer. So you get an early warning two weeks out and an alarm one week out, with no rule to write. They are ordinary Normal, Watch and Alert levels, so they need a plan that includes alert thresholds. Change the limits, chart the tag or delete it like any other tag: Synacl sets the limits once and does not overwrite your changes.
An expired certificate normally fails the check, and the monitor goes down. With Ignore TLS certificate errors switched on, the check still passes and the chip says Certificate expired.
Heartbeat — it checks in with Synacl
Use this when the thing is behind a router you don't control, has no public address, or you would rather not open anything up. Nothing needs to be reachable from outside: the machine sends a small request out to Synacl on a schedule, and going quiet is what marks it down.
This is a dead man's switch. It is the right choice for a fleet of shop tills, a machine on a customer's network, or a backup script that should tell you when it stops running.
When you create a heartbeat monitor you get a URL and a secret. Have the machine call it on a schedule — a cron entry is enough:
*/5 * * * * curl -fsS -X POST https://api.synacl.com/ingest/webhook/<monitor-id> \
-H "Authorization: Bearer <secret>" -H "Content-Type: application/json" -d '{"up":1}'
Set expected interval to how often it will check in. Synacl allows roughly three missed check-ins before marking it down, so a five-minute heartbeat is reported down about fifteen minutes after the last one. The longest interval you can set is one hour.
Treat the secret like a password. If it leaks, rotate it from the monitor's page.
Saying "down" instead of going quiet
The body {"up": 1} is a check-in. Send {"up": 0} and the monitor is marked down
immediately, with the cause reported down — no waiting for the missed-check-in window, and the
incident log says the service told you rather than went silent. Send {"up": 1} again and it comes
back. The values false, "0", "false" and "down" all count as down, so a shell script can
pass its result straight through.
This is for the case where the machine that checks in is fine but the thing it watches is not: a
till whose card reader has failed, a backup host whose last run errored. Silence still works as
before — a monitor that stops checking in is marked down after the missed-check-in window, whether
or not it ever sent up: 0.
Two settings in the monitor's Edit panel let you keep your own field names:
- Up/down field — the key Synacl reads for up/down. Default
up. Set it toodoo_okif that is what your service already reports. - Latency field — the key that feeds the Response column on the Monitors page and the
response-time chart. Default
response_ms; set it toodoo_ms,db_latency, or whatever your service measures.
Changing either takes effect on the next check-in.
Sending values, not just a heartbeat
You can put anything useful in the body — {"up":1,"queue_depth":12,"backup_age_hours":3} — and
then chart it or build threshold rules on it, exactly as you would with a real sensor. Any numeric
field becomes a chartable tag once it has been adopted (see below), and the latest value of each
adopted tag is shown on the monitor's row.
There is one thing to know about the first push. A heartbeat starts with no tags, because only your service knows what it reports. A field with no matching tag is still accepted, and the value is still recorded — but it cannot be charted or used in a rule until a tag exists whose name is exactly that field. Until then the monitor looks healthy and reports nothing, which is a confusing combination to run into on your own.
So Synacl tells you: the monitor's page shows a banner naming the fields it is receiving and has no tag for, with a button to add them all. Nothing is lost in the meantime — readings recorded before you add a tag become readable as soon as you do.
Field names are the identity of the reading. Renaming a tag later orphans its history and any widget bound to it, so it is worth using the name you mean the first time.
When something goes down
A failing monitor raises device/offline, the same event a real device raises — whether a probe
failed, a heartbeat went quiet, or a heartbeat reported itself down. So the way to be told about it
is the ordinary one: create a rule on that event and give it an email, push or
webhook action.
Scoping the rule to this monitor is optional. An event rule left unscoped fires for any device or monitor going offline, and each one has its own cooldown, so one monitor failing never silences another. The alert names the monitor either way. Pick the monitor on the rule when its outage deserves different handling — different recipients, or a different severity. See event-triggered rules.
An outage appears in the incident log with its start, end and duration, and pulls down the availability figure on that monitor's uptime history.
If a probe fails repeatedly for a long stretch, Synacl stops checking it and tells you — that prevents a permanently dead URL from generating traffic forever. Re-enable it from the monitor's page once the target is back.
Outside its opening hours, during maintenance and while it is paused, a monitor's up and down alerts are held. The next sections cover setting those up, and what happens to the alerts when they end.
Opening hours
Some things are only meant to be on for part of the day. A shop's till is switched off at night; an office PC is off at weekends. Without hours, every night counts as an outage: availability sinks towards 50 % and you are alerted each time it is switched off. A lower target would not fix that, because it would also hide a till that is dead all day.
Opening hours tell the monitor when it is expected to be up. Time outside them is Not counted: not up, not down and not unknown. It is left out of availability and coverage altogether. See how uptime is measured.
In the monitor's Edit panel, under Opening hours, switch off Always open. Then:
- Pick the time zone the hours are in. They follow that zone's local clock, daylight-saving changes included.
- For each day, mark it closed, open all day, or enter up to three opening and closing times, such as 08:00–12:00 and 13:00–17:00.
- Closing after midnight: a closing time earlier than the opening time is on the next day. Friday 18:00–02:00 runs from Friday evening to 2 a.m. on Saturday. For midnight itself, use 24:00.
- Windows cannot overlap, including a late window that runs into the next morning's first one.
Set the hours a little inside the real ones. Say the till is switched on somewhere between 11:00 and 12:40, and off somewhere between 00:25 and 01:10. Set 12:45–00:15. A late start or an early close then falls in time that is not counted, and nobody is paged for it. Hours wider than reality do the opposite: every slow morning becomes an incident.
Always open (the default) means no hours: every minute counts, as it always has.
New hours apply from now on. Days already in the uptime history keep the hours they were measured with; only the day in progress follows the new ones.
Maintenance
Use Schedule maintenance for planned work inside opening hours: a router swap, a server upgrade. Give it a start, an end and, if you like, a note. While it runs, the monitor shows Maintenance until 14:00 and the time is not counted.
- A window can start now or later, but not in the past. A few minutes' grace covers "now". Maintenance takes time out of the availability figure, so it has to be declared beforehand. It cannot be used to tidy up yesterday's outage.
- Each window lasts at most 14 days, and a monitor can hold up to 20.
- A window that has started can be extended or cut short, but its end cannot move into the past. A window that is over can no longer be edited.
- Finished windows leave the list when they end, but still count towards the 20 for about five weeks. The time they covered stays not counted in the history.
Pause
Pause, at the top of the monitor's page, stops watching it until someone presses Resume. It suits a server you are retiring but have not deleted, a machine away for repair, or unplanned work you would rather not be paged about. The monitor shows Paused, and the time is not counted.
- A paused probe is not checked at all.
- A paused heartbeat still accepts check-ins, and their values are stored, but going quiet does not mark it down.
- A pause starts now and has no end time. If you know when the work finishes, schedule maintenance instead: it ends by itself.
Pausing and resuming need permission to edit the monitor.
Alerts while closed, in maintenance or paused
Inside a Closed, Maintenance or Paused stretch, the monitor still records what
happens. If it goes down or comes back, the device/offline or device/online event is in the
event feed as usual. But no rule fires, no push is sent and no macro runs for it.
When the stretch ends, Synacl looks again within about a minute:
- If the monitor is still down, you get one
device/offlinealert that goes through your rules and push like any other. Its message is Not open on time, or Still down after maintenance, and the incident log shows the time, for example Not open by 12:45. - If it is back up, or nothing went down while it was closed, nothing is sent.
After Resume, a heartbeat is checked straight away. A probe first gets one or two of its check cycles to run (longer for a probe that checks only every few minutes), so resuming a healthy probe never pages you. If it is down, the alert says Still down after pause.
In the incident log, an outage that runs into closing time ends there. If the monitor is still down at opening time, a new incident starts then.
Only the monitor's own up and down alerts are held. Alerts on its readings, such as a slow response time or a certificate close to expiry, arrive at any hour: a certificate expires whether or not the shop is open. A paused probe takes no readings, so it sends none of these either.
SLA target
If you have promised a level of availability, enter it as the SLA target in the Edit
panel: 99.5, not 0.995. It must be above 0 and at most 100, with up to three decimals. The
monitor then says Meets 99.5% target or Below 99.5% target.
The target is also used by an SLA dashboard widget on this monitor whose own Target is left blank, and an uptime badge turns green or red against it. Time that is not counted is outside the sum both ways: a closed night neither helps nor hurts.
Share it publicly
Two read-only ways to show customers whether something is up, without giving them a login:
- a status page at
https://synacl.com/s/…, listing the monitors and devices you choose with their availability, a bar per day and recent incidents; - an uptime badge, a small image with one monitor's availability in it, from the Uptime badge button on the monitor's page.
Both are covered in status pages and uptime badges.
On your phone
In the mobile app, open Fleet → Monitors. Each monitor shows whether it's up, its availability over
the last 24 hours, 7 days and 30 days, and its latest response time. Open one for its daily uptime
strip, incident log and response-time chart. You can add, edit and delete monitors from the phone
too, including heartbeats: the secret appears once, right after you create one, with a button to
copy the check-in URL. The ready-to-paste curl and cron lines are on the web app's monitor page.
With the latest app, monitors show the same chips as on the web: Closed · opens 12:45, Maintenance until 14:00, Paused and Certificate: 12 days left. A monitor with an SLA target shows whether it meets it, and Pause and Resume work from the phone. Opening hours and maintenance are set in the web app; the phone opens it for you.
When a monitor goes down, the push notification says Monitor down:
Monitors are devices
A monitor counts against your device allowance as well as your monitor allowance, and it appears anywhere a device does: in rules, in events, on dashboards, in reports. That is deliberate — everything you already know how to do with a device works on a monitor without learning anything new.
Monitor allowances by plan are on the plans page. Heartbeats and probes count the same.