ejabberd - Comments for "webadmin: number of online users without login possible?" https://www.ejabberd.im/node/4910 en mweibel wrote: I saw https://www.ejabberd.im/node/4910#comment-57751 <div class="quote-msg"> <div class="quote-author"><em>mweibel</em> wrote:</div> <p>I saw something with ACLs in the webadmin source file. Could I also change those ACLs to be available for everyone via the config? Or is that just an internal API? </p></div> <p>The web admin pages may vary in newer versions, maybe to provide more information. If you don't want your users (or any other visitor) to access your current or any possible future content, then better to not grant free access to webadmin.</p> <div class="quote-msg"> <div class="quote-author"><em>mweibel</em> wrote:</div> <p>For the moment, I created a very lightweight plugin for it:<br /> <noindex><a href="http://github.com/amiadogroup/mod_onlineusers" title="http://github.com/amiadogroup/mod_onlineusers" rel="nofollow" >http://github.com/amiadogroup/mod_onlineusers</a></noindex></p> <p>What do you think about this way? </p></div> <p>That is a lot better than granting free access to webadmin. With your custom module you explicitly control what information to publish.</p> Wed, 17 Aug 2011 08:34:43 +0000 mfoss comment 57751 at https://www.ejabberd.im Hi, I saw something with ACLs https://www.ejabberd.im/node/4910#comment-57748 <p>Hi,</p> <p>I saw something with ACLs in the webadmin source file. Could I also change those ACLs to be available for everyone via the config? Or is that just an internal API?</p> <p>For the moment, I created a very lightweight plugin for it:<br /> <noindex><a href="http://github.com/amiadogroup/mod_onlineusers" title="http://github.com/amiadogroup/mod_onlineusers" rel="nofollow" >http://github.com/amiadogroup/mod_onlineusers</a></noindex></p> <p>What do you think about this way?</p> Wed, 17 Aug 2011 07:15:06 +0000 mweibel comment 57748 at https://www.ejabberd.im mweibel wrote: getting number https://www.ejabberd.im/node/4910#comment-57746 <div class="quote-msg"> <div class="quote-author"><em>mweibel</em> wrote:</div> <p>getting number of online users is available for everyone without login.</p> <p>Is that possible?<br /> The best thing would be, if I could also get the number without the HTML-Layout around it (raw).</p></div> <p>Some ways to do it:</p> <p>A) lynx:<br /> 1. write a shell script that calls lynx or wget to visit the admin page and output to a html file<br /> 2. then parse the output to extract the values.<br /> 3. add script to cron.<br /> 4. publish file with apache or mod_http_fileserver</p> <p>B) ejabberdctl<br /> 1+2. ejabberdctl connected_users_number &gt; /tmp/stats.txt<br /> 3+4. same as A)</p> <p>C) in a jabber connection:</p> <pre> &lt;iq id='49:427559' type='get' to='localhost'&gt; &lt;query xmlns='http://jabber.org/protocol/stats'&gt; &lt;stat name='users/online'/&gt; &lt;query&gt; &lt;iq&gt; &lt;iq from='localhost' to='user1qweqwew@localhost/tka1' id='49:427559' type='result'&gt; &lt;query xmlns='http://jabber.org/protocol/stats'&gt; &lt;stat name='users/online' units='users' value='638'/&gt; &lt;query&gt; &lt;iq&gt; </pre> Tue, 16 Aug 2011 23:07:06 +0000 mfoss comment 57746 at https://www.ejabberd.im