ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.16k stars 648 forks source link

Create Notification Template #4265

Open lucaderi opened 4 years ago

lucaderi commented 4 years ago

As of today, alert messages are not configurable. Example

[30/07/2020 21:08:05][Error][Threshold Cross][Released] Minute host_score crossed by host 192.168.1.122 [1035 > 999] [30/07/2020 21:09:06][Error][Threshold Cross][Engaged] Minute host_score crossed by host 192.168.1.122 [1035 > 999]

It is requested to implement a template system that allows people to edit the notification content to personalise it and make it prettier. I believe a Lua-valid template file with variables expanded via dofile() is a simple yet effective way of addressing this request

simonemainardi commented 4 years ago

For the email alert endpoint, it will be desirable to have the email template specified as well. Desirable to re-use the current plugin engine already used inside ntopng.