Thanks,
it's not attractive, but the simpliest way.
Sylvain
Peter Millard a écrit :
Sylvain Roberdeau wrote:
But by this way it's impossible to distinguish component - jabberd
connection to client- jabberd connection.
And if you use a Jadc2s for polling, only one connection is
HI,
I'm looking for a way to get current number of connected users for a
stat service and RRD Tools.
First, I thought that an admin command or an jabberd module exist.
Before create a specific module, I would like to know if there is an
existing way to do that.
Thanks for the
Browsing servername/admin gives you a list of online users, which you
can just enumerate. If you're concerned about the bandwidth
implications of this, you could write a very simple component which
would live locally and get the list, and send on the number.
Sylvain Roberdeau wrote:
HI,
But by this way it's impossible to distinguish component - jabberd connection to
client- jabberd connection.
And if you use a Jadc2s for polling, only one connection is visible for all
clients.
I'm looking for a way to obtain info from the Jabberd himself.
Sylvain
Ralph Meijer a écrit :
On
On Wed, Jan 22, 2003 at 02:07:09PM +0100, Sylvain Roberdeau wrote:
But by this way it's impossible to distinguish component - jabberd connection to
client- jabberd connection.
Components do not connect to port 5222, thought bots might. Everything that
connects via port 5222 is considered a
Sylvain Roberdeau wrote:
HI,
I'm looking for a way to get current number of connected users for a
stat service and RRD Tools.
First, I thought that an admin command or an jabberd module exist.
Before create a specific module, I would like to know if there is an
existing way to do
Write a new JSM component containing a function similiar to
that of js_users_gc (user.c) , which is a heart-beat callback function
installed in jsm.c:
void jsm(instance i, xmlnode x)
{
...
register_beat(j_atoi(xmlnode_get_tag_data(si-config,usergc),60),js_users_
gc,(void *)si);
}
-Yanming
I've never had any confidence in this feature. It frequently reports
sessions for users I know are not online.
David 'TheRaven' Chisnall wrote:
Browsing servername/admin gives you a list of online users, which you
can just enumerate. If you're concerned about the bandwidth
implications of
Sylvain Roberdeau wrote:
But by this way it's impossible to distinguish component - jabberd
connection to client- jabberd connection.
And if you use a Jadc2s for polling, only one connection is visible
for all clients.
All of the other solutions are overkill IMO...
on jabber.org, we use