[rrd-users] rrd and python -> HELP!!!
Sam Umbach
sumbach at gmail.com
Tue Apr 24 22:42:17 CEST 2007
> d) the graphs always show a straight line at '27 k' as seen on
> http://82.130.102.202
>
> --------------CODE-----------------
>
> #rrdtool.graph(gfxfiles[0],'--end','now','--start','end-43200s','--title','Players
> on
> ETH1','DEF:27015='+rrdfile+':27015:AVERAGE','LINE2:27015#FF0000:\'ETH1\'')
>
> rrdtool.graph(gfxfiles[1],'--end','now','--start','end-6000s','--title','Players
> on
> ETH2','DEF:27016='+rrdfile+':27016:AVERAGE','LINE2:27016#FFFF00:\'27016\'')
>
> #rrdtool.graph(gfxfiles[2],'--end','now','--start','end-43200s','--title','Players
> on
> ETH3','DEF:27017='+rrdfile+':27017:AVERAGE','LINE2:27017#FF0000:\'ETH3\'')
Your DEFs are "27015", "27016", and "27017"--that's where your 27k is
coming from. Give your DEFs non-numeric names so rrdtool doesn't
confuse them with numeric literals (try
'DEF:srv27015='+rrdfile+':27015:AVERAGE', and make the corresponding
change to the LINE2 directives as well).
-Sam
More information about the rrd-users
mailing list