mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Implements hierarchical AS RRDs directory tree
This commit is contained in:
parent
4da97c492a
commit
af907b61af
6 changed files with 200 additions and 187 deletions
|
|
@ -218,6 +218,7 @@ function getRRDName(ifid, host_or_network, rrdFile)
|
|||
rrdname = os_utils.fixPath(dirs.workingdir .. "/" .. ifid .. "/vlanstats/")
|
||||
elseif host_or_network ~= nil and string.starts(host_or_network, 'asn:') then
|
||||
host_or_network = string.gsub(host_or_network, 'asn:', '')
|
||||
host_or_network = host_or_network:gsub("(%d)", "%1/") -- asn 1234 becomes 1/2/3/4
|
||||
rrdname = os_utils.fixPath(dirs.workingdir .. "/" .. ifid .. "/asnstats/")
|
||||
elseif host_or_network ~= nil and string.starts(host_or_network, 'country:') then
|
||||
host_or_network = string.gsub(host_or_network, 'country:', '')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue