mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Revert "Fix SNMP alerts in case of bad port number provided by the check"
This reverts commit 488f80f476.
This commit is contained in:
parent
488f80f476
commit
64c62e1586
9 changed files with 17 additions and 134 deletions
|
|
@ -191,7 +191,7 @@ function alerts_api.store(entity_info, type_info, when)
|
|||
if(not areAlertsEnabled()) then
|
||||
return(false)
|
||||
end
|
||||
--tprint("IN ALERTS_API STORE")
|
||||
|
||||
local force = false
|
||||
local ifid = interface.getId()
|
||||
local granularity_sec = type_info.granularity and type_info.granularity.granularity_seconds or 0
|
||||
|
|
@ -199,7 +199,6 @@ function alerts_api.store(entity_info, type_info, when)
|
|||
|
||||
type_info.alert_type_params = type_info.alert_type_params or {}
|
||||
addAlertGenerationInfo(type_info.alert_type_params)
|
||||
--tprint(type_info)
|
||||
|
||||
local alert_json = json.encode(type_info.alert_type_params)
|
||||
local subtype = type_info.subtype or ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue