Add message to restart ntopng after importing all conf. Improve max post data check. Remove unnecessary exported modules.

This commit is contained in:
Alfredo Cardigliano 2021-03-08 11:14:44 +01:00
parent e90597f3e1
commit e86fffcc58
6 changed files with 19 additions and 28 deletions

View file

@ -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))