Fix host alert configuration issues

This commit is contained in:
emanuele-f 2017-05-04 16:30:39 +02:00
parent 21171bbd73
commit 10be6c2190
6 changed files with 10 additions and 7 deletions

View file

@ -762,7 +762,10 @@ function drawAlertSourceSettings(alert_source, delete_button_msg, delete_confirm
to_save = false
if((_POST["to_delete"] ~= nil) and (_POST["SaveAlerts"] == nil)) then
-- Delete spcific settings
-- Delete threshold configuration
ntop.delHashCache(get_alerts_hash_name(tab, ifname), alert_source)
-- Delete specific settings
if source.source == "host" then
ntop.delCache(anomaly_config_key)
interface.refreshHostsAlertsConfiguration()