Add mapScoreToSeverity call

This commit is contained in:
Alfredo Cardigliano 2021-05-05 10:40:10 +02:00
parent 4cb19a1be8
commit 24321cba24
15 changed files with 26 additions and 30 deletions

View file

@ -165,7 +165,7 @@ function syslog.dequeueRecipientAlerts(recipient, budget, high_priority)
-- Most recent notifications first
for _, notification in ipairs(notifications) do
syslog.sendMessage(settings, notification.alert, notification.severity)
syslog.sendMessage(settings, notification.alert, ntop.mapScoreToSeverity(notification.score))
end
return {success = true, more_available = true}