# Settings

## Activation

{% hint style="info" %}
Alerting is turned **off** by default on the platform.
{% endhint %}

To activate this feature

* Open tools menu

<div align="left"><figure><img src="/files/vTlfxOUujU3ED19qYJfj" alt=""><figcaption></figcaption></figure></div>

* Click on **Global settings**

<div align="left"><figure><img src="/files/9wXHX0cMClM0zSBv4tDG" alt=""><figcaption></figcaption></figure></div>

* Then

<figure><img src="/files/XAZ9s17Lwf5WhSb1Op4r" alt=""><figcaption><p>Alerting Settings</p></figcaption></figure>

{% hint style="info" %}
You can opt for notifications regarding new problems **and/or** problem resolutions.
{% endhint %}

## Notification types

You have the option to receive notifications in three different ways.

{% hint style="info" %}
Problems persistently appear on the UI after creation, remaining visible even without an active notification.
{% endhint %}

### Email

Prior to email report delivery, configuring an [SMTP server](/manual/implementation/platform-usage/configuration/smtp.md) is necessary.

<div align="center" data-full-width="false"><figure><img src="/files/CXX2Gty2uUY6gHKTUg0X" alt=""><figcaption></figcaption></figure></div>

### Webhook

A http **POST** request is sent to the specified url with a body containing the following fields

```json
{
        "event_time": "2022-10-05 10:19:27",
        "notification_type": "PROBLEM",
        "pg_instance": "server@crm-production",
        "check_name": "memory_usage",
        "check_state": "CRITICAL",
        "message": "Memory usage: 95% used (1730MB/1835MB) [>=95% - CRITICAL]",
        "extra_data": {
            "value": 96,
            "used": 2512,
            "total": 3000
        }
}
```

*The `extra_data` field can contain different fields depending on the check\_name*

### Custom Script

The script must be executable and present on the platform server. It is executed at each notification and receive the following parameters:

1. Event time
2. Notification type
3. PostgreSQL instance
4. Check name
5. State
6. Message

{% hint style="info" %}
A [GitHub repository](https://github.com/datasentinel/datasentinel_toolkit) with a comprehensive toolkit that includes usage examples is accessible.\
\
The toolkit comes pre-installed on the on-premises platform and can be found at the following directory: **`/datasentinel/soft/datasentinel_toolkit`**.
{% endhint %}


---

# 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.datasentinel.io/manual/features/key-features/alerting/settings.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.
