Improve RTT alert information

Closes #3555
This commit is contained in:
emanuele-f 2020-03-16 12:21:07 +01:00
parent 71e13cdc83
commit a86b215485
3 changed files with 8 additions and 3 deletions

View file

@ -2212,7 +2212,12 @@ function formatAlertMessage(ifid, alert)
end
if(msg) then
msg = msg .. getConfigsetAlertLink(alert_json)
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>'
else
msg = msg .. getConfigsetAlertLink(alert_json)
end
end
return(msg or "")