mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Ability to Specify the Default SNMP Community for Hosts
Implements #1112
This commit is contained in:
parent
a439d9c2bd
commit
4cade724ab
5 changed files with 34 additions and 4 deletions
|
|
@ -648,7 +648,7 @@ function printLogging()
|
|||
end
|
||||
|
||||
function printSnmp()
|
||||
if not ntop.isPro() then return end
|
||||
if not ntop.isEnterprise() then return end
|
||||
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
|
@ -658,6 +658,11 @@ function printSnmp()
|
|||
"On", "1", "success", "Off", "0", "danger", "toggle_snmp_rrds", "ntopng.prefs.snmp_devices_rrd_creation", "0",
|
||||
not info["version.enterprise_edition"])
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["default_snmp_community"].title, subpage_active.entries["default_snmp_community"].description,
|
||||
"ntopng.prefs.",
|
||||
"default_snmp_community",
|
||||
"public", false, nil, nil, nil, {attributes={spellcheck="false", maxlength=64}})
|
||||
|
||||
print('<tr><th colspan=2 style="text-align:right;"><button type="submit" class="btn btn-primary" style="width:115px">'..i18n("save")..'</button></th></tr>')
|
||||
|
||||
print [[<input id="csrf" name="csrf" type="hidden" value="]] print(ntop.getRandomCSRFValue()) print [[" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue