mirror of
https://github.com/ntop/ntopng.git
synced 2026-08-22 06:43:23 +00:00
Move internal alerts queue from redis to C
This commit is contained in:
parent
df0556cb87
commit
c19bda5425
6 changed files with 22 additions and 8 deletions
|
|
@ -19,7 +19,6 @@ local alert_endpoints = require "alert_endpoints_utils"
|
|||
local flow_consts = require "flow_consts"
|
||||
local user_scripts = require "user_scripts"
|
||||
|
||||
local store_alerts_queue = "ntopng.push_alerts_queue"
|
||||
local shaper_utils = nil
|
||||
|
||||
if(ntop.isnEdge()) then
|
||||
|
|
@ -2728,8 +2727,7 @@ function checkStoreAlertsFromC(deadline)
|
|||
end
|
||||
|
||||
while(os.time() <= deadline) do
|
||||
-- TODO add max_length check and alert
|
||||
local message = ntop.lpopCache(store_alerts_queue)
|
||||
local message = ntop.popInternalAlerts()
|
||||
|
||||
if((message == nil) or (message == "")) then
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue