mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Add message to restart ntopng after importing all conf. Improve max post data check. Remove unnecessary exported modules.
This commit is contained in:
parent
e90597f3e1
commit
e86fffcc58
6 changed files with 19 additions and 28 deletions
|
|
@ -7,19 +7,11 @@ package.path = dirs.installdir .. "/scripts/lua/modules/import_export/?.lua;" ..
|
|||
|
||||
require "lua_utils"
|
||||
|
||||
local plugins_utils = require("plugins_utils")
|
||||
|
||||
local all_import_export = require "all_import_export"
|
||||
local snmp_import_export = require "snmp_import_export"
|
||||
local am_import_export = plugins_utils.loadModule("active_monitoring", "am_import_export")
|
||||
local notifications_import_export = require "notifications_import_export"
|
||||
local scripts_import_export = require "scripts_import_export"
|
||||
local pool_import_export = require "pool_import_export"
|
||||
local infrastructure_import_export = require("infrastructure_import_export")
|
||||
|
||||
local rest_utils = require "rest_utils"
|
||||
local import_export_rest_utils = require "import_export_rest_utils"
|
||||
|
||||
local all_import_export = require "all_import_export"
|
||||
|
||||
--
|
||||
-- Export all configurations
|
||||
-- Example: curl -u admin:admin http://localhost:3000/lua/rest/v1/export/all/config.lua
|
||||
|
|
@ -36,11 +28,5 @@ end
|
|||
|
||||
local instances = {}
|
||||
instances["all"] = all_import_export:create()
|
||||
instances["snmp"] = snmp_import_export:create()
|
||||
instances["active_monitoring"] = am_import_export:create()
|
||||
instances["notifications"] = notifications_import_export:create()
|
||||
instances["scripts"] = scripts_import_export:create()
|
||||
instances["pool"] = pool_import_export:create()
|
||||
instances["infrastructure"] = infrastructure_import_export:create()
|
||||
import_export_rest_utils.export(instances, not isEmptyString(download))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue