Fixes nil value on score threshold alert

This commit is contained in:
MatteoBiscosi 2023-02-03 13:24:28 +01:00
parent 35a2a690f7
commit 1f88fe593d

View file

@ -59,20 +59,20 @@ function host_alert_score_threshold.format(ifid, alert, alert_type_params)
end
local flows_info_href = '(check live: <a href="' .. ntop.getHttpPrefix().."/lua/flows_stats.lua?host="..host..'" data-placement="bottom" title="Live Flow Explorer"><i class="fas fa-search-plus"></i></a>)'
local ifName = ifid
if ntop.isClickHouseEnabled() then
local extra_params = {
ifid = {
value = ifName,
value = ifid,
operator = "eq"
},
epoch_begin = {
value = _GET["epoch_begin"],
value = alert.tstamp,
operator = "eq"
},
epoch_end = {
value = _GET["epoch_end"],
value = alert.tstamp_end,
operator = "eq"
}
}