An open API service indexing awesome lists of open source software.

https://github.com/candy-chat/mod_onlineusers

Displays the number of onlineusers on ejabberd
https://github.com/candy-chat/mod_onlineusers

Last synced: over 1 year ago
JSON representation

Displays the number of onlineusers on ejabberd

Awesome Lists containing this project

README

          

mod_onlineusers
===============

Displays the number of online users via the http interface of ejabberd.

* To compile, clone it to the ejabberd-modules folder you checked out from [svn](http://www.ejabberd.im/ejabberd-modules) and call `./build.sh` (ignore the warning regarding LocalPath).
* After that, copy ebin/mod_onlineusers.ebin to your ebin folder of ejabberd.
* Then, edit ejabberd.cfg and add the following to your modules config: `{mod_onlineusers, []}`.
* Also in ejabberd.cfg, add to your http-listen configuration the following: `{request_handlers, [{["onlineusers"], mod_onlineusers}]}`
* Restart ejabberd

Usage
-----
Go to (http://example.com:5280/onlineusers) to see your currently online users. (Change *example.com* to your server & *5280* to your ejabberd http port).

**Be aware:** I just did it because I didn't find a better way to do it via a standard module from ejabberd. There may be bugs and there may be a better way to achieve it.