mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Reworked alarms
Added informative message at ntopng startup/shutdown
This commit is contained in:
parent
86bdea87d6
commit
00004494bf
19 changed files with 852 additions and 565 deletions
|
|
@ -9,6 +9,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/i18n/?.lua;" .. package.
|
|||
require "lua_trace"
|
||||
locales_utils = require "locales_utils"
|
||||
local os_utils = require "os_utils"
|
||||
require "alert_consts"
|
||||
|
||||
-- ##############################################
|
||||
|
||||
|
|
@ -76,6 +77,16 @@ function getInterfaceId(interface_name)
|
|||
return(-1)
|
||||
end
|
||||
|
||||
function getFirstInterfaceId()
|
||||
local ifnames = interface.getIfNames()
|
||||
|
||||
for if_id, if_name in pairs(ifnames) do
|
||||
return tonumber(if_id), if_name
|
||||
end
|
||||
|
||||
return -1, "" -- NOTREACHED
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
-- Note that ifname can be set by Lua.cpp so don't touch it if already defined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue