[rrd-users] can't use -B.-O flag
^Herman^
herman at ofzo.nl
Sat Dec 21 15:00:00 MET 2002
rrdtool graph /home/herman/public_html/stats/misc_test.gd --start -1d \
--title "Misc. \
DEF:cs=vmstat.rrd:cs:AVERAGE \
DEF:intr=vmstat.rrd:int:AVERAGE \
CDEF:allusers=cs,intr,+ \
CDEF:wrongdata=allusers,UN,INF,UNKN,IF \
AREA:wrongdata#FF0000:"Wrong data" \
AREA:cs#ff3377:"(Context switches/s)" \
LINE2:intr#0000ff:"Intr/s"
Executes cleanly and gives me a gd image.
root at systemoperator:/home/herman/stats# sh test.sh
495x172
Now i use this image as background since i do not know how to generate a
.gd image from a jpg/bmp/gif
rrdtool graph /home/herman/public_html/stats/misc_test.gd --start -1d \
--title "Misc. $arg" \
-B /home/herman/public_html/stats/misc_test.gd \
DEF:cs=vmstat.rrd:cs:AVERAGE \
DEF:intr=vmstat.rrd:int:AVERAGE \
CDEF:allusers=cs,intr,+ \
CDEF:wrongdata=allusers,UN,INF,UNKN,IF \
AREA:wrongdata#FF0000:"Wrong data" \
AREA:cs#ff3377:"(Context switches/s)" \
LINE2:intr#0000ff:"Intr/s"
after 2 minutes the program segfaults.
root at systemoperator:/home/herman/stats# sh test.sh
test.sh: line 11: 7826 Segmentation fault rrdtool graph
/home/herman/public_html/stats/misc_test.gd --start -1d --title "Misc.
$arg" -B /home/herman/public_html/stats/misc_test.gd
DEF:cs=vmstat.rrd:cs:AVERAGE DEF:intr=vmstat.rrd:int:AVERAGE
CDEF:allusers=cs,intr,+ CDEF:wrongdata=allusers,UN,INF,UNKN,IF
AREA:wrongdata#FF0000:"Wrong data" AREA:cs#ff3377:"(Context switches/s)"
LINE2:intr#0000ff:"Intr/s"
I can't get the overlay and background pictures to work.
so I have 2 questions.
1. How do i convert ANY image to gd format.
2. Why does it segfault over and over. and how can i fix this ?
--
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