mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Handles extractions from recording processes non managed by ntopng
Implements #2276
This commit is contained in:
parent
73fe73c0d9
commit
8221d14e0f
14 changed files with 145 additions and 55 deletions
|
|
@ -15,13 +15,13 @@ local ifstats = interface.getStats()
|
|||
local enabled = false
|
||||
local running = false
|
||||
local restart_req = false
|
||||
local manual_service_active = recording_utils.isManualServiceActive(ifstats.id)
|
||||
local manual_service = recording_utils.isManualServiceActive(ifstats.id) and not recording_utils.isActive(ifstats.id)
|
||||
|
||||
if _POST["action"] ~= nil and _POST["action"] == "restart" then
|
||||
restart_req = true
|
||||
end
|
||||
|
||||
if manual_service_active then
|
||||
if manual_service then
|
||||
enabled = true
|
||||
running = true
|
||||
elseif recording_utils.isEnabled(ifstats.id) then
|
||||
|
|
@ -110,7 +110,7 @@ end
|
|||
|
||||
print("<tr><th nowrap>"..i18n("about.last_log").."</th><td><code>\n")
|
||||
|
||||
local log = recording_utils.log(ifstats.id, 32, manual_service_active)
|
||||
local log = recording_utils.log(ifstats.id, 32, manual_service)
|
||||
local logs = split(log, "\n")
|
||||
for i = 1, #logs do
|
||||
local row = split(logs[i], "]: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue