mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Implements interface and collection stats reset for ZMQ interfaces
This commit is contained in:
parent
1bb3ec4a5f
commit
77c1f85cd3
5 changed files with 46 additions and 8 deletions
|
|
@ -1,8 +1,8 @@
|
|||
--
|
||||
-- (C) 2013-18 - ntop.org
|
||||
-- (C) 2013-19 - ntop.org
|
||||
--
|
||||
|
||||
dirs = ntop.getDirs()
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
|
||||
|
|
@ -11,8 +11,9 @@ local json = require("dkjson")
|
|||
sendHTTPContentTypeHeader('application/json')
|
||||
|
||||
local action = _POST["resetstats_mode"]
|
||||
local ifid = _POST["ifid"]
|
||||
|
||||
interface.select(ifname)
|
||||
interface.select(ifid)
|
||||
|
||||
local res = { ["status"] = "ok" }
|
||||
if((action ~= nil) and (haveAdminPrivileges())) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue