ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.31k stars 658 forks source link

An API to reload nedge remotely #8808

Open iesreza opened 3 weeks ago

iesreza commented 3 weeks ago

What would you like to add or change?: Adding an API to remotely restart or reload Nedge would be highly beneficial. Since Nedge already has the internal capability to restart and reload configurations upon changes, exposing this as an API would allow third-party applications to initiate a restart after modifying configurations, streamlining integration and enhancing operational flexibility.

Why do you and others need this?: Third parties occasionally need to modify Nedge configurations, especially in networks with multiple Nedge instances that require synchronized configurations. In such cases, after applying new configurations, the ability to remotely restart Nedge would ensure that the new settings are applied across all instances, simplifying configuration management and maintaining consistency in the network.

MatteoBiscosi commented 2 weeks ago

Hi @iesreza , like requested, the REST API has been added: lua/rest/v2/get/ntopng/restart.lua No parameters needed, this rest however can be run only by Admin users