mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
24 lines
631 B
Lua
24 lines
631 B
Lua
--
|
|
-- (C) 2013-17 - ntop.org
|
|
--
|
|
-- This script is used to perform activities that are low
|
|
-- priority with respect to second.lua but that require
|
|
-- near realtime execution.
|
|
-- This script is executed every few seconds (default 3)
|
|
--
|
|
|
|
dirs = ntop.getDirs()
|
|
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|
|
|
require "lua_utils"
|
|
require "alert_utils"
|
|
require "slack_utils"
|
|
|
|
sendSlackMessages()
|
|
|
|
local prefs_changed = ntop.getCache("ntopng.prefs_changed")
|
|
if(prefs_changed == "true") then
|
|
-- First delete prefs_changed then dump data
|
|
ntop.delCache("ntopng.prefs_changed")
|
|
savePrefsToDisk()
|
|
end
|