mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added uptime check for no_if_activity alert
This commit is contained in:
parent
b8295745bd
commit
eba11253f5
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ local script = {
|
|||
-- #################################################################
|
||||
|
||||
local function check_interface_activity(params)
|
||||
if ntop.getUptime() < 300 then
|
||||
return -- Uptime less then 5 minutes, return, maybe it's still updating
|
||||
end
|
||||
|
||||
if interface.isPcapDumpInterface() or interface.isDatabaseViewInterface() then
|
||||
return -- Not a live interface, skip this check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue