Fixes lua nil-call exception upon InfluxDB errors

Fixes
WARNING: Script failure [/home/simone/ntopng/scripts/callbacks/system/timeseries.lua][/home/simone/ntopng/scripts/lua/modules/alerts_api.lua:223: attempt to call a nil value (global 'alertEntity')]
This commit is contained in:
Simone Mainardi 2019-08-16 20:48:11 +02:00
parent e363e56e23
commit 3a5de882fe
2 changed files with 2 additions and 1 deletions

View file

@ -2,9 +2,9 @@
-- (C) 2013-19 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
local dirs = ntop.getDirs()
local json = require("dkjson")
local alert_endpoints = require("alert_endpoints_utils")
local alert_consts = require("alert_consts")