[rrd-users] Re: Graphing to STDOUT

Kempf, Reed rkempf at rightnow.com
Thu May 22 16:40:27 MEST 2003


if you look in the man page for rrdgraph it will explain that you can substitute the filename with a - if you want to display an image to stdout.

here is an example:

rrdtool graph - \
        --start ${RRDDATE} \
        --title "${TITLE}" \
        --vertical-label load_time \
        --imginfo '<IMG SRC="img/%s" WIDTH="%lu" HEIGHT="%lu" ALT="Day">'\
        --imgformat PNG \
        DEF:about=${DBPATH}/${NUMBER}.rrd:about_time:AVERAGE \
        DEF:faq=${DBPATH}/${NUMBER}.rrd:faq_time:AVERAGE \
        DEF:error=${DBPATH}/${NUMBER}.rrd:error_code:AVERAGE \
        CDEF:v_error=error,-.1,LT,error,0,IF \
        CDEF:slow_load=faq,19.99,GT,faq,0,IF \
        HRULE:20#FF69B4:"Threshold" \
        AREA:faq#00FF00:"faq page" \
        AREA:about#0000FF:"about page" \
        AREA:v_error#FF0000:"error" \
        AREA:slow_load#00FFFF:"Slow Load"\\c \
        COMMENT:About-page\ \
        COMMENT:Average\: GPRINT:about:AVERAGE:%6.3lf%s \
        COMMENT:Min\: GPRINT:about:MIN:%6.3lf%s \
        COMMENT:Max\: GPRINT:about:MAX:%6.3lf%s\\c \
        COMMENT:Faq-page\ \
        COMMENT:Average\: GPRINT:faq:AVERAGE:%6.3lf%s \
        COMMENT:Min\: GPRINT:faq:MIN:%6.3lf%s \
        COMMENT:Max\: GPRINT:faq:MAX:%6.3lf%s\\c

HTH,

ReedK

-----Original Message-----
From: Jeff Rodriguez [mailto:jeff at unixisgod.com]
Sent: Thursday, May 22, 2003 2:31 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] Graphing to STDOUT


Is there any way to output the raw binary jpeg/png/gif data generated by RRDTOOL to stdout?
This way I could pipe it into a script for use on the web.

Thanks!

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

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