When trying to do a Rrd::graph, I've a wonderful SEGMENT VIOLATION.
stats:test is a simple procedure wich just launch my Rrd::graph.Debug (eggdrop v1.6.15) written Wed Oct 1 12:06:24 2003
Full Patch List:
Tcl library: /usr/share/tcl8.3
Tcl version: 8.3.5 (header version 8.3.5)
Compile flags: gcc -pipe -g -O2 -Wall -I.. -I.. -DHAVE_CONFIG_H
Link flags: gcc -pipe
Strip flags: strip
tclhash.c/684 [Tcl proc: stats:test, param: $_dcc1 $_dcc2 $_dcc3]
When putting the Rrd::graph in a file and launching it by shell, no trouble, my graph is correctly created.
Anyone understand which kind of trouble it might be?
TCL call
Code: Select all
Rrd::graph $rrdfiles/servers-day.png -a PNG -s -1day -v \"servers\/ircops\" -t \"Servers and ircops on line (1 day)\" DEF:totalservers=$rrdfiles/$main_serv.rrd:totalservers:AVERAGE DEF:maxservers=$rrdfiles/$main_serv.rrd:totalservers:MAX DEF:totalircops=$rrdfiles/$main_serv.rrd:ircops:AVERAGE DEF:maxircops=$rrdfiles/$main_serv.rrd:ircops:MAX DEF:usersglobal=$rrdfiles/$main_serv.rrd:usersglobal:AVERAGE CDEF:copsperserver=totalircops,totalservers,\/ CDEF:percircops=totalircops,100,*,usersglobal,\/ AREA:totalservers\#FF0000:\"Servers on line\" LINE2:totalircops\#000000:\"Ircops on line\\l\" GPRINT:totalservers:AVERAGE:\"Servers -> Average\\: %lf\" GPRINT:maxservers:MAX:\"Max\\: %lf\" GPRINT:totalservers:LAST:\"Current\\: %lf\\l\" GPRINT:totalircops:AVERAGE:\"Ircops -> Average\\: %lf\" GPRINT:maxircops:MAX:\"Max\\: %lf\" GPRINT:totalircops:LAST:\"Current\\: %lf\\l\" GPRINT:copsperserver:LAST:\"Ircops per Server\\: %lf\\l\" GPRINT:percircops:LAST:\"Ircops\\: %lf%% of total users\\l\"
Code: Select all
rrdtool graph /home/eggdrop/ircmrtg/servers-day.png -a PNG -s -1day -v "servers/ircops" -t "Servers and ircops on line (1 day)" DEF:totalservers=/home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd:totalservers:AVERAGE DEF:maxservers=/home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd:totalservers:MAX DEF:totalircops=/home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd:ircops:AVERAGE DEF:maxircops=/home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd:ircops:MAX DEF:usersglobal=/home/eggdrop/ircmrtg/irc.passion-tchat.com.rrd:usersglobal:AVERAGE CDEF:copsperserver=totalircops,totalservers,/ CDEF:percircops=totalircops,100,*,usersglobal,/ AREA:totalservers#FF0000:"Servers on line" LINE2:totalircops#000000:"Ircops on line\l" GPRINT:totalservers:AVERAGE:"Servers -> Average\: %lf" GPRINT:maxservers:MAX:"Max\: %lf" GPRINT:totalservers:LAST:"Current\: %lf\l" GPRINT:totalircops:AVERAGE:"Ircops -> Average\: %lf" GPRINT:maxircops:MAX:"Max\: %lf" GPRINT:totalircops:LAST:"Current\: %lf\l" GPRINT:copsperserver:LAST:"Ircops per Server\: %lf\l" GPRINT:percircops:LAST:"Ircops\: %lf%% of total users\l"