-- -- (C) 2013-20 - ntop.org -- local dirs = ntop.getDirs() package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path require "lua_utils" local alert_utils = require "alert_utils" local page_utils = require("page_utils") local alerts_api = require("alerts_api") sendHTTPContentTypeHeader('text/html') page_utils.set_active_menu_entry(page_utils.menu_entries.detected_alerts) alert_utils.checkDeleteStoredAlerts() dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") page_utils.print_page_title(i18n('alerts_dashboard.alerts')) local has_engaged_alerts = alert_utils.hasAlerts("engaged", alert_utils.getTabParameters(_GET, "engaged")) local has_past_alerts = alert_utils.hasAlerts("historical", alert_utils.getTabParameters(_GET, "historical")) local has_flow_alerts = alert_utils.hasAlerts("historical-flows", alert_utils.getTabParameters(_GET, "historical-flows")) local has_disabled_alerts = alerts_api.hasEntitiesWithAlertsDisabled(interface.getId()) if ntop.getPrefs().are_alerts_enabled == false then print("