mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fixes active monitoring alerts
This commit is contained in:
parent
ce5f149297
commit
a0097167f4
4 changed files with 22 additions and 28 deletions
|
|
@ -2160,7 +2160,7 @@ function alert_utils.formatAlertNotification(notif, options)
|
|||
options = table.merge(defaults, options)
|
||||
|
||||
local msg = string.format("[%s][%d][%s]%s[%s]",
|
||||
formatEpoch(notif.alert_tstamp or 0),
|
||||
formatEpoch(notif.alert_tstamp_end or notif.alert_tstamp or 0),
|
||||
notif.ifid or -1, -- Use -1 to avoid issues with interfaceless use cases (for instance notification test)
|
||||
getInterfaceName(notif.ifid),
|
||||
ternary(options.show_severity == false, "", "[" .. alert_consts.alertSeverityLabel(notif.alert_severity, options.nohtml) .. "]"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue