doc/src/user_interface/shared/policies/traffic_rules.rst
.. _TrafficRules:
ntopng can trigger customizable alerts, based on timeseries. This is useful to identify missbehaviors from devices, interfaces...
.. note::
This feature is available only from Enterprise M license or superior.
.. figure:: ../../../img/traffic_rules.png :align: center :alt: Configured Traffic Rules
Configured Traffic Rules
Here some example of rules:
Whenever a condition is met, ntopng is going to trigger an alert.
.. note:: To page is accessible from the Settings -> Traffic Rules
.. figure:: ../../../img/traffic_rules_entry.png :align: center :alt: Access Traffic Rules
Access Traffic Rules
Available Rules ^^^^^^^^^^^^^^^
The rules can be set for each timeseries currently available in ntopng. The rules can be configured for:
Configure Rules ^^^^^^^^^^^^^^^
To add a new rule, click the '+' symbol above the table
.. figure:: ../../../img/add_traffic_rule.png :align: center :alt: Add a Traffic Rule
Add a Traffic Rule
At this point, fill the fields with the correct informations:
.. note:: The available metrics to be analyzed depend on the available timeseries; this means that if the Application Timeseries are not enabled from the preferences, it's not possible to configure/trigger a rule based on Applications
.. figure:: ../../../img/add_traffic_rule_modal.png :align: center :alt: Example of Traffic Rule, triggering an alert when BitTorrent traffic is seen
Example of Traffic Rule, triggering an alert when BitTorrent traffic is seen
From now on, a new entry with the configured fields is going to be added to the table and whenever the threshold is exceeded a new alert is going to be triggered.
Edit/Delete Rules ^^^^^^^^^^^^^^^^^
It is moreover possible to edit or delete an already created rule.
To do so, click on the action button of the rule that needs changes and select the desired action:
Edit: It is possible to change the rule of an already existing one; the modal is the same as the one used to add a new rule, so please refer to the above section;Delete: It is possible to remove a rule; when removed the alert is not going to be triggered anymore;.. figure:: ../../../img/delete_traffic_rule.png :align: center :alt: Remove a Traffic Rule
Remove a Traffic Rule
.. note::
Traffic rules are evaluated according to the rule frequency specified. For instance Daily rules are evaluated every midnight considering the traffic of the previous day.