From e887ad65a9901cd10f0e3b6989b834a6aff27452 Mon Sep 17 00:00:00 2001 From: Matteo Biscosi Date: Wed, 30 Oct 2024 14:56:27 +0100 Subject: [PATCH] Changed snmp polling duration data name --- scripts/lua/modules/timeseries/schemas/ts_5min.lua | 4 ++-- scripts/lua/modules/timeseries/ts_utils_core.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/lua/modules/timeseries/schemas/ts_5min.lua b/scripts/lua/modules/timeseries/schemas/ts_5min.lua index 444f5c6ee73a..b9b8d6837792 100644 --- a/scripts/lua/modules/timeseries/schemas/ts_5min.lua +++ b/scripts/lua/modules/timeseries/schemas/ts_5min.lua @@ -447,13 +447,13 @@ schema:addMetric("bytes_rcvd") schema = ts_utils.newSchema("snmp_device:poll_duration", { step = 300, rrd_heartbeat = 3000, - rrd_fname = "duration", + rrd_fname = "poll_duration", metrics_type = ts_utils.metrics.gauge, is_system_schema = true }) schema:addTag("ifid") schema:addTag("device") -schema:addMetric("duration") +schema:addMetric("poll_duration") schema = ts_utils.newSchema("snmp_if:traffic", { step = 300, diff --git a/scripts/lua/modules/timeseries/ts_utils_core.lua b/scripts/lua/modules/timeseries/ts_utils_core.lua index 2aef486cbe34..21db898e60ac 100644 --- a/scripts/lua/modules/timeseries/ts_utils_core.lua +++ b/scripts/lua/modules/timeseries/ts_utils_core.lua @@ -860,7 +860,7 @@ function ts_utils.getPossiblyChangedSchemas() "mac:arp_rqst_sent_rcvd_rpls", -- Active Monitoring "am_host:http_stats_min", "am_host:https_stats_min", "am_host:val_min", "am_host:http_stats_5mins", "am_host:https_stats_5mins", "am_host:val_5mins", "am_host:http_stats_hour", "am_host:https_stats_hour", - "am_host:val_hour", "snmp_if:cbqos" } + "am_host:val_hour", "snmp_if:cbqos", "snmp_device:poll_duration" } end -- ##############################################