[rrd-users] Parameter problem - was: LAST always returning zero

Alex van den Bogaerdt alex at ergens.op.het.net
Sat Mar 8 09:08:18 CET 2008


On Fri, Mar 07, 2008 at 06:38:53PM -0600, Wes wrote:

> > --upper-limit 10 --vertical-label "xDisabled Queue Count" -w 400 -h 100 -s
> > "now-2h" -e "1204935598"
> > 
> 'end' is defined as:  ³int (`$RRDTOOL last $rrdFile`  / 10) * 10²

How on earth can an integer multiplied by 10 end up as 1204935598 ?

Notice: *8, not *0.


The graph may look fine, but in reality there is an empty column on
the far right hand side.

Try adding:

CDEF:red=queue1,UN,INF,UNKN,IF
AREA:red#FF0000:unknown

or:

CDEF:red1=queue1,UN,INF,UNKN,IF
AREA:red1#FF0000:unknown
CDEF:red2=queue2,UN,-INF,UNKN,IF
AREA:red2#FF0000:unknown

This won't solve your problem but it should make it more visible.

Another debug technique:

If your script has a variable '$end' or so, change
-t "Disabled Queues (mmp11es)" 
into
-t "Disabled Queues (mmp11es) upto $end" 

You could combine this with
VDEF:last=queue1,LAST
GPRINT:last:"%s":strftime


This way you have two timestamps on your graph, one you asked and
one you got.

-- 
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/



More information about the rrd-users mailing list