[SOLVED] How to rename graph title

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

Moderators: Developers, Moderators

Post Reply
mike007
Posts: 3
Joined: Thu Feb 01, 2007 4:36 pm

[SOLVED] How to rename graph title

Post by mike007 »

I am sorry if this was answered before but I could not find any thing on it.

I just created few graphs and changed the name from:

Data Sources -> Clicked a graph -> changed the "name" field -> save

But I don't see the changes in the graphs. Am i missing something here ?? :(

thanks
M
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You did change the Data Source.
You should change either
- the Graph Template Title, if you want to forward the change to all Graphs belonging to that template, or
- the Graph from Graph Management. But you will be able to edit the Title only, if the according Graph Template as Title
Use Per-Graph Value (Ignore this Value)
checked
Reinhard
mike007
Posts: 3
Joined: Thu Feb 01, 2007 4:36 pm

Post by mike007 »

Sorry but I still didn't get it right.


I want to rename the "Title" of each graph individually.

From the "Graph Management" I can see:

/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="ADMC-4500-1 - Traffic - short wave fibe/54" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
DEF:a="/usr/local/www/mrtg/cacti/rra/admc65091_traffic_in_295.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/www/mrtg/cacti/rra/admc65091_traffic_in_295.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf%s\n" \
LINE1:cdefe#002A97:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf%s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf%s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf%s"


My question is, how do I change:
--title="ADMC-4500-1 - Traffic - short wave fibe/54" to something else, manually for eg "To the Internet " ?

thanks
M
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please make sure, the checkbox I advised above is checked (on the Graph Template belonging to your Graph). The goto Graph Management, select the Graph and change the text
Reinhard
mike007
Posts: 3
Joined: Thu Feb 01, 2007 4:36 pm

Post by mike007 »

Thanks a lot.
It works now.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests