mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Cleaned up the code from plugin_utils
This commit is contained in:
parent
f1e8091928
commit
57a85de50e
105 changed files with 620 additions and 918 deletions
|
|
@ -7,15 +7,11 @@ local dirs = ntop.getDirs()
|
|||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
|
||||
require "lua_utils"
|
||||
local alert_utils = require "alert_utils"
|
||||
local json = require("dkjson")
|
||||
local ts_utils = require("ts_utils_core")
|
||||
local plugins_utils = require("plugins_utils")
|
||||
local periodic_activities_utils = require "periodic_activities_utils"
|
||||
local cpu_utils = require("cpu_utils")
|
||||
local callback_utils = require("callback_utils")
|
||||
local recording_utils = require("recording_utils")
|
||||
local alert_consts = require("alert_consts")
|
||||
local rest_utils = require("rest_utils")
|
||||
|
||||
--
|
||||
|
|
@ -113,7 +109,7 @@ function dumpInterfaceStats(ifid)
|
|||
res["has_alerts"] = ifstats["has_alerts"]
|
||||
res["ts_alerts"] = {}
|
||||
|
||||
if ts_utils.getDriverName() == "influxdb" and plugins_utils.hasAlerts(getSystemInterfaceId(), {entity = alert_consts.alertEntity("influx_db")}) then
|
||||
if ts_utils.getDriverName() == "influxdb" then
|
||||
res["ts_alerts"]["influxdb"] = true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue