Modified preferences nBox label

Fifed MySQL connection leak in case of reconnection
This commit is contained in:
Luca Deri 2016-03-06 23:29:36 +01:00
parent a949d76a02
commit 83360abc1c
2 changed files with 3 additions and 2 deletions

View file

@ -85,7 +85,7 @@ if (ntop.isPro()) then
prefsInputField("Nagios service_description", "The service description exactly as specified in Nagios passive service definition for the ntopng host. Default: NtopngAlert", "nagios_service_name", prefs.nagios_service_name)
end
-- ================================================================================
print('<tr><th colspan=2 class="info">nBox integration</th></tr>')
print('<tr><th colspan=2 class="info">nBox Integration</th></tr>')
local nbox_integration = ntop.getCache("ntopng.prefs.nbox_integration")
local nbox_host = ntop.getCache("ntopng.prefs.nbox_host")
@ -96,7 +96,7 @@ if (ntop.isPro()) then
if((nbox_user == nil) or (nbox_user == "")) then nbox_user = "nbox" end
if((nbox_password == nil) or (nbox_password == "")) then nbox_password = "nbox" end
toggleTableButton("Integrate with nBox",
toggleTableButton("Enable nBox Support",
"Enable sending ntopng requests (e.g., to download pcap files) to an nBox. Pcap requests are issued from the historical data browser when browsing 'Talkers' and 'Protocols'. Each request carry information on the search criteria generated by the user when drilling-down historical data. Requests are queued and pcaps become available for download from a dedicated 'Pcaps' tab once generated.",
"On", "1", "success", "Off", "0", "danger", "toggle_nbox_integration", "ntopng.prefs.nbox_integration")
if ntop.getCache("ntopng.prefs.nbox_integration") == "1" then