Move cacti to another machine,no image shown at graph tree.

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Move cacti to another machine,no image shown at graph tree.

Post by menjia »

i have moved my cacti to a new machine,include the datebase and rrd files,everything seems ok, rrd files are updated,and all images can be shown at "Graph Management" .

but when i view these graph at graph tree mode,there is no images,but when i click on the broken images of a host, it wil show me the correct 4 images,include daily weekly monthly and yearly.

i have tried to find there differents using Graph Properties:

this is the broken image code:

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=1137570233 \
--end=1137656633 \
--title="hazz-3com-86 - 3com Gateway Call Statics" \
--rigid \
--base=1000 \
--height=220 \
--width=500 \
--alt-autoscale-max \
--lower-limit=-65 \
COMMENT:"From 2006/01/18 15:43:53 To 2006/01/19 15:43:53\c" \
COMMENT:"  \n" \
--vertical-label="Calls(100X)" \
DEF:a="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwallcallstry_350.rrd":3comGwAllCallsTry:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwcallssuccess_351.rrd":3comGwCallsSuccess:AVERAGE \
DEF:c="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwcallsactive_349.rrd":3comGwCallsActive:AVERAGE \
CDEF:cdefa=a,100,* \
CDEF:cdefe=b,100,* \
CDEF:cdefbd=b,a,/,100,*,-1,* \
CDEF:cdefbf=b,a,/,100,* \
AREA:cdefa#DA4725:"Total Calls\:"  \
GPRINT:a:LAST:"     Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maxinum\:%8.2lf %s\n"  \
AREA:cdefe#FFFF00:"Sucessful Call\:"  \
GPRINT:b:LAST:"  Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maxinum\:%8.2lf %s\n"  \
LINE1:c#4668E4:"ActiveCalls\:"  \
GPRINT:c:LAST:"     Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maxinum\:%8.2lf %s\n"  \
HRULE:0#000000:""  \
LINE2:cdefbd#009F67:""  \
AREA:cdefbd#00BD27:"Call Sucess Rate\:"  \
GPRINT:cdefbf:LAST:"Current\:(%5.2lf %%)"  \
GPRINT:cdefbf:AVERAGE:"Average\:(%5.2lf %%)"  \
GPRINT:cdefbf:MAX:"Maxinum\:(%5.2lf %%)\n"
this is the right graph code:

Code: Select all

/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="hazz-3com-86 - 3com Gateway Call Statics" \
--rigid \
--base=1000 \
--height=220 \
--width=500 \
--alt-autoscale-max \
--lower-limit=-65 \
--vertical-label="Calls(100X)" \
DEF:a="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwallcallstry_350.rrd":3comGwAllCallsTry:AVERAGE \
DEF:b="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwcallssuccess_351.rrd":3comGwCallsSuccess:AVERAGE \
DEF:c="/usr/local/apache/htdocs/cacti/rra/hazz3com86_3comgwcallsactive_349.rrd":3comGwCallsActive:AVERAGE \
CDEF:cdefa=a,100,* \
CDEF:cdefe=b,100,* \
CDEF:cdefbd=b,a,/,100,*,-1,* \
CDEF:cdefbf=b,a,/,100,* \
AREA:cdefa#DA4725:"Total Calls\:"  \
GPRINT:a:LAST:"     Current\:%8.2lf %s"  \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:a:MAX:"Maxinum\:%8.2lf %s\n"  \
AREA:cdefe#FFFF00:"Sucessful Call\:"  \
GPRINT:b:LAST:"  Current\:%8.2lf %s"  \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:b:MAX:"Maxinum\:%8.2lf %s\n"  \
LINE1:c#4668E4:"ActiveCalls\:"  \
GPRINT:c:LAST:"     Current\:%8.2lf %s"  \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:c:MAX:"Maxinum\:%8.2lf %s\n"  \
HRULE:0#000000:""  \
LINE2:cdefbd#009F67:""  \
AREA:cdefbd#00BD27:"Call Sucess Rate\:"  \
GPRINT:cdefbf:LAST:"Current\:(%5.2lf %%)"  \
GPRINT:cdefbf:AVERAGE:"Average\:(%5.2lf %%)"  \
GPRINT:cdefbf:MAX:"Maxinum\:(%5.2lf %%)\n" 
there different are
--start=
--end=

but i do not know how to correct it,please help me and share your idea, thanks.
Attachments
brokenimage.JPG
brokenimage.JPG (33.21 KiB) Viewed 2033 times
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

Can you try executing the "broken image code" at the command line to see if RRDtool returns any errors?

-Ian
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Double check your rrdtool version and path is correct on the new server.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
menjia
Posts: 26
Joined: Sat Nov 19, 2005 12:41 am

Post by menjia »

rony wrote:Double check your rrdtool version and path is correct on the new server.
it is works fine now, i forgot to change my rrdtoll version from 1.0 to 1.2

thanks, forgive me my fault.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest