mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Added tracker.log(), tracking host_get_json
This commit is contained in:
parent
9f756fa23f
commit
a087fb3bc9
5 changed files with 43 additions and 29 deletions
|
|
@ -8,6 +8,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
require "lua_utils"
|
||||
local json = require ("dkjson")
|
||||
local page_utils = require("page_utils")
|
||||
local tracker = require("tracker")
|
||||
|
||||
-- whether to return host statistics: on by default
|
||||
local host_stats = _GET["host_stats"]
|
||||
|
|
@ -123,5 +124,8 @@ else
|
|||
hj["flows_count"] = total
|
||||
end
|
||||
print(json.encode(hj, nil))
|
||||
|
||||
-- TRACKER HOOK
|
||||
tracker.log("host_get_json", {host_info["host"], host_info["vlan"]})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue