Moving Graphs To Other Graph Hierarchy Trees
Moderators: Developers, Moderators
Moving Graphs To Other Graph Hierarchy Trees
How can I move graphs in one Hierarchy Tree to another? I accidently made all of my graphs in the default tree
In include/utility_functions.php change line 306 from:
to:
In the same file change line 377 from:
to:
- bulek
Code: Select all
$graph_vertical_label = "Bytes Per Second";
Code: Select all
$graph_vertical_label = "Bits Per Second";
Code: Select all
$sql_id = mysql_query("insert into rrd_graph_item (dsid,colorid,textformat,
sequence,graphid,graphtypeid,consolidationfunction,hardreturn) values ($datasource_id[$o],
$graph_color_array[$s],\"$graph_text_format_array[$s]\",((($o*4)+$s)+1),$graph_id,$graph_type,$graph_cf_function,
\"$graph_hard_return_array[$s]\")",$cnn_id);
Code: Select all
$sql_id = mysql_query("insert into rrd_graph_item (dsid,colorid,textformat,
sequence,graphid,graphtypeid,consolidationfunction,hardreturn,cdefid) values ($datasource_id[$o],
$graph_color_array[$s],\"$graph_text_format_array[$s]\",((($o*4)+$s)+1),$graph_id,$graph_type,$graph_cf_function,
\"$graph_hard_return_array[$s]\",2)",$cnn_id);
It's not so strightforward so I will stay with non-hero status I am doing such operations directly on mysql table. The only one you have to change is called "graph_hierarchy_items". I'm not able to automate this because of time constraints but maybe someone else is willing to create such a very useful script?
- bulek
- bulek
Who is online
Users browsing this forum: No registered users and 3 guests