mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Flow user scripts enhancements
- Add title label in hash table utilization gauges - List Hash Tables charts and Periodic Activities charts in a single page - Replace Periodic Activities max duration column with time utilization percentage - Add api to add a straight line in the charts - Show max duration time as a straight line in Periodic Activities charts - Move dropped flow calls charts to the Peridic Activities page - Fix expert view number of calls 0 - Fix interface/host/network trigger alert label - Move chart icon to separate column in redis and influxdb pages - Fix interface menu selection in Hash Tables and Periodic Activities - Highlight issues with a warning triangle in Hash Tables and Periodic Activities - Fix some page navigation issues with extra_params - Fix wrong schema graph options passed to nv_graph_utils
This commit is contained in:
parent
a893e0a2c0
commit
1fd65ac44c
25 changed files with 280 additions and 154 deletions
|
|
@ -824,7 +824,9 @@ function driver:_exportErrorMsg(ret)
|
|||
local content = json.decode(ret.CONTENT)
|
||||
|
||||
if((content ~= nil) and (content.error ~= nil)) then
|
||||
err_msg = content.error
|
||||
-- In case multiple lines are returned, only fetch the first one
|
||||
local errors = string.split(content.error, "\n") or {content.error}
|
||||
err_msg = errors[1] or content.error
|
||||
|
||||
if string.find(err_msg, "max-values-per-tag limit exceeded", nil, true) ~= nil then
|
||||
suffix = ". " .. i18n("alert_messages.influxdb_partial_write")
|
||||
|
|
@ -863,17 +865,13 @@ function driver:_exportTsFile(exportable)
|
|||
local ret = ntop.postHTTPTextFile(self.username, self.password, self.url .. "/write?precision=s&db=" .. self.db, fname, delete_file_after_post, 30 --[[ timeout ]])
|
||||
|
||||
if((ret == nil) or ((ret.RESPONSE_CODE ~= 200) and (ret.RESPONSE_CODE ~= 204))) then
|
||||
-- local msg = self:_exportErrorMsg(ret)
|
||||
|
||||
-- local influx_alert = alerts:newAlert({
|
||||
-- entity = "influx_db",
|
||||
-- type = "influxdb_export_failure",
|
||||
-- severity = "warning",
|
||||
-- })
|
||||
|
||||
-- influx_alert:trigger(self.url, msg)
|
||||
local msg = self:_exportErrorMsg(ret)
|
||||
ntop.setCache("ntopng.cache.influxdb.last_error", msg)
|
||||
|
||||
rv = false
|
||||
else
|
||||
-- Clear last error
|
||||
ntop.delCache("ntopng.cache.influxdb.last_error")
|
||||
end
|
||||
|
||||
return rv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue