mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
Prevents RRD files exception on fresh ntopng installs
Prevents 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/SSL.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/SSL.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/HTTP.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/HTTP.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/SSH.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/SSH.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/Unknown.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/Unknown.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/sFlow.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/sFlow.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/DNS.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/DNS.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags 25/Jul/2018 13:18:19 [LuaEngine.cpp:4325] ERROR: Error 'opening '/var/tmp/ntopng/0/rrd/ICMP.rrd': No such file or directory' while calling rrd_fetch_r(/var/tmp/ntopng/0/rrd/ICMP.rrd, AVERAGE): is the RRD corrupted perhaps? 25/Jul/2018 13:18:19 [dashboard.lua:78] [rrd.lua:327] RRD driver does not support listSeries on multiple tags
This commit is contained in:
parent
d14fd57858
commit
0b86f17a21
1 changed files with 6 additions and 1 deletions
|
|
@ -317,13 +317,18 @@ end
|
|||
function driver:query(schema, tstart, tend, tags, options)
|
||||
local base, rrd = schema_get_path(schema, tags)
|
||||
local rrdfile = os_utils.fixPath(base .. "/" .. rrd .. ".rrd")
|
||||
|
||||
if not ntop.exists(rrdfile) then
|
||||
return nil
|
||||
end
|
||||
|
||||
touchRRD(rrdfile)
|
||||
|
||||
local fstart, fstep, fdata, fend, fcount = ntop.rrd_fetch_columns(rrdfile, RRD_CONSOLIDATION_FUNCTION, tstart, tend)
|
||||
local count = 0
|
||||
local series = {}
|
||||
|
||||
for name_key, serie in pairs(fdata) do
|
||||
for name_key, serie in pairs(fdata or {}) do
|
||||
local serie_idx = map_rrd_column_to_metrics(schema, name_key)
|
||||
local name = schema._metrics[serie_idx]
|
||||
count = 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue