mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Implements system alerts for not executed activities
This commit is contained in:
parent
53c032f9f6
commit
bd46b7268e
6 changed files with 67 additions and 81 deletions
|
|
@ -707,31 +707,6 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.slowPeriodicActivityType(duration_ms, max_duration_ms)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.alert_slow_periodic_activity,
|
||||
alert_severity = alert_consts.alert_severities.warning,
|
||||
alert_type_params = {
|
||||
duration_ms = duration_ms,
|
||||
max_duration_ms = max_duration_ms
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.periodicActivityNotExecuted(pending_since)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.alert_periodic_activity_not_executed,
|
||||
alert_severity = alert_consts.alert_severities.warning,
|
||||
alert_type_params = {
|
||||
pending_since = pending_since,
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.ipOutsideDHCPRangeType(router_info, mac, client_mac, sender_mac)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.alert_ip_outsite_dhcp_range,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue