Fixed labels and inconcistencies on active monitoring

Added ability for RRD to handle RRDs with 4 measurements. rrd driver might need further work
This commit is contained in:
Luca Deri 2020-05-04 19:13:03 +02:00
parent deff9d92e7
commit b0c23144ee
5 changed files with 606 additions and 597 deletions

View file

@ -178,6 +178,8 @@ local function map_metrics_to_rrd_columns(num)
return {"sent", "rcvd"}
elseif num == 3 then
return {"ingress", "egress", "inner"}
elseif num == 4 then
return {"ingress", "egress", "inner", "other"}
end
-- error
@ -618,6 +620,8 @@ local function touchRRD(rrdname)
ntop.rrd_update(rrdname, tdiff.."", "0", "0")
elseif(ds_count == 3) then
ntop.rrd_update(rrdname, tdiff.."", "0", "0", "0")
elseif(ds_count == 4) then
ntop.rrd_update(rrdname, tdiff.."", "0", "0", "0")
end
end
end