-- -- (C) 2013-19 - 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" require "alert_utils" local page_utils = require("page_utils") local os_utils = require "os_utils" local ts_utils = require "ts_utils" local hash_table = _GET["hash_table"] local ifstats = interface.getStats() local ifId = ifstats.id sendHTTPContentTypeHeader('text/html') page_utils.print_header() dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua") if(hash_table == nil) then print("
Hash_Table parameter is missing (internal error ?)
") return end if(not ts_utils.exists("ht:state", {ifid = ifId, hash_table = hash_table})) then print("
No available stats for hash table "..hash_table.."
") return end print [[
]] local schema = _GET["ts_schema"] or "ht:state" local selected_epoch = _GET["epoch"] or "" local url = ntop.getHttpPrefix()..'/lua/hash_table_details.lua?ifid='..ifId..'&hash_table='..hash_table..'&page=historical' local tags = { ifid = ifId, hash_table = hash_table, } drawGraphs(ifId, schema, tags, _GET["zoom"], url, selected_epoch, { timeseries = { {schema = "ht:state", label = i18n("internals.hash_entries")}, {schema = "custom:ht:lua_calls", label = i18n("internals.lua"), metrics_labels = { i18n("duration"), i18n("graphs.num_calls") }, }, } }) dofile(dirs.installdir .. "/scripts/lua/inc/footer.lua")