[JDEV] How to get current number of users?

Sylvain Roberdeau sylvain.roberdeau at terravirtual.net
Wed Jan 22 07:07:09 CST 2003


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 Wed, Jan 22, 2003 at 01:27:29PM +0100, 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 that.
> >
> >     Thanks for the anwser
> >
> > Sylvain
> >
>
> The easiest way to measure this outside jabber is to count the number of
> incoming connections to port 5222. You can do this by parsing the output of
> netstat -a, but if you are familiar with snmp, use cricket and have an snmpd
> running, the information is available there, too.
>
> You can try querying:
>
>         tcp.tcpConnTable.tcpConnEntry.tcpConnState.x.x.x.x.5222.y.y.y.y.p
>
> where x.x.x.x is your external IP address, y.y.y.y is the other party and p is
> the port their local port. If y.y.y.y is 0.0.0.0 and p is 0 you found the
> listen entry (value is 2), established connections have a value of 5.
>
> --
> Groetjes,
>
> Ralphm
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylvain.roberdeau.vcf
Type: text/x-vcard
Size: 466 bytes
Desc: Carte pour Roberdeau Sylvain
URL: <https://www.jabber.org/jdev/attachments/20030122/cdef3e29/attachment-0002.vcf>


More information about the JDev mailing list