Revert "Fix SNMP alerts in case of bad port number provided by the check"

This reverts commit 488f80f476.
This commit is contained in:
Nicolo Maio 2023-06-06 10:43:13 +00:00
parent 488f80f476
commit 64c62e1586
9 changed files with 17 additions and 134 deletions

View file

@ -728,7 +728,7 @@ function driver:listSeries(schema, tags_filter, wildcard_tags, start_time)
local full_path = driver.schema_get_full_path(schema, tags_filter)
local last_update = ntop.rrd_lastupdate(full_path)
if last_update ~= nil and last_update >= start_time and (end_time == nil or last_update <= end_time ) then
if last_update ~= nil and last_update >= start_time then
return {tags_filter}
else
return nil