mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Updates ntopctl to handle service n2disk-ntopng
This commit is contained in:
parent
11a99722e0
commit
fcc66a4b05
4 changed files with 48 additions and 34 deletions
|
|
@ -743,7 +743,7 @@ function formatRawUserActivity(record, activity_json)
|
|||
|
||||
elseif decoded.name == 'disableService' and decoded.params[1] ~= nil then
|
||||
local service_name = decoded.params[1]
|
||||
if service_name == 'n2disk' and decoded.params[2] ~= nil then
|
||||
if service_name == 'n2disk-ntopng' and decoded.params[2] ~= nil then
|
||||
local service_instance = decoded.params[2]
|
||||
return i18n('user_activity.recording_disabled', {user=user, ifname=service_instance})
|
||||
elseif service_name == 'n2n' then
|
||||
|
|
@ -752,7 +752,7 @@ function formatRawUserActivity(record, activity_json)
|
|||
|
||||
elseif decoded.name == 'enableService' and decoded.params[1] ~= nil then
|
||||
local service_name = decoded.params[1]
|
||||
if service_name == 'n2disk' and decoded.params[2] ~= nil then
|
||||
if service_name == 'n2disk-ntopng' and decoded.params[2] ~= nil then
|
||||
local service_instance = decoded.params[2]
|
||||
return i18n('user_activity.recording_enabled', {user=user, ifname=service_instance})
|
||||
elseif service_name == 'n2n' then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue