Fix alert config on local hosts

This commit is contained in:
emanuele-f 2019-07-17 19:05:01 +02:00
parent 608676fd0d
commit c5e597ea75
9 changed files with 13 additions and 1 deletions

View file

@ -1247,6 +1247,11 @@ function drawAlertSourceSettings(entity_type, alert_source, delete_button_msg, d
break
end
end
end
if(check_module.local_only and options.remote_host) then
show_input = false
end
if not gui_conf or not show_input then
goto next_module
@ -1268,7 +1273,6 @@ function drawAlertSourceSettings(entity_type, alert_source, delete_button_msg, d
print("</td></tr>\n")
::next_module::
end
end
if (entity_type == "host") and (tab == "min") then
local vals = table.merge(anomalies, global_anomalies)