On Tue, Aug 13, 2019 at 4:00 AM Lukas Krempler <[email protected]> wrote:
> hey everybody! > > I'm searching for an easy way to get all actual open sessions from > guacamole users. Like the view in the guacamole backend "Active Sessions". > > Maybe there is a way to write the open connections into the database, or > write a file in a specific folder. > > To parse the logfiles to get the open sessions is not my favorite way. > > I hope someone has such a good idea. > > The entire Guacamole Client front-end is API-driven, so all of the data that drives the displays, including the Active Sessions area, can be retrieved in JSON format from the Java back-end. I wrote some sample Python code once upon a time to query things in the API and provide a couple of examples for how you could do this. That (now fairly old) code lives here: https://github.com/necouchman/guacamole-python If you look through that you'll see the various API locations for retrieving active connections, connection history, etc., and some examples for killing active connections. -Nick >
