Disk space reclaim and defrag of alerts db

This commit is contained in:
Simone Mainardi 2019-10-17 12:12:28 +02:00
parent 9d071c44c9
commit f8443ff03d
7 changed files with 66 additions and 4 deletions

View file

@ -1461,6 +1461,16 @@ end
-- #################################
function optimizeAlerts()
if(not areAlertsEnabled()) then
return
end
interface.optimizeAlerts()
end
-- #################################
function housekeepingAlertsMakeRoom(ifId)
local prefs = ntop.getPrefs()
local max_num_alerts_per_entity = prefs.max_num_alerts_per_entity