mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
44 lines
1.3 KiB
Lua
44 lines
1.3 KiB
Lua
--
|
|
-- (C) 2013-20 - ntop.org
|
|
--
|
|
|
|
local dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
if(ntop.isPro()) then
|
|
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
|
|
require "snmp_utils"
|
|
end
|
|
|
|
require "lua_utils"
|
|
require "graph_utils"
|
|
local page_utils = require("page_utils")
|
|
local internals_utils = require "internals_utils"
|
|
|
|
-- Save the interface id of the currently selected NON-system interface
|
|
-- so that it can be passed to the url to maintain the functionalities of
|
|
-- the header and footer
|
|
local ifId = interface.getId()
|
|
|
|
sendHTTPContentTypeHeader('text/html')
|
|
|
|
page_utils.set_active_menu_entry(page_utils.menu_entries.system_status, {ifname = getSystemInterfaceName()})
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
|
|
|
local nav_url = ntop.getHttpPrefix().."/lua/system_periodic_script_details.lua?ifid="..ifId
|
|
local title = i18n("internals.system_iface_periodic_scripts")
|
|
|
|
page_utils.print_navbar(title, nav_url,
|
|
{
|
|
{
|
|
active = page == "historical" or not page,
|
|
page_name = "historical",
|
|
label = "<i class='fas fa-lg fa-chart-area'></i>",
|
|
},
|
|
}
|
|
)
|
|
|
|
internals_utils.printPeriodicActivityDetails(getSystemInterfaceId(), nav_url)
|
|
|
|
dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")
|