mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Fixes nil value on score threshold alert
This commit is contained in:
parent
35a2a690f7
commit
1f88fe593d
1 changed files with 4 additions and 4 deletions
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue