Removed OS stats

This commit is contained in:
Luca Deri 2024-11-26 10:23:04 +01:00
parent 48f28dcbb2
commit 6b4afa074a
20 changed files with 7 additions and 878 deletions

View file

@ -270,23 +270,6 @@ end
-- ########################################################
function ts_dump.os_update_rrds(when, ifstats, verbose)
local os_info = interface.getOSesInfo()
for _, os_stats in pairs(os_info["os"] or {}) do
local OS = os_stats.os
ts_utils.append("os:traffic", {
ifid = ifstats.id,
os = OS,
bytes_ingress = os_stats["bytes.rcvd"],
bytes_egress = os_stats["bytes.sent"]
}, when)
end
end
-- ########################################################
function ts_dump.vlan_update_rrds(when, ifstats, verbose)
local vlan_info = interface.getVLANsInfo()
@ -886,11 +869,6 @@ function ts_dump.run_5min_dump(_ifname, ifstats, when, verbose)
ts_dump.country_update_rrds(when, ifstats, verbose)
end
-- create RRD for OSes
if config.os_rrd_creation == "1" then
ts_dump.os_update_rrds(when, ifstats, verbose)
end
-- Create RRD for vlans
if config.vlan_rrd_creation == "1" then
ts_dump.vlan_update_rrds(when, ifstats, verbose)