nextcloud / serverinfo

📊 A monitoring app which creates a server info dashboard for admins
GNU Affero General Public License v3.0
95 stars 61 forks source link

View users who are online on the system #654

Open sinhkien opened 7 months ago

sinhkien commented 7 months ago

Hi development team I have a problem I have a current problem on my server that has a lot of users, I can't control how many people are currently using it on my system. In the admin section there is a section to track users online at specific times. Let me ask here, how to track how many users are online at the present time on my system? instead of 5 minutes ago How can I, as an administrator, see how many active users I have on my system? I look forward to receiving your support I use nextcloud version 28.0.2 Operating system: Rock Linux 9 Thank you! image

joshtrichards commented 2 months ago

Let me ask here, how to track how many users are online at the present time on my system? instead of 5 minutes ago How can I, as an administrator, see how many active users I have on my system?

Define "active user" and "now". Keep in mind we're talking HTTP traffic here so... things are fairly stateless.

5 minutes is a pretty good gauge. Maybe 1 minute granularity (in some environments).

Can you share a bit more about your use case? What problem are you, specifically, trying to solve?

kesselb commented 2 months ago

There's a script to list the users by last login: https://help.nextcloud.com/t/script-nc-who-similar-to-unix-who-follow-live-who-is-logged-in/164972

Sounds like a good feature to me. The oc_authtoken table should have all the required information.