mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Interface Status Change Alerts and Interface Discards/Errors Alerts preferences
This commit is contained in:
parent
305d2c14d4
commit
bb6937ca66
5 changed files with 27 additions and 1 deletions
|
|
@ -1618,6 +1618,20 @@ function printSnmp()
|
|||
"default_snmp_community",
|
||||
"public", false, nil, nil, nil, {attributes={spellcheck="false", maxlength=64}})
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_snmp_alerts_port_status_change",
|
||||
default = "1",
|
||||
pref = "alerts.snmp_port_status_change",
|
||||
disabled = not info["version.enterprise_edition"],
|
||||
})
|
||||
|
||||
prefsToggleButton(subpage_active, {
|
||||
field = "toggle_snmp_alerts_port_errors",
|
||||
default = "1",
|
||||
pref = "alerts.snmp_port_errors",
|
||||
disabled = not info["version.enterprise_edition"],
|
||||
})
|
||||
|
||||
print('<tr><th colspan=2 style="text-align:right;"><button type="submit" class="btn btn-primary" style="width:115px" disabled="disabled">'..i18n("save")..'</button></th></tr>')
|
||||
|
||||
print [[<input name="csrf" type="hidden" value="]] print(ntop.getRandomCSRFValue()) print [[" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue