[rrd-users] rrdtool and irc

Psyk (Guillaume C.) mailing-lists at ekynox.net
Mon Aug 16 15:44:38 MEST 2004


Hello,

	I explain my project: I'm a student, and I'm trying to realise a website
monitoring french speaking irc networks. A beta preview or what the site
will look like can be found at http://spider.ekynox.net/ (that's in french
:/).
The idea was to grab datas (I've programmed a PHP bot for that), and
generate graphs from the datas collected: count of users, channels, ircops
online and servers. The robot, as connecting on several networks, is
raisonably configured to connect only once an hour. From the real time datas
collected, I'd like it to send to rrdtools the instructions to generate
dayly, weekly, monthly and yearly graphs.

By now, I've tried so many tests I really don't think I'll be able to find a
solution on my own. My main probleme is about "steps", my bot collects datas
each hour, and I want rrdtool to accept those datas, and to generate the
graphs only using 1 value by hour.

Here are the last trys I did:

##### RRD FILE GENERATION
/usr/bin/rrdtool/bin/rrdtool create ./rrdtest/ekynox.rrd --step 1800
DS:users:GAUGE:5400:0:U
DS:ircops:GAUGE:5400:0:U
DS:servers:GAUGE:5400:0:U
DS:channels:GAUGE:5400:0:U
RRA:AVERAGE:0.5:2:24
RRA:AVERAGE:0.5:48:7
RRA:AVERAGE:0.5:336:4
RRA:AVERAGE:0.5:1344:31
RRA:MAX:0.5:2:24
RRA:MAX:0.5:48:7
RRA:MAX:0.5:336:4
RRA:MAX:0.5:1344:31

For that test, I tried to set the step to "1800" (connecting on my own
network) in order to make tests without having to wait an hour each time,
but the final goal is to set the step to one hour (3600 seconds).

##### RRD FILE UPDATE
/usr/bin/rrdtool/bin/rrdtool update ./rrdtest/ekynox.rrd N:14:77:14:6

##### RRD GRAPH COMPLETION (example for dayly graph)
/usr/bin/rrdtool/bin/rrdtool graph ../web/www/graphs/ekynox-day.png -a
PNG -h 200 -s -1day \
-v "eKySpider" -t "Graphique statistique du réseau ekynox (1 jour)" \
DEF:users=rrdtest/ekynox.rrd:users:AVERAGE \
DEF:channels=rrdtest/ekynox.rrd:channels:AVERAGE \
DEF:servers=rrdtest/ekynox.rrd:servers:AVERAGE \
DEF:ircops=rrdtest/ekynox.rrd:ircops:AVERAGE \
AREA:users#8080FF:"Utilisateurs" \
LINE2:channels#FFFF40:"Salons" \
LINE2:servers#00C000:"Serveurs" \
LINE2:ircops#FF8080:"Ircops"


And sometimes the graphs are printing some wrong datas, sometimes nothing
( http://spider.ekynox.net/graphs/ekynox-day.png ).

If you have any idea, suggestion, it would be really really nice from you as
I really don't know how to solve my problem.

Amically,
Psyk.

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list