doc/src/basic_concepts/alerts.rst
.. _BasicConceptAlerts:
ntopng generates alerts to report the occurrence of events and user-configurable thresholds. Bahavioral Checks are responsible for the generation of alerts. Enabling and disabling a Check enables or disables the corresponding alerts.
Alerts include, but are not limited to:
Certain alerts are configurable. For example, alerts can be triggered when certain user-configurable thresholds are crossed. As soon as ntopng detects a certain threshold is crossed, it immediately triggers the corresponding alert.
Examples of thresholds include:
ntopng checks perform the evaluation of thresholds periodically, at predefined time intervals.
Alerts associated with a threshold have a duration, that is, they are active for a certain period of time. This period of time starts then the threshold is first met and stops when the threshold is no longer met. For this reason, such alerts are said to be engaged or past, depending on whether the triggering threshold is still met or not.
.. figure:: ../img/behavior_alert_example.png :align: center :alt: Alert of a Network Interface with an Unexpected Behavior
Alert of a Network Interface with an Unexpected Behavior
Unlike other alert families, usually based on a static threshold or check, bahavioral checks have the ability to learn throught the time and change their threshold dinamically.
This is achived by using one of the three foresighting alghoritm developed by nDPI: Simple Exponential Smoothing, Double Exponential Smoothing, Triple Exponential Smoothing (Holt-Winters alghoritm).
These alghoritms have the ability to foresight the future and give a prediction of the analized value. Based on this foresighted value the alert is triggered.
The alert is triggered only if the real value is lesser or greater then certain thresholds that nDPI calculates (it gives a lower and upper bound).
.. note::
Behavior Alerts are available only with ntopng Enterprise L license.
.. figure:: ../img/behavior_graph_example.png :align: center :alt: Timeserie of a Network Interface with an Unexpected Behavior
Timeserie of a Network Interface with an Unexpected Behavior
ntopng keeps track of user activities that are related to system management and security, storing them as alerts. These activities include:
User activities are available in the :ref:BasicConceptSystemInterface, under the Past Alerts page:
.. figure:: ../img/web_gui_alerts_user_activities.png :align: center :alt: Past Alerts Page with User Activities
Past Alerts Page with User Activities
Event and threshold alerts are always associated with a severity that tells the importance of such occurrence. For example, the contact of a blacklisted host is emphasized with a warning, whereas a threshold crossed by an host is highlighted with an error. Currently, severity levels available those defined in RFC 3164, namely:
Every alert has an entity (subject for which the alert has been generated). The list of entities supported by ntopng are:
For example, an alert triggered for host :code:192.168.1.2 that has exceeded a traffic threshold will have "host" as entity and "192.168.1.2" as entity value. Similarly, network :code:192.168.2.0/24 that has exceeded a traffic threshold will have "network" as entity and "192.168.2.0/24" as entity value.
Entities are not shown when browsing ntopng alert pages as they are clear from the context and alert messages. Understanding how entities work can be useful when propagating alerts to third-party endpoints such as syslog.
The full list of alerts is available under the Settings section, page Behavioral Checks.
.. figure:: ../img/basic_concepts_alert_definitions.png :align: center :alt: Alert Types
Alerts are not only available within the ntopng web GUI, they can also be propagated to the outside using recipients that include mail, slack and syslog. To see the configuration details necessary to use recipients refer to :ref:DeliveringAlertsToRecipients.
.. _device protocols: ../advanced_features/device_protocols.html
ntopng features a built-in Alerts Explorer for navigating and analysing alerts, for further information please read the :ref:AlertsExplorer section.
.. figure:: ../img/basic_concepts_alerts_flow_alerts.png :align: center :alt: Alerts Explorer
Alerts Explorer