Remove autorelease logic based on periodicity and update database schema

This commit is contained in:
emanuele-f 2019-07-12 12:45:02 +02:00
parent 85f4266f14
commit 5e0b8b496e
10 changed files with 44 additions and 129 deletions

View file

@ -33,8 +33,8 @@ function checkHostAlerts(granularity)
local info = host.getFullInfo()
local host_key = info.ip.."@"..info.vlan
local host_config = config_alerts[host_key]
local global_config = config_alerts["local_hosts"]
local has_configured_alerts = (table.len(host_config or global_config or {}) > 0)
local global_config = config_alerts["local_hosts"] or {}
local has_configured_alerts = (table.len(host_config or global_confi) > 0)
if has_configured_alerts then
for _, check in pairs(available_modules) do