Quote:
Originally Posted by amcd
What did you use to get that graph?
|
The software that manages keeping track of the data and generating the graphs is called Cricket. It's similar to MRTG if you've heard of that.
http://cricket.sourceforge.net/
Once you get cricket setup and actually working (not the easiest thing to do) you can branch off of the example http performance demos and add in a datasource to keep the number of users online right now.
The script I use to get the number of users is:
Code:
#!/bin/sh
num_users_line=`fetch -o - http://www.mysite.com/forum 2>/dev/null | grep "Currently Active"`
echo `echo "$num_users_line" | perl -e 'while(<>){print $1 if m/: (\d+)/;}'`
If you actually get cricket up and running (or someone does) and wants me to share the cricket conf I use to get that particular graph I'd be happy to share.