Implements telemetry data POST

This commit is contained in:
Simone Mainardi 2019-05-23 16:43:16 +02:00
parent 5afb75c2cc
commit c7e8c32559
8 changed files with 92 additions and 2 deletions

View file

@ -17,6 +17,9 @@ if isAdministrator() then
if _POST["action"] == "move-rrd-to-influxdb" then
ntop.setPref("ntopng.prefs.disable_ts_migration_message", "1")
res.success = true
elseif _POST["action"] == "disable-telemetry-data" then
ntop.setPref("ntopng.prefs.disable_telemetry_data_message", "1")
res.success = true
elseif _POST["action"] == "host-id-message-warning" then
ntop.setPref(string.format("ntopng.prefs.ifid_%u.disable_host_identifier_message", ifid), "1")
res.success = true