ejabberd - Comments for "mod_statsdx - Advanced Statistics" https://www.ejabberd.im/mod_stats2file en ODBC https://www.ejabberd.im/mod_stats2file#comment-59257 <p>Hello<br /> I've installed mod_statsdx to my ejabberd(2.1.11) but I've discovered that it cannot give statistics about the items which are stored in mysql.<br /> I'm using ejabberd_odbc libraries and storing user messages in mysql so mod_statsdx is not able to retrieve information about the messages users send or received.<br /> Do you know is there any solution to that or will there be any bugfix for that?<br /> Or if you want to use mod_statsdx do you have to use mnesia database?</p> <p>Thanks<br /> Tolga</p> Fri, 16 Nov 2012 11:46:58 +0000 tolgatanriverdi comment 59257 at https://www.ejabberd.im "way to keep track of the https://www.ejabberd.im/mod_stats2file#comment-54419 <p>"way to keep track of the number of messages users are sending"</p> <p>That are outgoing message stanzas. In mod_statsdx trunk it can be enabled with the option {hooks, traffic}. But I didn't try that in a real server, so I'm not sure how much CPU and RAM overhead it introduces. Also, it is not available in branch 2.0.x.</p> Tue, 30 Jun 2009 14:17:49 +0000 mfoss comment 54419 at https://www.ejabberd.im That works like a charm! https://www.ejabberd.im/mod_stats2file#comment-54415 <p>That works like a charm! Thanks!<br /> There's no way to keep track of the number of messages users are sending? (Not iq, or presence stanzas, but actual sending of messages?)<br /> Would be nice to chart that, but I guess it doesn't work with 2.0.xx yet?</p> Tue, 30 Jun 2009 08:57:18 +0000 tdm4 comment 54415 at https://www.ejabberd.im ejabberdctl connected_users_number https://www.ejabberd.im/mod_stats2file#comment-54398 <p>In your case it's easier to just call:</p> <pre> $ ejabberdctl connected_users_number 230 </pre> Wed, 24 Jun 2009 21:05:47 +0000 mfoss comment 54398 at https://www.ejabberd.im Hi. https://www.ejabberd.im/mod_stats2file#comment-54387 <p>I got branches compiled and installed. I've been playing with using mod_stats2file with dat type. I'm just wondering how do I pipe that into rrdtool to generate mrtg graphs? I just want to keep track of the online user count. Is there an easy way to set rrdtool up to read that value and record it when it changes? I could use a cron job wrapper script but it may not be synced with the time the stats file gets updated. Maybe I don't need the .dat file? I could just query ejabberctl directly?</p> <p> Thanks!</p> <p> tdm4</p> Tue, 23 Jun 2009 14:13:04 +0000 tdm4 comment 54387 at https://www.ejabberd.im traffic not available for 2.0.x https://www.ejabberd.im/mod_stats2file#comment-54386 <p>If you have ejabberd 2.0.5, then you must install mod_statsdx/branches/ejabberd-2.0.x. And that version does not support the option {hooks, traffic}.</p> <p>More bad news for you: I've noticed that mod_statsdx/trunk does not work correctly with ejabberd 2.0.5.</p> Mon, 22 Jun 2009 21:02:36 +0000 mfoss comment 54386 at https://www.ejabberd.im mod_statsdx with traffic stats on multiple node cluster https://www.ejabberd.im/mod_stats2file#comment-54381 <p>Hi,</p> <p> I'm trying to add mod_statsdx to a multi-node cluster of ejabberd 2.0.5 machines. I wanted to add the traffic stats so I did:</p> <p>{mod_statsdx, [{hooks, traffic}]}</p> <p> But that just made the module not load. I had to set it to {mod_statsdx, [{hooks, true}]} (but then, there are no traffic stats.) How do I enable the statistics for traffic?</p> <p> Also, do I have to run this on all my nodes or just one of them?</p> <p> Thanks!</p> <p> Tdm4</p> Mon, 22 Jun 2009 16:17:08 +0000 tdm4 comment 54381 at https://www.ejabberd.im Re: Registered users of server only checks internal database https://www.ejabberd.im/mod_stats2file#comment-53989 <p>I see, thank you for the explanation!</p> <p>I checked the stats-vhost-jabberdomain.tld.html files and found accurate numbers of users for our two secondary domains. The primary domain with almost 3000 users is not shown correct, I only see 0 registered users. All three domains use MySQL as database and I cannot think of anything which is different in the configuration which can affect this.</p> <p>My error or is there a bug?</p> <p>Regards,<br /> Martin</p> Wed, 04 Feb 2009 13:09:42 +0000 Roi comment 53989 at https://www.ejabberd.im Registered users of server only checks internal database https://www.ejabberd.im/mod_stats2file#comment-53988 <p>The number of registered accounts provided to mod_stats2file by mod_statsdx is calculated:</p> <ul> <li>For a vhost (stats-vhost-localhost.html): the corresponding authentication system is used. </li><li>For the whole server (stats-server-.html): only the internal database is checked. So, if some vhost uses a different auth method, such users are not counted in this statistic. </li></ul> <p>So, the value of "Registered users" in the global server is only accurate when all vhosts use internal auth.</p> Wed, 04 Feb 2009 12:02:39 +0000 mfoss comment 53988 at https://www.ejabberd.im mod_stats2file does not alter "Registered users" https://www.ejabberd.im/mod_stats2file#comment-53987 <p>Hello all,</p> <p>I'm using ejabberd 2.0.3 Debian and mod_statsdx/mod_stats2file.</p> <p>In the files mod_stats2file is creating I always see the same number of "Registered users" over the last days - since I implemented the module.</p> <p>Although the number of registered users is rising permanently.</p> <p>Regards,<br /> Martin</p> Wed, 04 Feb 2009 08:29:32 +0000 Roi comment 53987 at https://www.ejabberd.im mod_statsdx updated, tested with hooks: success https://www.ejabberd.im/mod_stats2file#comment-53577 <div class="quote-msg"> <div class="quote-author"><em>evadim</em> wrote:</div> <p>how many in server with ~500-1000 active users?</p></div> <p>I've updated mod_statsdx in SVN. It has been running with {hooks, true} for several days in a production ejabberd server (500 concurrent users aprox). So hooks work correctly for me now :)</p> <p>I didn't measure the resource consumption of hooks. If you try the module with hooks, and you notice beam consumes much more CPU or RAM, please tell me.</p> Tue, 23 Sep 2008 14:14:46 +0000 mfoss comment 53577 at https://www.ejabberd.im thanks https://www.ejabberd.im/mod_stats2file#comment-53538 <p>thanks</p> Sat, 06 Sep 2008 19:39:37 +0000 evadim comment 53538 at https://www.ejabberd.im Don't enable mod_statsdx hooks yet. https://www.ejabberd.im/mod_stats2file#comment-53537 <div class="quote-msg"> <div class="quote-author"><em>evadim</em> wrote:</div> <p>README says:<br /> <cite><br /> hooks: Set to 'true' to enable hooks and related statistics.<br /> This option by default 'false' because it is expected to<br /> consume many resources in very populated servers.<br /> </cite><br /> how many in server with ~500-1000 active users?</p></div> <p>Better do not enable the hooks option at all. I tried with just 300 concurrent users and after some minutes the module stopped. I'll try again the next week, and hopefully I'll be able to commit an improvement. You'll notice in the SVN log when the option is safe to be used.</p> Fri, 05 Sep 2008 16:31:52 +0000 mfoss comment 53537 at https://www.ejabberd.im thanks, it works! previously https://www.ejabberd.im/mod_stats2file#comment-53536 <p>thanks, it works! previously i'm cp mod_stats2file.erl &amp; mod_statsdx.erl to /src - ejabberd don't compile, after i'm cp mod_statsdx.erl to /src/web all works fine.</p> <p>README says:<br /> <cite><br /> hooks: Set to 'true' to enable hooks and related statistics.<br /> This option by default 'false' because it is expected to<br /> consume many resources in very populated servers.<br /> </cite><br /> how many in server with ~500-1000 active users?</p> Fri, 05 Sep 2008 14:45:21 +0000 evadim comment 53536 at https://www.ejabberd.im Modules work with ejabberd 2.0.x https://www.ejabberd.im/mod_stats2file#comment-53528 <p>I briefly tested mod_statsdx and mod_stats2file with ejabberd trunk (similar to ejabberd 2.0.2) and they seemed to work correctly. I've also updated the documentation, check SVN.</p> Wed, 03 Sep 2008 21:44:56 +0000 mfoss comment 53528 at https://www.ejabberd.im