mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes various lua memory issues
This commit is contained in:
parent
eb52f62b1e
commit
5edfdeedcd
53 changed files with 336 additions and 551 deletions
|
|
@ -4,10 +4,8 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
|
||||
local checks = require("checks")
|
||||
local syslog_utils = require "syslog_utils"
|
||||
|
||||
local syslog_module = {
|
||||
-- Script category
|
||||
|
|
@ -44,6 +42,7 @@ end
|
|||
|
||||
-- The function below is called for each received alert
|
||||
function syslog_module.hooks.handleEvent(syslog_conf, message, host, priority)
|
||||
local syslog_utils = require "syslog_utils"
|
||||
local num_unhandled = 0
|
||||
local num_alerts = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,10 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
|
||||
require "ntop_utils"
|
||||
local json = require "dkjson"
|
||||
local checks = require("checks")
|
||||
local syslog_utils = require "syslog_utils"
|
||||
|
||||
local syslog_module = {
|
||||
-- Script category
|
||||
|
|
@ -45,6 +44,7 @@ end
|
|||
|
||||
-- The function below is called for each received alert
|
||||
function syslog_module.hooks.handleEvent(syslog_conf, message, host, priority)
|
||||
local syslog_utils = require "syslog_utils"
|
||||
local num_unhandled = 0
|
||||
local num_alerts = 0
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,9 @@
|
|||
|
||||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
require "flow_utils"
|
||||
|
||||
require "ntop_utils"
|
||||
local json = require ("dkjson")
|
||||
local alert_severities = require "alert_severities"
|
||||
local checks = require("checks")
|
||||
|
||||
local syslog_module = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue