mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Fixed netbox startup
This commit is contained in:
parent
1c79303502
commit
3d5707ac40
2 changed files with 13 additions and 13 deletions
|
|
@ -246,16 +246,4 @@ vs_utils.restore_host_to_scan()
|
|||
-- Reload Alert Exclusions
|
||||
ntop.reloadAlertExclusions()
|
||||
|
||||
if ntop.isPro() and isNetBoxEnabled() then
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/modules/?.lua;" .. package.path
|
||||
local netbox_manager = require("netbox_manager")
|
||||
|
||||
traceError(TRACE_NORMAL, TRACE_CONSOLE, "[NetBox] Initializing...\n")
|
||||
if(netbox_manager.initialization_device_roles() == true) then
|
||||
traceError(TRACE_NORMAL, TRACE_CONSOLE, "[NetBox] Initialization completed")
|
||||
else
|
||||
traceError(TRACE_NORMAL, TRACE_CONSOLE, "[NetBox] Initialization failed")
|
||||
end
|
||||
end
|
||||
|
||||
traceError(TRACE_NORMAL, TRACE_CONSOLE, "Completed startup.lua")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue