You would need to watch the adduser and deluser events off the top of my head. Start by writing to the log file first, to make sure you are properly catching the events, then you can hook up your MySQL interface.
On Mon, Nov 15, 2010 at 2:24 PM, Christian Jensen <[email protected] > wrote: > Would I need to trap for adduser > <http://www.ape-project.org/docs/server/events/adduser.html>and join > <http://www.ape-project.org/docs/server/events/join.html>when they enter > and deluser <http://www.ape-project.org/docs/server/events/deluser.html> and > left <http://www.ape-project.org/docs/server/events/left.html> when they > leave or just one of each those? If just one of each... which ones? :) > > I am leaning towards a MySQL instance because I can can write trending > information and whatnot. > > Cacti has plugins to read data from tables too. > > I appreciate any help - I will submit whatever I build back. > > What would it take for me to be able make edits to the wiki? > > Thanks again! > Christian > > On Mon, Nov 15, 2010 at 11:01 AM, Johnathan Leppert < > [email protected]> wrote: > >> For debugging purposes, you can easily write out to the log file when >> users connect/disconnect/timeout. >> >> For something more permanent, you could connect to a Memcache instance via >> the sockClient and get/set a specific key. Memcache is a very simple >> protocol and should take no time to write a simple client. You could >> increment it or decrement it when users connect/disconnect/timeout etc. >> >> Johnathan >> >> On Mon, Nov 15, 2010 at 12:46 PM, Christian Jensen < >> [email protected]> wrote: >> >>> Hi, >>> >>> I am not sure if this has been asked before - is there an easy way to >>> find out the number of connected users? Right now I am using netstat >>> to dump to a file and count the open connections but this seems like a >>> hack. >>> >>> I would love to be able to just find a number somewhere but ideally >>> would like to connect it to Cacti or something. I suppose SNMP is a >>> bit out of reach but writing to MySQL or a file would be awesome. >>> >>> Thanks! >>> Christian >>> >>> P.S. We have been using APE in production from about a week now - from >>> what I can see we hit 15K users the other day. >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "APE Project" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<ape-project%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/ape-project?hl=en >>> --- >>> APE Project (Ajax Push Engine) >>> Official website : http://www.ape-project.org/ >>> Git Hub : http://github.com/APE-Project/ >>> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "APE Project" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<ape-project%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/ape-project?hl=en >> --- >> APE Project (Ajax Push Engine) >> Official website : http://www.ape-project.org/ >> Git Hub : http://github.com/APE-Project/ >> > > > > -- > Christian Jensen > Director of Technology > Officepools.com Services Ltd. > [email protected] > http://www.officepools.com > 1177 West Hastings, Suite 2088 > Vancouver, BC V6E 2K3 > +1 604 688-8999 x229 Office > +1 778 996-4283 Mobile > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<ape-project%[email protected]> > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ > -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/
