mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Requires snmp_utils as local module
This commit is contained in:
parent
a3d7365888
commit
8a3e65ac50
25 changed files with 27 additions and 27 deletions
|
|
@ -30,7 +30,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function snmpPortDuplexChangeFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
return(i18n("alerts_dashboard.snmp_port_changed_duplex_status",
|
||||
{device = info.device,
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function snmpInterfaceErrorsFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
return(i18n("alerts_dashboard.snmp_port_errors_increased",
|
||||
{device = info.device,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function snmpPortLoadThresholdFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
local fmt = {
|
||||
device = info.device,
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function portMacChangedFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
return(i18n("alerts_dashboard.alert_snmp_interface_mac_changed_description",
|
||||
{mac_url = getMacUrl(info.mac),
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function portStatusChangeFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
return(i18n("alerts_dashboard.snmp_port_changed_operational_status",
|
||||
{device = info.device,
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ end
|
|||
-- #######################################################
|
||||
|
||||
local function snmpDeviceResetFormatter(ifid, alert, info)
|
||||
if ntop.isPro() then require "snmp_utils" end
|
||||
if ntop.isPro() then local snmp_utils = require "snmp_utils" end
|
||||
|
||||
return(i18n("alerts_dashboard.alert_snmp_device_reset_description",
|
||||
{device = info.device,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ local function formatTopologyChanged(ifid, alert, alert_info)
|
|||
return ""
|
||||
end
|
||||
|
||||
require("snmp_utils")
|
||||
local snmp_utils = require "snmp_utils"
|
||||
|
||||
if(alert.alert_subtype == "arc_added") then
|
||||
return(i18n("alert_messages.lldp_arc_added", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue