[rrd-users] Re: Gigabytes of logs: "libpng error: stream error"

Daniellek daniel at fenert.net
Tue Apr 8 15:45:14 MEST 2003


W dniu Tue, Apr 08, 2003 at 11:35:41PM +1000, Mark Constable wystukał(a):
>the above two lines look screwy to me.

Sorry, I've copied it from links, and while these lines where long, they were cropped
by width of my console :)
Here's the full version:

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start="-86400" \
--title="Traffic Analysis for Peer" \
--rigid \
--base=1000 \
--height=400 \
--width=700 \
--upper-limit=2306867 \
--lower-limit=-2306867 \
--vertical-label="Bits Per Second" \
DEF:a="/home/www/cacti/rra/traf_4_in.rrd":traf_:AVERAGE \
DEF:b="/home/www/cacti/rra/traf_4_out.rrd":traf_:AVERAGE \
CDEF:cdefa=a,-8,* \
CDEF:cdefc=a,8,* \
CDEF:cdeff=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
HRULE:-2097152#FF4105:"MAX Inbound 2Mbit/s\n" \
GPRINT:cdefc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefc:MAX:"Maximum\:%8.2lf %s" \
AREA:cdeff#F51D30:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
HRULE:0#000000:"" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
HRULE:2097152#FF4105:"Max Outbound 2Mbit/s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" </PRE>

-- 
Daniel Fenert                 --==> daniel at fenert.net <==--
==-P o w e r e d--b y--S l a c k w a r e-=-ICQ #37739641-==
Największe zwycięstwo nad kobietą to uciec od niej -- Napoleon
=======- http://daniel.fenert.net/ -=======< +48604628083 >

--
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