# Alerts and automation

Source: https://docs.neode.sk/console/alerts-and-automation/
Last updated: 2026-11-30

> Get an alert when a device crosses a limit, look through and acknowledge the alerts, and send a command to a device's agent.

**Alerts and automation**, under **Rules** in the sidebar, has four tabs:
**Alert rules**, **Alert history**, **Remote commands** and **Maintenance**
(see [Maintenance windows](https://docs.neode.sk/console/maintenance-windows.md)). A rule watches a
value that devices report and raises an alert when it crosses the limit you
set.

![The Alert rules tab with three rules: their condition, threshold, severity, which devices they watch and whether they are enabled](https://docs.neode.sk/shots/automation-light.png)

The page needs **Change server settings**, which only Super admin,
Administrator and Server admin have by default. Creating and changing rules,
acknowledging alerts and sending commands also need write access to the page
in a person's [console access](https://docs.neode.sk/people/permissions.md#console-access). The
**Remote commands** tab also needs **Connect to devices**, so a Server admin
sees only the first two tabs.

## Alert rules

Click **Create rule** and fill in:

- **Rule name**, and a **Description** that shows under the name in the list.
- **Condition**: what the rule watches. The hint under it says when the
  server checks it.
- **Comparison** and **Threshold**: for example **Greater than** 90 for
  90 %. Usage is in percent, durations in seconds.
- **Applies to**: **All devices**, or **One device** and its **Device ID**.
- **Severity**: **Info**, **Warning** or **Critical**. It is a label that
  makes urgent alerts stand out and changes nothing else.
- **Enabled**: a disabled rule stays in the list but raises no alerts.
- **Recipients**: the **Mail addresses** and **Channels** the rule's alerts
  go to; see [Alert mail and channels](#alert-mail).

| Condition | Checked |
|---|---|
| **Time offline (seconds)** | Once a minute, for every device. Online, banned and deleted devices and RDP and VNC targets are left out. |
| **CPU use (%)**, **Memory use (%)** | With each usage report a device's agent sends to the console |
| **Disk use (%)** | When a device's agent sends its inventory; the fullest disk counts |
| **Time idle (seconds)** | With each activity report a device's agent sends |
| **Date field** | Once a day, and right after the rule is saved. See [Date fields](#date-fields). |
| **Custom** | Never. A custom rule has no value the server can measure, so it raises no alerts by itself. |

The usage, inventory and activity reports come from an agent that sends them
to the console. NeoDesk Desktop sends its usage with its heartbeat
instead, which fills the device's
[Metrics](https://docs.neode.sk/console/device-details.md#metrics) charts but isn't checked
against these rules. **Time offline** works for every device.

A rule raises an alert at most once every five minutes per device. While a
[maintenance window](https://docs.neode.sk/console/maintenance-windows.md) holds a device, its
alerts are written but not sent. An offline
device raises one alert per rule for each time it goes offline, however long
it stays away.

### Date fields

**Date field** warns before a date in a [device field](https://docs.neode.sk/console/device-fields.md) comes, such as a contract end or a warranty date. Instead of **Comparison** and **Threshold**, the form asks for:

- **Date field**: the field, picked from the date fields you can see.
- **Days ahead**: how many days before the date the alert comes, from 0, which alerts on the day itself, to 3650.

Each device alerts once per date: when its date is that many days away or less. A date that has already passed alerts once at the first check. When someone sets a new date, the device alerts again once the new date comes within the days. A device without a value of its own counts with the field's default; deleted devices are left out. The server checks once a day, in its own time zone, and right after you save the rule. The rule list shows the field's key under the condition.

Only an account that sees the field may create or change a rule about it. The alerts of a restricted field say that the date is near and leave the date out, in the alert history, the mail and what integrations get. A field of an organization counts only on that organization's devices.

**Edit** and a click on the row open the rule again. The row menu has
**Enable** or **Disable**, **Pause**, and **Delete**, which also removes the
alerts the rule raised.

### Pause a rule

Instead of turning a rule off while you work on something, pause it. **Pause**
in the row menu offers **For 1 hour**, **For 4 hours**, **Until tomorrow
08:00** and **Until a date you pick**. A paused rule raises no alerts, shows
**Paused until** the time and who paused it, and turns itself back on at that
time, also when the server was restarted in between. **Resume now** ends the
pause early.

**Disable**, and unticking **Enabled** in the rule form, first ask **Pause it
for a while instead?** with the same choices. **Pause** pauses the rule for
the time you picked; **Turn off for good** still turns it off.

![The question Pause it for a while instead? after Disable on the rule Memory nearly full, with For 1 hour picked and the buttons Turn off for good, Cancel and Pause](https://docs.neode.sk/shots/automation-pause-question-light.png)

To silence one device only, open the alert's menu in **Alert history** and
pick **Mute this rule for this device**, with the same choices. The rule keeps
alerting for every other device; the rules list says for how many devices it
is muted, and **Unmute** under **Muted for one device** below the list ends
a mute early.

![The Alert rules tab with Disk almost full paused until 08:00 tomorrow, CPU running hot with quiet hours from Monday to Friday, 22:00 to 07:00, Computer offline muted for one device, and that device listed under Muted for one device](https://docs.neode.sk/shots/automation-snooze-light.png)

Rules that have been off for more than 30 days are listed in a hint above the
rules, so a rule someone turned off during an update doesn't stay off
unnoticed.

Every pause, mute, resume and the automatic resume at the end are in the audit
log. From the command line:

```sh
neodesk automation rule-pause 7 --minutes 240
neodesk automation rule-resume 7
neodesk automation rule-mute 7 --device 123456789 --minutes 60
neodesk automation snoozes
```

### Quiet hours

In a rule's quiet hours its alerts are recorded in **Alert history** but not
sent. Tick **Use quiet hours** in the rule form and set:

- **Days**, **From** and **To**: an end at or before the start is on the next
  day, so 22:00 to 07:00 is one night.
- **Time zone**: the server's unless you pick another.
- **When quiet hours end**: **Send one summary** mails the rule's recipients
  one mail listing what happened and posts one message to its channels;
  **Drop them** sends nothing.
- **Send at once anyway for**: **Critical**, **Warning and above** or
  **Never**. Alerts of that severity go out right away, quiet hours or not.

![The Quiet hours section of the rule CPU running hot: Monday to Friday from 22:00 to 07:00 in the server's time zone, Send one summary picked and Critical alerts sent at once](https://docs.neode.sk/shots/automation-quiet-hours-light.png)

The rules list shows the quiet hours in the rule's status, for example
**Quiet Mon–Fri 22:00–07:00**, and quiet alerts carry a **Quiet hours** tag
in **Alert history**. Webhooks and channels can subscribe to **Quiet hours
summary**.

### Alert mail and channels

A rule's alerts go to the recipients under **Recipients** in the rule form.

![The rule form scrolled to Recipients, with two mail addresses and the channels Office Gotify and Server room on Discord ticked](https://docs.neode.sk/shots/automation-recipients-light.png)

- **Mail addresses**: one or more addresses, separated by commas or line
  breaks. Each alert of the rule goes to each of them by mail, through the
  mail server under **Settings**, **Email** (see
  [Email settings](https://docs.neode.sk/console/settings/email.md)), in the language and time
  zone of the recipient's account. Without a mail server, no mail goes out;
  **Open email settings** under the field leads there.
- **Channels**: the [notification channels](https://docs.neode.sk/console/settings/notification-channels.md)
  that get a message for each alert of the rule. A channel that subscribes to
  **Alert raised** gets every alert anyway, so it needs no tick here; a
  channel that is ticked and subscribes gets the alert once.

A rule without recipients still raises alerts in **Alert history** and sends
them to the channels and [webhooks](https://docs.neode.sk/console/settings/webhooks.md) that take
**Alert raised**. Picking channels needs **Change server settings**. From the
command line, `neodesk automation rule-update` sets `notify_emails` and
`neodesk integrations rule-channels-set` the channels; see the
[command reference](https://docs.neode.sk/command-line/reference/integrations.md).

### Security alerts

Three alerts need no rule and are always on:

- **New devices**: a device registered without an admin approving it, for example in **Open** mode or with a token. Quick support's temporary devices and devices approved under **Join requests** are left out.
- **Join requests**: a device is waiting under **Join requests**.
- **Repeated failed sign-ins**: an account reached 10 failed sign-ins, or one address 30, within 15 minutes.

They appear in **Alert history** and go by mail to every admin account that has an address, or to the alert address of the mail settings when none has one. Mails are collected: the first goes out two minutes after the first event and lists everything since, and while events keep coming the next ones follow after 1, 3, 6 and 12 hours. A rollout of 50 devices on one day sends a handful of mails, each listing its devices. The link in the mail that turns off alert mails covers these too.

## Alert history

**Alert history** lists the alerts, newest first, with the time, the rule,
the device, the measured value and the severity. The buttons above the table
filter by severity, and a bar shows how many alerts are still not
acknowledged. Click **Acknowledge** once someone has looked at an alert; the
row then says who acknowledged it.

Alerts a [maintenance window](https://docs.neode.sk/console/maintenance-windows.md) held are left
out. Tick **Show held alerts** to see them, each tagged **Held by** its
window.

## Remote commands

A remote command is a shell or PowerShell command, a script, a service
restart or a restart of the computer for one device. Click **Send command**,
enter the **Device ID**, pick the **Command type** and write the
**Command or script**. You can't take a command back once it is sent.

The command waits on the server until an agent on the device fetches it, runs
it and reports back. The table shows **Pending** until then, then
**Running**, **Completed** or **Failed**; **View result** shows what the agent
reported.

> **Note:**
> NeoDesk Desktop doesn't fetch these commands, so on a computer with
> Desktop they stay **Pending**. To run a script on computers with Desktop, use
> a task under [Fleet tasks](https://docs.neode.sk/console/fleet-tasks.md#tasks).
