mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Extend PacketDumper to be used also by nEdge. Add Max Extracted PCAP Files setting.
This commit is contained in:
parent
626686b35d
commit
7947c06a65
9 changed files with 117 additions and 39 deletions
|
|
@ -544,31 +544,31 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
-- ================================================================================
|
||||
|
||||
function printRecording()
|
||||
local n2disk_info = recording_utils.getN2diskInfo()
|
||||
|
||||
print('<form method="post">')
|
||||
print('<table class="table">')
|
||||
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("prefs.license") ..
|
||||
'</th></tr></thead>')
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["n2disk_license"].title,
|
||||
subpage_active.entries["n2disk_license"].description ..
|
||||
i18n("prefs.n2disk_license_description_enterprise_l") .. "<br>" ..
|
||||
ternary(n2disk_info.version ~= nil, i18n("prefs.n2disk_license_version", {
|
||||
version = n2disk_info.version
|
||||
}) .. "<br>", "") .. ternary(n2disk_info.systemid ~= nil, i18n("prefs.n2disk_license_systemid", {
|
||||
systemid = n2disk_info.systemid
|
||||
}), ""), "ntopng.prefs.", "n2disk_license", ternary(n2disk_info.license ~= nil, n2disk_info.license, ""),
|
||||
false, nil, nil, nil, {
|
||||
style = {
|
||||
width = "25em;"
|
||||
},
|
||||
min = 50,
|
||||
max = 64,
|
||||
pattern = getLicensePattern(),
|
||||
disabled = ntop.isEnterpriseL()
|
||||
})
|
||||
|
||||
if not ntop.isnEdge() then
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("prefs.license") ..
|
||||
'</th></tr></thead>')
|
||||
local n2disk_info = recording_utils.getN2diskInfo()
|
||||
prefsInputFieldPrefs(subpage_active.entries["n2disk_license"].title,
|
||||
subpage_active.entries["n2disk_license"].description ..
|
||||
i18n("prefs.n2disk_license_description_enterprise_l") .. "<br>" ..
|
||||
ternary(n2disk_info.version ~= nil, i18n("prefs.n2disk_license_version", { version = n2disk_info.version }) .. "<br>", "") ..
|
||||
ternary(n2disk_info.systemid ~= nil, i18n("prefs.n2disk_license_systemid", { systemid = n2disk_info.systemid }), ""),
|
||||
"ntopng.prefs.", "n2disk_license", ternary(n2disk_info.license ~= nil, n2disk_info.license, ""),
|
||||
false, nil, nil, nil, {
|
||||
style = {
|
||||
width = "25em;"
|
||||
},
|
||||
min = 50,
|
||||
max = 64,
|
||||
pattern = getLicensePattern(),
|
||||
disabled = ntop.isEnterpriseL()
|
||||
})
|
||||
end
|
||||
|
||||
print('<thead class="table-primary"><tr><th colspan=2 class="info">' .. i18n("traffic_recording.settings") ..
|
||||
'</th></tr></thead>')
|
||||
|
|
@ -581,6 +581,12 @@ if auth.has_capability(auth.capabilities.preferences) then
|
|||
tformat = "mg"
|
||||
})
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["max_extracted_pcap_files"].title,
|
||||
subpage_active.entries["max_extracted_pcap_files"].description, "ntopng.prefs.", "max_extracted_pcap_files",
|
||||
prefs.max_extracted_pcap_files, "number", true, nil, nil, {
|
||||
min = 0,
|
||||
})
|
||||
|
||||
-- ######################
|
||||
|
||||
print(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue