Remove unused SNMP device config

Now the SNMP configuration is specified into the user scripts config
This commit is contained in:
emanuele-f 2020-01-22 18:26:56 +01:00
parent eafa80da09
commit 67787a168b
2 changed files with 1 additions and 42 deletions

View file

@ -1320,35 +1320,6 @@ function printSnmp()
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",
pref = "alerts.snmp_port_status_change",
disabled = disabled,
})
prefsToggleButton(subpage_active, {
field = "toggle_snmp_alerts_port_duplexstatus_change",
default = "1",
pref = "alerts.snmp_port_duplexstatus_change",
disabled = disabled,
})
prefsToggleButton(subpage_active, {
field = "toggle_snmp_alerts_port_errors",
default = "1",
pref = "alerts.snmp_port_errors",
disabled = disabled,
})
prefsInputFieldPrefs(subpage_active.entries["snmp_port_load_threshold"].title,
subpage_active.entries["snmp_port_load_threshold"].description,
"ntopng.prefs.alerts.",
"snmp_port_load_threshold",
"100", "number", nil, false, nil, {min=0, disabled=disabled})
if(disabled) then
prefsInformativeField(i18n("notes"), i18n("enterpriseOnly"))
end