1
0
Fork 0
My old website. I completely made this one in bash-scripting.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
1.3 KiB

<b>Plotting users on facebook</b>
I was playing with Munin, the "network resource monitoring tool". But you can also
plot other things than CPU usage or network traffic. As long as you can capture it
in a value.
My default chat application is not facebook, but IRC. To chat with facebook users,
I use a ZNC bouncer together with Bitlbee.
+---------+ +---------+ +---------+ +---------+
| | | | | | | |
| Client |--->| ZNC |--->| Bitlbee |--->| Facebook|
| (me) | | (log) | | | | |
+---------+ +---------+ +---------+ +---------+
The ZNC bouncer is logging the users coming and going to the channel when they
use facebook. I used the Munin plugin "loggrep_" with the next config on that
logfile:
[loggrep_facebook]
user rogier
env.regex localhost sets mode
env.label Facebook users
env.logfile /home/rogier/.znc/users/rogier/moddata/log/facebook.log
env.title User count on facebook
So I filter the logfile for the text "localhost sets mode" because when a user
came online, he get's a +v from bitlbee. After a while, you will get the next
graph.
<center>
<img src='http://noc.sciuro.org/munin/sciuro.org/irc.sciuro.org/loggrep_facebook-week.png'>
</center>