mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
Added changed files with merge
This commit is contained in:
parent
e92135e776
commit
6d401586cd
35 changed files with 1319 additions and 0 deletions
30
scripts/callbacks/5second/system/nedge_pinger.lua
Normal file
30
scripts/callbacks/5second/system/nedge_pinger.lua
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
--
|
||||
-- (C) 2013-21 - ntop.org
|
||||
--
|
||||
|
||||
|
||||
local dirs = ntop.getDirs()
|
||||
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/pro/scripts/callbacks/system/?.lua;" .. package.path
|
||||
|
||||
if ntop.isnEdge() then
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/nedge/modules/?.lua;" .. package.path
|
||||
package.path = dirs.installdir .. "/pro/scripts/lua/nedge/modules/system_config/?.lua;" .. package.path
|
||||
|
||||
-- Select the NetfilterInterface, as by default the System interface is selected
|
||||
interface.select(nil)
|
||||
|
||||
require("lua_utils")
|
||||
local nf_config = require("nf_config")
|
||||
|
||||
nf_config.checkPolicyChange()
|
||||
|
||||
if ntop.isRoutingMode() then
|
||||
local ping_utils = require('ping_utils')
|
||||
local nf_config_instance = nf_config:create()
|
||||
|
||||
nf_config_instance:recheckGatewaysInformationFromSystem()
|
||||
ping_utils.check_status(nf_config_instance)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue