mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Added error message when InfluxDB is not enabled
This commit is contained in:
parent
fcbdd58a52
commit
187c9a8535
3 changed files with 10 additions and 6 deletions
|
|
@ -19,16 +19,18 @@ require("alert_utils")
|
|||
local ts_creation = plugins_utils.timeseriesCreationEnabled()
|
||||
local probe = user_scripts.loadModule(getSystemInterfaceId(), user_scripts.script_types.system, "system", "influxdb_monitor")
|
||||
|
||||
if not isAllowedSystemInterface() or (ts_utils.getDriverName() ~= "influxdb") then
|
||||
return
|
||||
end
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
||||
page_utils.print_header()
|
||||
|
||||
dofile(dirs.installdir .. "/scripts/lua/inc/menu.lua")
|
||||
|
||||
if not isAllowedSystemInterface() or (ts_utils.getDriverName() ~= "influxdb") then
|
||||
local url = ntop.getHttpPrefix().."/lua/admin/prefs.lua?tab=on_disk_ts"
|
||||
print('<div class="alert alert-danger">'..i18n("alert_messages.no_influxdb", { url=url })..'</div>')
|
||||
return
|
||||
end
|
||||
|
||||
local page = _GET["page"] or "overview"
|
||||
local url = plugins_utils.getUrl("influxdb_stats.lua") .. "?ifid=" .. interface.getId()
|
||||
local title = "InfluxDB"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue