-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Client last seen option #40
Comments
+1 for this feature, can help diagnose offline issues, knowing the time a node went offline. |
Hello, @drtech981. It is not easy to implement such a feature, as the controller API does not return the last seen member value. I agree that such a feature would be great for the user experience, so any help is welcome. |
Yes, the controller API as currently available does not return this value. I have been trying to think about how to do this for a while, but haven't figured out a way yet. I will probably try to see if the ZeroTier implementation with the alternate database tracks online information. |
I've made some research on this topic. For reference, see the https://github.com/zerotier/ZeroTierOne/blob/master/controller/LFDB.cpp |
@dec0dOS I was wondering if (when you have a chance) you could give me a basic overview of how the frontend and backend services interact? I'm new to these programming languages and I was specifically wondering if any of the backend services run in the background, or if everything only runs when the admin web pages are loaded. Just trying to see what the options are with saving the online state of ZT clients. |
Hey, @timothyle97! I see that there is two way to implement this feature: using the postgres controller build that already uses the additional thread on the controller level to store the last online time data. But that approach have several downsides. So I think that the better way to implement this feature is to use the same technique on the backend level, not the controller level itself. Any nodejs recurring tasks scheduler should be okey for this task. To implement the following feature properly some backlog tasks should be done. Moving to the ES6 modules on the backend level, upgrading current dependencies, improving the developer experience (using the vite build tool). Any help is welcome! I appreciate your involvement in the ZeroUI project. |
Added in v1.5.0. |
Instead of just showing if the client is online or not, it would be nice to have a last seen time for the client, which helps to diagnose certain issues such as power failure or hardware failure from a remote site (just as it shows in zerotier central manager).
The text was updated successfully, but these errors were encountered: