mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fix flow dump alert
This commit is contained in:
parent
d3854b69fa
commit
ee253b4569
2 changed files with 11 additions and 11 deletions
|
|
@ -195,13 +195,15 @@ end
|
|||
--- if nIndex is not able to start/run/dump
|
||||
--- @param container table The table where the notification will be inserted
|
||||
function defined_alert_notifications.flow_dump(container)
|
||||
if isAdministrator() and
|
||||
prefs.is_dump_flows_enabled and
|
||||
prefs.is_dump_flows_runtime_enabled and
|
||||
not interface.isFlowDumpDisabled and
|
||||
not interface.isFlowDumpRunning then
|
||||
table.insert(container, create_flow_dump_alert_notification())
|
||||
end
|
||||
local ifstats = interface.getStats()
|
||||
|
||||
if isAdministrator() and
|
||||
prefs.is_dump_flows_enabled and
|
||||
prefs.is_dump_flows_runtime_enabled and
|
||||
not ifstats.isFlowDumpDisabled and
|
||||
not ifstats.isFlowDumpRunning then
|
||||
table.insert(container, create_flow_dump_alert_notification())
|
||||
end
|
||||
end
|
||||
|
||||
-- ###############################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue