mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Cleanup deprecated code
This commit is contained in:
parent
b831745cf8
commit
2434ae9e76
4 changed files with 1 additions and 84 deletions
|
|
@ -194,35 +194,6 @@ end
|
|||
|
||||
-- #################################
|
||||
|
||||
-- A redis set with mac addresses as keys
|
||||
function alert_utils.getActiveDevicesHashKey(ifid)
|
||||
return "ntopng.cache.active_devices.ifid_" .. ifid
|
||||
end
|
||||
|
||||
function alert_utils.deleteActiveDevicesKey(ifid)
|
||||
ntop.delCache(alert_utils.getActiveDevicesHashKey(ifid))
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
-- Keys used for Quota Check (see quota_exceeded.lua)
|
||||
|
||||
-- A redis set with host pools as keys
|
||||
function alert_utils.getActivePoolsHashKey()
|
||||
return "ntopng.cache.active_pools"
|
||||
end
|
||||
|
||||
function alert_utils.deleteActivePoolsKey()
|
||||
ntop.delCache(getActivePoolsHashKey())
|
||||
end
|
||||
|
||||
-- Redis hashe with key=pool and value=list of quota_exceed_items, separated by |
|
||||
function alert_utils.getPoolsQuotaExceededItemsKey()
|
||||
return "ntopng.cache.quota_exceeded_pools"
|
||||
end
|
||||
|
||||
-- #################################
|
||||
|
||||
function alert_utils.disableAlertsGeneration()
|
||||
if not isAdministratorOrPrintErr() then
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue