Hi,
I am looking for advice. We have a few x2go "servers". We have customers that use the client on laptops to connect to the servers and do what they do. I need to account for the time they have active x2go sessions.
We have tools to get user login/out data. The behavior we are seeing is as follows:
Customer-A logs in via the pc client.
Customer-A does or starts work then literally closes the laptop and walks away.
After the default SSH timeout his "connection" ends but the x2go session continues.
Later, the laptop is reopened and the x2go session is resumed.
... repeat...
I have put small scripts in all of the "extensions" sub-dirs to report the activity. They really just report the result of "/usr/bin/x2golistsessions".
After #1 I see the pre-and post-start scripts but they are NOT reporting a PID number.
After #2 I can see our normal logout process run after the ssh connection timeout.
After #4 I see our normal login process run due to the new ssh connection; and I see the pre and post-resume scripts run and they DO have PIDs.
I can imagine that the "pre-start" script hook might not have access to a running PID yet but is there any way for the post-start script to get the PID? I could craft a special version of our audit tools to deal with a numeric PID in the pre or post-start scripts and treat it like a console or ssh "login". I suppose I could craft it to use the x2go sessionID but that will cause a lot of other changes in out existing audit tools.
Thanks