# Alerts

*Settings > Alerts* makes qKVM watch the machines and tell you when something goes wrong, and when it is over. A change counts once it has lasted about half a minute, so one hiccup stays quiet.

## Set it up

1. Switch on *Watch the KVMs and send alerts*.
2. Tick the events under *Tell me when*. What is not ticked there goes to no destination and no browser.
3. Set *Link in alerts* to the wall's address as you reach it. Each alert then carries a link that opens the wall at its tile.
4. *Add destination* (top right): email, chat, PagerDuty, ntfy or a webhook. See [Alert destinations](https://qkvm.com/docs/web/alert-destinations).
5. Press *Send test* on the destination.

## Events

| Event | Severity |
|---|---|
| Offline: the KVM or the server's controller stopped answering | critical |
| Server critical fault, as its controller reports it | critical |
| Certificate changed | error |
| Login rejected | error |
| Other problem, as the tile shows it | error |
| Backup failed | error |
| Picture lost: no video signal, or a server switched off | warning |
| Screen unchanged (a watch, below) | warning |
| Back to normal | info |

Each destination is told from a severity on: *Critical only*, *Errors and worse*, or *Warnings and worse*. "Back to normal" goes exactly where the trouble it ends was told, so an incident opened is closed.

## For one machine

In *Settings > KVMs > Edit*:

| Option | What it does | Default |
|---|---|---|
| Send alerts about this one | off for a test bench, or a machine that sleeps | on |
| No signal for | minutes without a video signal before an alert | off |
| Screen unchanged for | minutes the screen looked the same before an alert | off |

## Screen watches

- **No signal for N minutes**: the computer sends no picture. It is off, asleep, its screen is switched off, or its cable is out.
- **Screen unchanged for N minutes**: every picture the wall had looked the same. Only pictures the wall gets anyway, while the tile is on a screen somewhere, are compared: with nobody looking, nothing is said.
- Neither means "hung" or "off". A login screen nobody uses looks the same, and a sleeping screen sends nothing.
- The picture that set a watch off is kept on the wall for 30 days, for an admin, beside the alert in the activity log. It is never sent with an alert.

## What an alert carries

The machine's name, what happened and when, its address, the tile's text for a problem, and the link. Never a password, a token or a picture. *Minimal content* on a destination leaves out the address and the text.

The words are fixed, with no templates: nothing a machine's name or a device sends can run.

## When nobody is signed in

- qKVM keeps watching after everyone has signed out, and after a restart. A machine that does not come back after a power cut is told about two minutes after the start.
- Not with `--locked-start`: until somebody signs in, nothing is watched or sent, and `GET /healthz` says `"locked": true`.
- A JetKVM that is not on screen is only checked for answering, so its one viewer slot stays free.

## More

- [Quiet hours and pauses](https://qkvm.com/docs/web/quiet-hours-and-pauses): pause for maintenance, quiet hours, reminders.
- [Phone alerts](https://qkvm.com/docs/web/phone-alerts): notifications on a phone or browser.

## Related

- [Alert destinations](https://qkvm.com/docs/web/alert-destinations)
- [Quiet hours and pauses](https://qkvm.com/docs/web/quiet-hours-and-pauses)
- [Phone alerts](https://qkvm.com/docs/web/phone-alerts)
- [Activity log](https://qkvm.com/docs/web/activity-log)

[Full reference](https://github.com/qkvm/qkvm/blob/main/GUIDE.md#alerts)
