mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Reload the periodic scripts when the configuration changes
This commit is contained in:
parent
87c336a4aa
commit
4621a8f409
7 changed files with 32 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
-- ##############################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue