mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Rework RTT to use two separate parameters for the key
This commit is contained in:
parent
3f8118de75
commit
9f01dd4afe
9 changed files with 129 additions and 71 deletions
|
|
@ -2226,8 +2226,13 @@ function formatAlertMessage(ifid, alert)
|
|||
|
||||
if(msg) then
|
||||
if(alert_consts.getAlertType(alert.alert_type) == "alert_ping_issues") then
|
||||
msg = msg .. ' <a href="'.. ntop.getHttpPrefix() ..'/plugins/rtt_stats.lua?rtt_host='..
|
||||
alert.alert_entity_val .. '&page=overview"><i class="fas fa-cog" title="'.. i18n("edit_configuration") ..'"></i></a>'
|
||||
local rtt_utils = require("rtt_utils")
|
||||
local host = rtt_utils.key2host(alert.alert_entity_val)
|
||||
|
||||
if host and host.measurement then
|
||||
msg = msg .. ' <a href="'.. ntop.getHttpPrefix() ..'/plugins/rtt_stats.lua?rtt_host='..
|
||||
host.host .. '&measurement='.. host.measurement ..'&page=overview"><i class="fas fa-cog" title="'.. i18n("edit_configuration") ..'"></i></a>'
|
||||
end
|
||||
else
|
||||
msg = msg .. getConfigsetAlertLink(alert_json)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue