mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Add flow user scripts drops alert
This commit is contained in:
parent
b2d804c123
commit
2df9b34201
12 changed files with 123 additions and 5 deletions
|
|
@ -841,6 +841,20 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.userScriptCallsDrops(subdir, drops)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.alert_user_script_calls_drops,
|
||||
alert_severity = alert_consts.alert_severities.error,
|
||||
alert_granularity = alert_consts.alerts_granularities.min,
|
||||
alert_subtype = subdir,
|
||||
alert_type_params = {
|
||||
drops = drops,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.slowPurgeType(idle, idle_perc, threshold)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.alert_slow_purge,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue