Adds SNMP devices debug pref

This commit is contained in:
Simone Mainardi 2019-12-20 10:55:51 +01:00
parent d44061f529
commit 5876a7362e
4 changed files with 16 additions and 1 deletions

View file

@ -1,5 +1,5 @@
--
-- (C) 2013-18 - ntop.org
-- (C) 2013-19 - ntop.org
--
local dirs = ntop.getDirs()
@ -1330,6 +1330,14 @@ function printSnmp()
"default_snmp_community",
"public", false, nil, nil, nil, {attributes={spellcheck="false", maxlength=64}, disabled=disabled})
prefsToggleButton(subpage_active, {
field = "toggle_snmp_debug",
default = "0",
pref = "snmp_debug",
})
print('<thead class="thead-light"><tr><th colspan=2 class="info">'..i18n("prefs.snmp_alerts")..'</th></tr></thead>')
prefsToggleButton(subpage_active, {
field = "toggle_snmp_alerts_port_status_change",
default = "1",