mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
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:
parent
deff9d92e7
commit
b0c23144ee
5 changed files with 606 additions and 597 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue