当前哪些用户连接到 Openfire Jabber 服务器?
我有一个 Openfire Jabber 服务器,列出了超过 75,000 个用户。 其中,150 个或更多可以同时在线。
有没有什么地方可以收集当前登录用户的 JID(用户名)? 我对底层数据具有完整的数据库访问权限,但服务器似乎没有将当前状态写回数据库。 由于用户数量较多,名册未被使用。
返回的一组非常有用的数据将来自一个简单的(受密码保护的)网页,每行一个 JID,可选地包含登录时间,也可能是该帐户上次执行操作的时间(例如发送消息)。 后两者不是必需的,但如果数据以及有关用户会话的任何其他可用信息可用,则它们将很有用。
I have got an Openfire Jabber server with in excess of 75,000 users listed. Of those, 150 or more can be online at any one time.
Is there anywhere that I can collect the JIDs (usernames) of the currently logged in users? I have full database access to the underlying data, but the server does not appear to write the current status back to the DB. Because of the number of users, rosters are not being used.
A very useful set of data being returned would be from a simple (password protected) webpage with one JID per line, optionally with the login time, and maybe also the last time that account performed an action [like send a message]. The latter two are not as essential, but would be useful if the data is available, as well as any other information that was available regarding the user session.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不知道这是否有帮助,但我遇到它寻找类似的功能。 如 XEP-0045 http://xmpp.org/extensions/xep-0045 中所定义.html#disco-roominfo:
所以你需要确保它像 Openfire 上宣传的那样工作(我遇到的所有 xmpp 服务器都有一个或两个错误),我想你需要编写一些逻辑来获得结果。
祝你好运。
dont know if this will help but I ran into it looking for similar functionality. As defined in XEP-0045 http://xmpp.org/extensions/xep-0045.html#disco-roominfo :
So you would need to ensure it works as advertised on Openfire (all xmpp servers ive come across have a bug or two in them), and I imagine you would need to code some logic to get the results.
Good luck.
这不是一个完美的答案,但您想要的查询可能嵌入在 session-summary.jsp 页面中。 我在本地托管的服务器上访问了它 http://localhost:9090/session-summary.jsp< /a>. 我不知道的是,它是否存储在可查询的数据库中,或者是否存储在客户端内部。 后者的可能性更大。
该页面显示的数据包括名称、资源、状态、状态、优先级、客户端 IP 和关闭连接。
Not a perfect answer, but the query you want is probably embedded in the session-summary.jsp page. I got to it on a locally hosted server at http://localhost:9090/session-summary.jsp. What I don't know is if that is then stored in the database where it is query-able, or if it is stored internally to the client. The latter is more likely.
The data that page displays is Name, Resource, Status, Presence, Priority, Client IP, and Close Connection.