mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Finishes rework of ArpStatsHashMatrix
This commit is contained in:
parent
ab9f9326da
commit
0a903c97ce
11 changed files with 93 additions and 139 deletions
14
scripts/lua/get_arp_matrix_data.lua
Normal file
14
scripts/lua/get_arp_matrix_data.lua
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
--
|
||||
-- (C) 2013-18 - ntop.org
|
||||
--
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
|
||||
local json = require("dkjson")
|
||||
|
||||
local matrix = interface.getArpStatsMatrixInfo()
|
||||
|
||||
sendHTTPContentTypeHeader('application/json')
|
||||
print(json.encode(matrix, {indent = true}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue