Reload the periodic scripts when the configuration changes

This commit is contained in:
emanuele-f 2019-12-31 19:31:03 +01:00
parent 87c336a4aa
commit 4621a8f409
7 changed files with 32 additions and 1 deletions

View file

@ -990,6 +990,9 @@ function alerts_api.setEntityAlertsDisabledBitmap(ifid, entity_type, entity_val,
-- Invalidate the disabled alerts cache
ntop.delCache(getInterfaceHasDisabledAlertsKey(ifid))
-- Reload the periodic scripts as the configuration has changed
ntop.reloadPeriodicScripts()
end
-- ##############################################
@ -1111,6 +1114,9 @@ function alerts_api.setHostDisabledStatusBitmap(ifid, hostkey, bitmap)
else
ntop.setHashCache(hash, hostkey, string.format("%u", bitmap))
end
-- Reload the periodic scripts as the configuration has changed
ntop.reloadPeriodicScripts()
end
-- ##############################################