I would like to build a monitoring for the nextcloud clients on macOS. I managed to monitor wether a nextcloud client is running or not. But in the next step I would like to monitor the sync state of the nextcloud client. In the monitoring system I would like to see, which clients are currently not syncing. With that I could help my colleagues before they realize that something is wrong or not up-to-date. Unfortunatly most of my colleagues don’t check the sync state of their client. That’s why I would like to have that monitoring.
So my question is: is there already a way to get that information from the client somehow?
It shows the green synced symbol in the status bar. If you use an app password for the client, in the security settings of the user, you can see when this client was logged in for the last time, e.g. when an upgrade failed or a client is not started any more, you see the last connection was a long time ago.
I’d have to go through the server logfiles, but there you might see which authenticated user is accessing data, and then check for their activity.
As far as I know, there is no return channel where the client tells the server which version it has synced, so you can see on the server, who has the current version of the file on their system.