Graphing 0 while data is present

This is a discussion on Graphing 0 while data is present within the RRD Users forums, part of the Networking and Network Related category; Hello, For a while now I've been trying to figure out why one of my graphs will always graph ...


Go Back   Usenet Forums > Networking and Network Related > RRD Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-08-2006
Mayo Jordanov
 
Posts: n/a
Default Graphing 0 while data is present

Hello,

For a while now I've been trying to figure out why one of my graphs
will always graph 0s but doing rrdfetch or even printing and operations
on the data via CDEF and VDEF functions produce the right results.

The graph can be seen at http://p.oyam.ca/junk/mem.png and the command
used to generate it is at the end of this message. I realized there is
a whole lot of extra stuff there, but that's from experiments and trial
and error getting it to graph at least something. The original script
uses full paths, I've just modified it here to make it more readable
and protect the innocent :)

Any ideas or suggestions?

Thanks,
mayo


/usr/local/bin/rrdtool graph ./rrd/mem.png \
--start \
-86400 \
-y 1:1 \
-a PNG \
-w 600 \
-h 150 \
-b 1024 \
-X 1 \
-t 'Memory Usage' \
--font DEFAULT:7:./rrd/resources/lucida_console.ttf \
-n LEGEND:7:./rrd/resources/lucida_console.ttf \
-c MGRID#888888FF \
-c GRID#C8C8C8FF \
-c ARROW#636363FF \
-c FRAME#636363FF \
DEF:shared_raw=./rrd/mem.rrd:shared:AVERAGE \
DEF:cache_raw=./rrd/mem.rrd:cache:AVERAGE \
DEF:buf_raw=./rrd/mem.rrd:buf:AVERAGE \
DEF:free_raw=./rrd/mem.rrd:free:AVERAGE \
DEF:total_raw=./rrd/mem.rrd:total:AVERAGE \
DEF:swapfree_raw=./rrd/mem.rrd:swapfree:AVERAGE \
DEF:swaptotal_raw=./rrd/mem.rrd:swaptotal:AVERAGE \
CDEF:shared=shared_raw,1024,* \
CDEF:cache=cache_raw,1024,* \
CDEF:buf=buf_raw,1024,* \
CDEF:free=free_raw,1024,* \
CDEF:total=total_raw,1024,* \
CDEF:swapfree=swapfree_raw,1024,* \
CDEF:swaptotal=swaptotal_raw,1024,* \
VDEF:totalmax=total,MAXIMUM \
VDEF:cachemax=cache,MAXIMUM \
VDEF:cacheavg=cache,AVERAGE \
VDEF:cachemin=cache,MINIMUM \
VDEF:cachecur=cache,LAST \
VDEF:bufmax=buf,MAXIMUM \
VDEF:bufavg=buf,AVERAGE \
VDEF:bufmin=buf,MINIMUM \
VDEF:bufcur=buf,LAST \
VDEF:freemax=free,MAXIMUM \
VDEF:freeavg=free,AVERAGE \
VDEF:freemin=free,MINIMUM \
VDEF:freecur=free,LAST \
COMMENT:"\n" \
COMMENT:" " \
COMMENT:"Current " \
COMMENT:"Maximum " \
COMMENT:"Average " \
COMMENT:"Minimum\n" \
LINE1:cache#258E00:"Cache " \
GPRINT:cachecur:"%3.2lf %s" \
GPRINT:cachemax:" %3.2lf %s" \
GPRINT:cacheavg:" %3.2lf %s" \
GPRINT:cachemin:" %3.2lf %s\n" \
AREA:buf#E79429:"Buffers " \
GPRINT:bufcur:"%3.2lf %s" \
GPRINT:bufmax:" %3.2lf %s" \
GPRINT:bufavg:" %3.2lf %s" \
GPRINT:bufmin:" %3.2lf %s\n" \
AREA:free#DB3A3A:"Free " \
GPRINT:freecur:"%3.2lf %s" \
GPRINT:freemax:"%3.2lf %s" \
GPRINT:freeavg:" %3.2lf %s" \
GPRINT:freemin:" %3.2lf %s\n" \
LINE1:total#FF0000:"Total Memory " \
GPRINT:totalmax:"%3.2lf %s\n" \
COMMENT:"\n" \
COMMENT:"Last updated\: date"

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0