> For the complete documentation index, see [llms.txt](https://wiki.datadike.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.datadike.com/sonar/get-started/core-concepts.md).

# Core concepts

The vocabulary SONAR uses — clients, sites, devices, status, policies, checks, tasks, alerts, employees, roles — and how the objects relate.

Almost every screen in the console is a list of one of the objects below. Learning how they fit together makes the rest of this documentation read quickly, and a few of them are easy to confuse — those are called out at the end.

## The chain, in one sentence

A **device** runs the **agent** and belongs to a **site** of a **client**; the **automation policies** that reach it through that client and site give it its **checks** and **tasks**; a failing check raises an **alert**, handled as its **alert template** says; and every change made in the console is written to the **audit trail** under the name of the **SONAR user** who made it.

## How devices are organised

### Client

The top level of the tree: one organisation whose computers you manage. Every site, and therefore every device, belongs to exactly one client. Clients are listed in the **Clients** group of the **Sysadmin** sidebar and managed from **Management › Clients**.

### Site

A subdivision of a client — an office, a branch, a department. A device belongs to exactly one site. The agent installer is always generated for one site, so the site decides where a new device appears.

### Device and agent

A **device** is a computer that runs the **agent**. The device is the record in the console; the agent is the software on the computer. Each device has a **type** — **workstation** or **server** — chosen when the agent is installed. The type decides which automation policy a client or site gives the device, since each of them can hold one policy for workstations and one for servers.

Devices appear in **Dashboard › Sysadmin**, and selecting one opens the device panel with its tabs. See [The device list](https://wiki.datadike.com/sonar/administration/devices/device-list.md).

## Device status

The status of a device is the time since the agent's last heartbeat, which it sends about once a minute while connected. **Last Response** in the device list shows that time.

| Status      | Meaning                                             | Default threshold        |
| ----------- | --------------------------------------------------- | ------------------------ |
| **online**  | The agent has reported within the offline threshold | —                        |
| **offline** | No heartbeat for longer than the offline threshold  | 12 hours (720 minutes)   |
| **overdue** | No heartbeat for longer than the overdue threshold  | 30 days (43,200 minutes) |

Both thresholds are set per device in the device's **Edit** dialog, as **Offline after (minutes)** and **Overdue after (minutes)**. A device becoming overdue is what raises an availability alert, when the device or its alert template asks for one; the alert is resolved when the device reports again.

The counters on the **Home** dashboard and in the **Clients overview** group devices by fixed bands of time since their last contact — under 12 hours, over 12 hours, over 24 hours, over 7 days, over 30 days — and count devices in maintenance mode on their own. The Clients overview also counts archived devices separately.

### Maintenance mode

A switch on a device, or on every device of a site or a client at once (**Enable Maintenance Mode** in the device menu or in the client tree). While a device is in maintenance mode, no alerts are raised for it. Its checks and tasks keep running, and it is counted under **In Maintenance** rather than by status. Use it for planned work, so that a server you are rebooting does not page anyone.

### Archived device

**Archive Agent** tells the agent on the computer to uninstall itself, which happens if the device is online at that moment, and keeps the device's record and history in the console, counted under **Archived**. No alerts are raised for an archived device. Unarchiving it does not reinstall the agent; to manage that computer again, install the agent on it.

## Automation

### Automation policy

A named set of **checks** and **tasks** — and optionally a patch policy and an alert template — that you define once and assign to many devices. Policies are managed in **Management › Automations** and assigned with **Assign Automation Policy**, on a device, a site or a client.

A device receives, from the most specific level to the most general:

1. the policy assigned to the device itself;
2. the site's **Workstation Policy** or **Server Policy**, depending on the device type;
3. the client's workstation or server policy;
4. the default workstation or server policy, set in **Admin Center › Settings** under **Defaults**.

**Block policy inheritance** on a device, a site or a client stops the levels above it from applying. When a device's own check and a policy check measure the same thing — the same disk, the same service — the device's check wins, unless the policy is **Enforced**, in which case the policy's check wins. Tasks are not merged: the device runs its own tasks and those of every policy that reaches it.

See [Automation policies](https://wiki.datadike.com/sonar/administration/automation/automation-policies.md).

### Check

A measurement the agent takes on a schedule, with a pass or fail result: **CPU Load Check**, **Memory Check**, **Disk Space Check**, **Ping Check**, **Windows Service Check**, **Event Log Check**, **Script Check**. A check that fails a set number of times in a row raises an alert. Results are in the device's **Checks** tab. See [Checks](https://wiki.datadike.com/sonar/administration/automation/checks.md).

### Task

An automated task: a sequence of commands and scripts that the agent runs on a schedule — **Daily**, **Weekly**, **Monthly**, **Run Once** — or when a check fails (**On check failure**), once when the task first reaches a device (**Onboarding**), or only when you start it (**Manual**). Results are in the device's **Tasks** tab. See [Automated tasks](https://wiki.datadike.com/sonar/administration/automation/automated-tasks.md).

### Script

A reusable piece of code kept in **Management › Scripts** — PowerShell, Batch, Python, Shell, Nushell or Deno — that you run on a device, on many devices, as a check, or as a step of a task. See [Script library](https://wiki.datadike.com/sonar/administration/automation/scripts.md).

## Alerts

### Alert

A record that something needs attention: a device became overdue, a check failed, or a task failed. Each alert has a severity — **Informational**, **Warning** or **Error** — and stays open until it is resolved, either on its own when the check passes again or the device returns, or by hand. The bell in the header shows the most recent active alerts.

### Alert template

The rules that decide what happens when an alert opens and when it resolves: who receives an email or an SMS, whether the alert shows in the console, and which script or web request runs as an action. Templates are managed from the **Alerts** button in the header and assigned to a client, a site or an automation policy, or set as the default in **Admin Center › Settings**.

The template in effect for a device is the most specific one: the device's policy, then the site, then the client, then the default. At the site and client levels, a template carried by the assigned automation policy comes before one assigned directly. See [Alerts and alert templates](https://wiki.datadike.com/sonar/administration/automation/alerts.md).

## People and access

### SONAR user

A person who logs in to the console. SONAR users are managed in **Admin Center › Users**, sign in with a password and a second factor, and have one **role** each. Everything they change is written to the audit trail under their name.

### Role

What a SONAR user may do in the console: a set of permissions, grouped as **Agents**, **System**, **Automation & Tasks**, **Policies** and so on, plus **Client & Site Access** — the **Allowed Clients** and **Allowed Sites** the role is limited to. An empty list means all clients, or all sites, are allowed. **Super User** grants everything. Roles are managed in **Admin Center › Roles**. See [Roles and permissions](https://wiki.datadike.com/sonar/administration/identities/roles.md).

### Employee

A person who uses the managed computers — not someone who logs in to the console. SONAR creates an employee record the first time the productivity module sees a new Windows username in a session, and you complete it with a name, position, department and the sites the person works at. One employee can have several usernames. Employees are in **Management › Employees**, and the signed **terms** of use attached to them in **Management › Terms**. See [Employees](https://wiki.datadike.com/sonar/administration/employees/employees.md).

### Access policy

A set of Windows logon time windows — for example Monday to Friday, 08:00 to 18:00 — assigned to devices (one device, a site, a client, or all devices) and to users (a username, a username pattern, or the employees of a site). For those users on those devices, the productivity module blocks a logon outside the window, warns before the window ends, and signs the user out when it does, according to the policy's settings. Users that no policy covers are not affected. Access policies are in **Observability › Policies**. See [Access policies](https://wiki.datadike.com/sonar/administration/access/access-policies.md).

### Extension request

A request an end user sends from a Windows computer for more time outside their window. It appears in **Observability › Requests**, where you approve or deny it; an approved request gives that user a temporary allowance. See [Extension requests](https://wiki.datadike.com/sonar/administration/access/requests.md).

## Audit trail

The record of what happened through the console: objects created, changed and deleted, with their values before and after; logins; commands and scripts run; bulk actions; remote sessions. It is in **Reports & Audits › Audits**, and the records for one device are in its **Audits** tab. The device's **History** tab holds the output of the commands, scripts and tasks run on it. See [Audit trail](https://wiki.datadike.com/sonar/administration/audit/audit-trail.md).

## Distinctions worth getting right

**SONAR user is not employee.** A SONAR user logs in to the console and acts on devices. An employee uses a managed computer and never logs in to the console. The same person can be both, with two unrelated records.

**Automation policy is not access policy.** An automation policy gives devices checks and tasks — it is about looking after the computer. An access policy decides when people may log on to Windows — it is about the user. They are managed in different places (**Management › Automations** and **Observability › Policies**) and never affect each other.

**Check is not task.** A check measures and reports pass or fail; it can raise an alert. A task acts: it runs commands and scripts. The two meet when a task is set to run **On check failure**, which is how a failing check can fix its own cause.

**Role is not client scope alone.** A role both grants actions and limits them to its allowed clients and sites. Giving someone access to a client does not let them run scripts there unless the role also grants **Run Scripts**.

**Offline is not overdue.** Offline means the device has not reported for a while — a laptop that is switched off at night. Overdue means it has been gone long enough to raise an availability alert.

## Related pages

* [Architecture and components](https://wiki.datadike.com/sonar/get-started/architecture.md) — the software that runs these objects
* [A tour of the console](https://wiki.datadike.com/sonar/get-started/console-tour.md) — where each object lives
* [Onboard your first device](https://wiki.datadike.com/sonar/get-started/first-device.md) — the vocabulary in practice
* [Clients and sites](https://wiki.datadike.com/sonar/administration/devices/clients-and-sites.md)
* [Glossary](https://wiki.datadike.com/sonar/reference/glossary.md)
