mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-21 01:54:34 +00:00
Added the ability to set custom alert score
This commit is contained in:
parent
7078912d43
commit
ddd449ea90
75 changed files with 1586 additions and 1600 deletions
|
|
@ -185,7 +185,7 @@ void CustomFlowLuaScript::checkFlow(Flow *f, LuaEngine *lua) {
|
|||
u_int8_t c_score, s_score;
|
||||
risk_percentage cli_score_pctg = CLIENT_FAIR_RISK_PERCENTAGE;
|
||||
|
||||
computeCliSrvScore(alert_type, cli_score_pctg, &c_score, &s_score);
|
||||
computeCliSrvScore(ntop->getFlowAlertScore(alert_type.id), cli_score_pctg, &c_score, &s_score);
|
||||
|
||||
f->triggerAlertAsync(alert_type, c_score, s_score);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue