improvement and fixes for notification

This commit is contained in:
gabryon99 2020-10-26 19:41:43 +01:00
parent 2a4d57cd6f
commit 7cfdb6e59a
5 changed files with 5 additions and 4 deletions

View file

@ -402,6 +402,8 @@ function predicates.exporters_SNMP_ratio_column(notification, container)
local snmp_cached_dev = require "snmp_cached_dev"
local flow_device_ip = _GET["ip"]
if (isEmptyString(flow_device_ip)) then return end
local cached_device = snmp_cached_dev:create(flow_device_ip)
local is_ratio_available = snmp_utils.is_snmp_ratio_available(cached_device)