mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Added alert for SNMP MAC detection/disappear
This commit is contained in:
parent
5128af7329
commit
3081d8d63b
5 changed files with 154 additions and 1 deletions
|
|
@ -2071,7 +2071,7 @@ local function snmp_device_run_checks(cached_device, checks_var)
|
|||
for mod_key, hook_fn in pairs(checks_var.available_modules.hooks["snmpDeviceInterface"] or {}) do
|
||||
local script = all_modules[mod_key]
|
||||
local conf = checks.getTargetHookConfig(device_conf, script)
|
||||
|
||||
|
||||
-- For each interface of the current device...
|
||||
for snmp_interface_index, snmp_interface in pairs(cached_device.interfaces) do
|
||||
if(script.skip_virtual_interfaces
|
||||
|
|
@ -2091,6 +2091,7 @@ local function snmp_device_run_checks(cached_device, checks_var)
|
|||
alert_entity = iface_entity,
|
||||
check = script,
|
||||
check_config = conf.script_conf,
|
||||
cached_device = cached_device,
|
||||
now = now,
|
||||
}))
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue