Fixes non working rrd charts

This commit is contained in:
MatteoBiscosi 2022-09-01 10:58:01 +02:00
parent e9d39fbfa7
commit f185cc8425

View file

@ -7,7 +7,6 @@ local driver = {}
local os_utils = require("os_utils")
local ts_common = require("ts_common")
local data_retention_utils = require "data_retention_utils"
local json = require("dkjson")
require("rrd_paths")
@ -26,6 +25,14 @@ local aggregation_to_consolidation = {
[ts_common.aggregation.last] = "LAST",
}
local L4_PROTO_KEYS = {
tcp=6,
udp=17,
icmp=1,
eigrp=88,
other_ip=-1
}
-- ##############################################
local debug_enabled = nil
@ -624,7 +631,7 @@ function driver:listSeries(schema, tags_filter, wildcard_tags, start_time)
if last_update ~= nil and last_update >= start_time then
local value = v[1]
local toadd = false
if wildcard_tag == "if_index" then
-- NOTE: needed to add this crazy exception. Don't now what it is
-- but it's needed, otherwise this function is tricked into thinking