Docs update: delivering alerts to recipients

This commit is contained in:
Simone Mainardi 2020-11-02 16:04:36 +01:00
parent d07ca2c8a8
commit cc2aff83c5
5 changed files with 51 additions and 18 deletions

View file

@ -1,35 +1,68 @@
Delivering Alerts to Recipients
===============================
ntopng delivers alert to recipients. Recipients are configurable and
are always associated to one, and only one endpoint. Endpoints are
used to specify configurations that are common to multiple recipients.
Recipients and endpoints are managed from the system interface.
Once evaluated, alerts are sent to recipients. Recipients, along with their associated endpoints, are managed from the system interface.
.. figure:: ../img/alerts_endpoints_recipients_management.png
:align: center
:alt: Endpoints and Recipients Management
Configuring Recipients
----------------------
Recipients are associated to one, and only one endpoint, but the same endpoint can be shared across multiple recipients.
Each endpoint can be configured to receive alerts:
Endpoints and recipients have a type and a set of configuration parameters which depends on the type. All the available endpoints and recipients are described in the next section.
- With a severity greater than or equal to a minimum severity
- With one or multiple categories
Endpoints contain common configuration which is then extended with recipients configuration. For example, the *email* endpoint contains the SMTP server address, whereas *email* recipients contain destination email addressses. This allows the creation of multiple *email* recipients, all sharing the same endpoint and, thus, the same SMTP server address.
Once recipients are configured, ntopng will start delivering them only the subset of alerts they are intended to receive.
An extensive example can bee seen at https://www.ntop.org/ntopng/using-ntopng-recipients-and-endpoints-for-flexible-alert-handling/.
TODO: refine
Builtin
-------
See https://www.ntop.org/ntopng/using-ntopng-recipients-and-endpoints-for-flexible-alert-handling/
for a full example.
A builtin SQLite recipient, along with its builtin SQLite endpoint, is always present. This is used to deliver alerts to the internal database and have them accessible inside the web UI. Engaged alerts are not affected by the builtin pair and are always shown. For example, the following alerts are shown under *Flow Alerts* because they have been delivered to the builtin recipient
Associating Recipients to Pools
-------------------------------
.. figure:: ../img/alerts_builtin_historical_flows.png
:align: center
:alt: Builtin Recipient - Flow Alerts
The builtin recipient cannot be edited or deleted but it can be associated to pools. To continue the example above, alerts shown under *Flow Alerts* have been delivered to the builtin recipient because that recipient was associated to the Default Flow Pool.
.. figure:: ../img/alerts_builtin_historical_flows_pool_association.png
:align: center
:alt: Builtin Recipient for the Default Flow Pool
The builtin recipient, as any other recipient, can be deassociated from pools, too. This will effectively cause alerts not to be delivered to the internal databse. By default, the builtin recipient is associated to all Default pools.
Delivery Criteria
-----------------
Each recipient can be configured to receive alerts on the basis of two criteria:
- Severity-based
- Type-based
Severity-based
~~~~~~~~~~~~~~
A minimum severity is indicated when creating/editing the recipient. All alerts having the indicated (or an higher severity) will be delivered to the recipient.
.. figure:: ../img/alerts_recipient_criteria_minimum_severity.png
:align: center
:alt: Severity-Based
Type-based
~~~~~~~~~~
Multiple types can be indicated when creating/editing the recipient. All alerts belonging to the indicated types will be delivered to the recipient.
.. figure:: ../img/alerts_recipient_criteria_category_filter.png
:align: center
:alt: Severity-Based
Recipients are associated to pools. A recipient can be associated to multiple pools.
TODO: refine.

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB