[rrd-users] Re: Fw: Re: PREV in 1.0.38 ?

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Tue Oct 1 13:13:22 MEST 2002


Dear Sir,

I am writing to thank you for your letter and ask if you could perhaps
spot the mistake or let me know what I am doing incorrectly ?

On Mon, Sep 30, 2002 at 08:39:40AM -0300, Gonzalo Augusto Arana Tagle wrote:
> 
> 
> Darren,
> 
> I sumitted the patch to implement PREV(vname) operand in rrdtool's RPN
> language, which was applied to 1.0.39. The operator PREV you may find on
> 1.0.38 I believe it is PREV, not PREV(vname).
> PREV operand just fetches the previous value of the vname you are
> defining , PREV(vname) fetches the previous value of the vname you can
> specify.
> Mi advice: get the latest stable rrdtool version (1.0.39).
> Hope it helps,

tsitc> rrdtool -v
RRDtool 1.0.39  Copyright 1997-2001 by Tobias Oetiker <tobi at oetiker.ch>

Usage: rrdtool [options] command command_options

Valid commands: create, update, graph, dump, restore,
                last, info, fetch, tune, resize, xport

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

tsitc> man rrdcgi | tail

3rd Berkeley Distribution     1.0.39                    RRDCGI(1)
tsitc> 


tsitc> cat /usr/local/apache/cgi-bin/coms_graph_deltas 
#!/usr/local/bin/rrdcgi
<HTML>
<HEAD><TITLE>COMS Processing in last hour</TITLE></HEAD>
<BODY>
<P>

<RRD::GRAPH 
        ../htdocs/images/png/coms_deltas.png
        --imginfo '<IMG SRC=../images/png/%s WIDTH=800 HEIGHT=600>'
        --lazy
        --start 'now -1hour'
        --end 'now'
        --title="COMS Processing in last hour"
        -h 600
        -w 800
        DEF:successes=../htdocs/rrd/coms.rrd:successes:AVERAGE
        DEF:failures=../htdocs/rrd/coms.rrd:failures:AVERAGE
        CDEF:prev_failures=failures,PREV
        CDEF:prev_successes=successes,PREV
        CDEF:delta_fail=failures,prev_failures,-
        CDEF:delta_succ=successes,prev_successes,-
        AREA:delta_fail#ff0000:"delta Failures"
        STACK:delta_succ#00ff00:"delta Successes">
</P>
</BODY>
</HTML>
tsitc> 

tsitc> cd /usr/local/apache/htdocs/
tsitc> /usr/local/apache/cgi-bin/coms_graph_deltas
(offline mode: enter name=value pairs on standard input)
Content-Type: text/html
Content-Length: 404

<HTML>
<HEAD><TITLE>COMS Processing in last hour</TITLE></HEAD>
<BODY>
<P>

[ERROR: RPN final stack size != 1]
</P>
</BODY>
</HTML>



Thank you,

Yours sincerely.

-- 
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------

'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'

from Meditation 17, J Donne.

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