# Service errors and warnings (classic)

Nexthink constantly analyzes the state of services and provides information with respect to potential errors or warnings.

### Connection-based services <a href="#serviceerrorsandwarnings-classic-connection-basedservices" id="serviceerrorsandwarnings-classic-connection-basedservices"></a>

{% hint style="info" %}
Applies to platforms | Windows | macOS |
{% endhint %}

|                       | Type                 | Description                                                                                                                                                                                          |
| --------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Failed connections    | Device-level error   | A device is marked in error state if it fails to connect to the destination for 60 seconds.                                                                                                          |
| Application crashes   | Device-level error   | A device is marked in error state if the binary used to connect to the service experiences an application crash.                                                                                     |
| Network response time | Entity-level warning | All active devices in an entity are marked in warning state if the average network response time for the entity is 3 times greater than the automatically computed baseline for the previous 7 days. |

### Web-based services <a href="#serviceerrorsandwarnings-classic-web-basedservices" id="serviceerrorsandwarnings-classic-web-basedservices"></a>

{% hint style="info" %}
Applies to platforms | Windows | macOS |
{% endhint %}

|                               | Type                 | Description                                                                                                                                                                                                      |
| ----------------------------- | -------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|                               |                      |                                                                                                                                                                                                                  |
| Application crashes           | Device-level error   | A device is marked in error state if the binary used to connect to the service experiences an application crash.                                                                                                 |
| Failed HTTP request (5xx)     | Entity-level error   | All active devices in an entity are marked in error state if the total number of failed HTTP requests with status 5xx is 3 times greater than the automatically computed baseline for the previous 7 days.       |
| Failed HTTP request (4xx)     | Entity-level warning | All active devices in an entity are marked in warning state if the total number of failed HTTP requests with status 4xx is 3 times greater than the automatically computed baseline for the previous 7 days.     |
| Redirected HTTP request (3xx) | Entity-level warning | All active devices in an entity are marked in warning state if the total number of redirected HTTP requests with status 3xx is 3 times greater than the automatically computed baseline for the previous 7 days. |
| Web request duration          | Entity-level warning | All active devices in an entity are marked in warning state if the average web request duration for the entity is 3 times greater than the automatically computed baseline for the previous 7 days.              |

### Computation of averages and detection of outliers <a href="#serviceerrorsandwarnings-classic-computationofaveragesanddetectionofoutliers" id="serviceerrorsandwarnings-classic-computationofaveragesanddetectionofoutliers"></a>

Metrics described in the table above as *Entity-level* errors and warnings are computed for a set of devices instead of individual devices. The goal is to reduce false positives on metrics which are subject to a high degree of variation. For instance, a device might experience a long network response time during a few connections, but this usually does not mean that the service is compromised for this device. By computing such metrics at the entity (or location) level, we can obtain a more accurate representation of the actual quality of service.

For every metric that is computed at the *Entity-level*, there are minimum limits defined for issuing warnings. These are absolute minimum values below which the service quality is guaranteed, even in the case of a baseline violation. When a metric has a baseline that is very low because the service has been performing extremely well over a period of time, even a computed average of 3 times higher than the baseline would not trigger a warning. This is because warnings are not issued when the average does not exceed the minimum limit.

In addition, an algorithm is put in place to detect and eliminate outliers. If a limited number of devices cause the mean value to exceed the error or warning level, the algorithm removes them from the computation of the baseline. The maximum number of devices that the algorithm can consider as outliers depends on the total number of devices in the Entity:

* 10% of the devices, if the total number of devices in the Entity is less than 100
* 10 devices, if the total number of devices in the Entity is greater than or equal to 100

***

RELATED CONCEPT

* [Service](https://docs.nexthink.com/platform/references/references-classic/glossary-classic/service-classic)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexthink.com/platform/references/references-classic/search-and-information-display-classic/service-errors-and-warnings-classic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
