Yesterday someone in an irc channel I am in was trying to graph the current
number of users in the irc channels he is in with Cacti. His problem was
quite simple: How do I get the number of users out of my irssi? My default
statement in those cases is: "Just script it. It can not be that hard."
And fortunately it is not. Although I was not able to complete the script
in the estimated 15 minutes (Blame the GPRS coverage between apeldoorn and
amersfoort), I did fix the script in 26 minutes. You can download the
script
here.
The usage is quite simple: Just load the script in irssi and set the output file to
something usefull with /set usercountlog_file
/where/you/want/your/file. And every minute or so the file is updated with
the current number of users. The format of the file should be self
explanatory.