" border="0" alt="Graph Management" align="absmiddle"> " border="0" alt="Graph Management" align="absmiddle">
 Go
Template Item Configuration
0) { $default_item = $default[task_item_id]; }else{ $default_item = 0; } DrawMatrixRowAlternateColorBegin($colors[form_alternate1],$colors[form_alternate2],$i); $i++; ?> Task Item
The task to use for this graph item; not used for COMMENT fields. Item Group
Choose which graph item this GPRINT is associated with. NOTE: This field will be ignored if it is not a GPRINT. Color
The color that is used for this item; not used for COMMENT fields. Graph Item Type
How data for this item is displayed. Consolidation Function
How data is to be represented on the graph. CDEF Function
A CDEF Function to apply to this item on the graph. Value
For use with VRULE and HRULE, numbers only. GPRINT Options
These options only apply to the GPRINT function. Choose an option or enter a custom GPRINT string in the textbox (overides checkboxes). Text Format
The text of the comment or legend, input and output keywords are allowed. "; DrawStrippedFormItemCheckBox("hard_return",$template_item[hard_return],"Insert Hard Return","",false); ?> 0) { foreach ($input_list as $input) { /* we need to find out which graph items will be affected by saving this particular item */ $item_list = db_fetch_assoc("select graph_templates_item.id from graph_template_input_defs,graph_templates_item where graph_template_input_defs.graph_template_item_id=graph_templates_item.local_graph_template_item_id and graph_templates_item.local_graph_id=$form[local_graph_id] and graph_template_input_defs.graph_template_input_id=$input[id]"); /* get some variables */ $column_name = $input[column_name]; $graph_template_input_id = $input[id]; $column_value = $form[$graph_template_input_id]; /* loop through each item affected and update column data */ if (sizeof($item_list) > 0) { foreach ($item_list as $item) { db_execute("update graph_templates_item set $column_name=$column_value where id=$item[id]"); } } } } header ("Location: graphs.php?action=item&local_graph_id=$form[local_graph_id]"); break; case 'graph_duplicate': include_once ('include/utility_functions.php'); DuplicateGraph($id); header ("Location: graphs.php"); break; case 'item': include_once ("include/top_header.php"); $title_text = "Graph Template Management [edit]"; include_once ("include/top_table_header.php"); draw_graph_form_select("?action=item&local_graph_id=$args[local_graph_id]"); new_table(); $graph_template_id = db_fetch_cell("select graph_template_id from graph_local where id=$args[local_graph_id]"); $graph_template_name = db_fetch_cell("select name from graph_templates where id=$graph_template_id"); ?> Graph Item Configuration[Template: $graph_template_name]"; }?> Add  "; DrawMatrixHeaderItem("Graph Item",$colors[header_text],1); DrawMatrixHeaderItem("Task Name",$colors[header_text],1); DrawMatrixHeaderItem("Graph Item Type",$colors[header_text],1); DrawMatrixHeaderItem("CF Type",$colors[header_text],1); DrawMatrixHeaderItem("Item Color",$colors[header_text],3); print ""; $template_item_list = db_fetch_assoc("select graph_templates_item.id, graph_templates_item.text_format, graph_templates_item.value, graph_templates_item.hard_return, polling_items.descrip, rrd_ds_cdef.name as cdef_name, def_cf.name as consolidation_function_name, def_colors.hex, def_graph_type.name as graph_type_name from graph_templates_item left join polling_items on graph_templates_item.task_item_id=polling_items.item_id left join rrd_ds_cdef on cdef_id=rrd_ds_cdef.id left join def_cf on consolidation_function_id=def_cf.id left join def_colors on color_id=def_colors.id left join def_graph_type on graph_type_id=def_graph_type.id where graph_templates_item.local_graph_id=$args[local_graph_id] order by graph_templates_item.sequence_parent,graph_templates_item.sequence"); $group_counter = 0; if (sizeof($template_item_list) > 0) { foreach ($template_item_list as $item) { /* graph grouping display logic */ $bold_this_row = false; $use_custom_row_color = false; if (($item[graph_type_name] != "GPRINT") && ($item[graph_type_name] != $_graph_type_name)) { $bold_this_row = true; $use_custom_row_color = true; if ($group_counter % 2 == 0) { $alternate_color_1 = "EEEEEE"; $alternate_color_2 = "EEEEEE"; $custom_row_color = "D5D5D5"; }else{ $alternate_color_1 = $colors[alternate]; $alternate_color_2 = $colors[alternate]; $custom_row_color = "D2D6E7"; } $group_counter++; } $_graph_type_name = $item[graph_type_name]; if ($use_custom_row_color == false) { DrawMatrixRowAlternateColorBegin($alternate_color_1,$alternate_color_2,$i); }else{ print ""; } ?> Item # <HR>"; } ?> "; }?>"; }?> "; }?>"; }?> "; }?>"; }?> width="1%">   "; }?>"; }?> Delete  Graph Item Inputs 0) { foreach ($input_item_list as $item) { $current_def_value = db_fetch_row("select graph_templates_item.$item[column_name], graph_templates_item.id from graph_templates_item,graph_template_input_defs where graph_template_input_defs.graph_template_item_id=graph_templates_item.local_graph_template_item_id and graph_template_input_defs.graph_template_input_id=$item[id] and graph_templates_item.local_graph_id=$args[local_graph_id] limit 0,1"); $column_name = $item[column_name]; DrawMatrixRowAlternateColorBegin($colors[form_alternate1],$colors[form_alternate2],$i); $i++; ?> $item[description]"; }?> "; DrawStrippedFormItemRadioButton("$item[id]", $current_def_value[$column_name], "1", "Normal","1",true); DrawStrippedFormItemRadioButton("$item[id]", $current_def_value[$column_name], "2", "Exact Numbers","1",true); //DrawStrippedFormItemTextBox("gprint_custom",$template_item[gprint_custom],"","", "40"); print ""; break; case 'text_format': DrawFormItemTextBox("$item[id]",$current_def_value[$column_name],"","","40"); break; case 'hard_return': DrawFormItemCheckBox("$item[id]",$current_def_value[$column_name],"Insert Hard Return",""); break; } ?> " . db_fetch_cell("select title from graph_templates_graph where local_graph_id=$args[local_graph_id]") . "?", "graphs.php", "?action=graph_remove&local_graph_id=$args[local_graph_id]"); exit; } if (($config["remove_verification"]["value"] == "") || ($args[confirm] == "yes")) { db_execute("delete from graph_templates_graph where local_graph_id=$args[local_graph_id]"); db_execute("delete from graph_templates_item where local_graph_id=$args[local_graph_id]"); db_execute("delete from graph_local where id=$args[local_graph_id]"); } header ("Location: graphs.php"); break; case 'graph_edit': include_once ("include/top_header.php"); $title_text = "Graph Management [edit]"; include_once ("include/top_table_header.php"); draw_graph_form_select("?action=graph_edit&local_graph_id=$args[local_graph_id]"); new_table(); $use_graph_template = true; if (isset($args[local_graph_id])) { $local_graph_template_graph_id = db_fetch_cell("select local_graph_template_graph_id from graph_templates_graph where local_graph_id=$args[local_graph_id]"); $graphs = db_fetch_row("select * from graph_templates_graph where local_graph_id=$args[local_graph_id]"); $graphs_template = db_fetch_row("select * from graph_templates_graph where id=$local_graph_template_graph_id"); }else{ unset($graphs); unset($graphs_template); $use_graph_template = false; } if ($graphs[graph_template_id] == "0") { $use_graph_template = false; } $graph_template_name = db_fetch_cell("select name from graph_templates where id=$graphs[graph_template_id]"); ?> Graph Template Selection Selected Graph Template
Choose a graph template to apply to this graph. Please note that graph data may be lost if you change the graph template after one is already applied. Custom Graph Configuration[Template: $graph_template_name]"; }?> Title
$graphs_template[title]"; DrawFormItemHiddenTextBox("title",$graphs_template[title],""); }?> Image Format
" . db_fetch_cell("select name from def_image_type where id=$graphs_template[image_format_id]") . ""; DrawFormItemHiddenTextBox("image_format_id",$graphs_template[image_format_id],""); }?> Height
$graphs_template[height]"; DrawFormItemHiddenTextBox("height",$graphs_template[height],""); }?> Width
$graphs_template[width]"; DrawFormItemHiddenTextBox("width",$graphs_template[width],""); }?> Auto Scale
" . html_boolean_friendly($graphs_template[auto_scale]) . ""; DrawFormItemHiddenTextBox("auto_scale",$graphs_template[auto_scale],""); }?> Auto Scale Options
"; DrawStrippedFormItemRadioButton("auto_scale_opts", $graphs[auto_scale_opts], "1", "Use --alt-autoscale","2",true); DrawStrippedFormItemRadioButton("auto_scale_opts", $graphs[auto_scale_opts], "2", "Use --alt-autoscale-max","2",true); print ""; }else{ print ""; if ($graphs_template[auto_scale_opts] == "1") { print "Use --alt-autoscale"; }else{ print "Use --alt-autoscale-max";} print ""; DrawFormItemHiddenTextBox("auto_scale_opts",$graphs_template[auto_scale_opts],""); }?> Rigid Boundaries Mode
" . html_boolean_friendly($graphs_template[auto_scale_rigid]) . ""; DrawFormItemHiddenTextBox("auto_scale_rigid",$graphs_template[auto_scale_rigid],""); }?> Logarithmic Auto Scaling
" . html_boolean_friendly($graphs_template[auto_scale_log]) . ""; DrawFormItemHiddenTextBox("auto_scale_logg",$graphs_template[auto_scale_log],""); }?> Auto Padding
" . html_boolean_friendly($graphs_template[auto_padding]) . ""; DrawFormItemHiddenTextBox("auto_padding",$graphs_template[auto_padding],""); }?> Allow Grouping
" . html_boolean_friendly($graphs_template[grouping]) . ""; DrawFormItemHiddenTextBox("grouping",$graphs_template[grouping],""); }?> Allow Graph Export
" . html_boolean_friendly($graphs_template[export]) . ""; DrawFormItemHiddenTextBox("export",$graphs_template[export],""); }?> Upper Limit
$graphs_template[upper_limit]"; DrawFormItemHiddenTextBox("upper_limit",$graphs_template[upper_limit],""); }?> Lower Limit
$graphs_template[lower_limit]"; DrawFormItemHiddenTextBox("lower_limit",$graphs_template[lower_limit],""); }?> Base Value
$graphs_template[base_value]"; DrawFormItemHiddenTextBox("base_value",$graphs_template[base_value],""); }?> Unit Value
$graphs_template[unit_value]"; DrawFormItemHiddenTextBox("unit_value",$graphs_template[unit_value],""); }?> Unit Exponent Value
$graphs_template[unit_exponent_value]"; DrawFormItemHiddenTextBox("unit_exponent_value",$graphs_template[unit_exponent_value],""); }?> Vertical Label
$graphs_template[vertical_label]"; DrawFormItemHiddenTextBox("vertical_label",$graphs_template[vertical_label],""); }?> Graph Tree Configuration Tree Name
Enter a name for this tree. Show as Tab
Whether to show this tree as a tab on the graph management page. Graph Tree Configuration "; DrawMatrixHeaderItem("Tree Name",$colors[header_text],1); DrawMatrixHeaderItem("Display as Tab",$colors[header_text],2); print ""; $graph_tree_list = db_fetch_assoc("select * from rrd_graph_tree", $cnn_id); foreach ($graph_tree_list as $graph_tree) { DrawMatrixRowAlternateColorBegin($colors[alternate],$colors[light],$i); ?> Delete 
Core Routers Remove this Tree's Tab Catalyst Fabric Remove this Tree's Tab Server Farm (1) Remove this Tree's Tab Web Server Remove this Tree's Tab
"; DrawMatrixHeaderItem("Graph Title",$colors[panel_text],1); DrawMatrixHeaderItem("Template Name",$colors[panel_text],1); DrawMatrixHeaderItem("Size",$$colors[panel_text],2); print ""; $graph_list = db_fetch_assoc("select graph_templates_graph.id, graph_templates_graph.local_graph_id, graph_templates_graph.height, graph_templates_graph.width, graph_templates_graph.title, graph_templates.name from graph_templates_graph left join graph_templates on graph_templates_graph.graph_template_id=graph_templates.id where graph_templates_graph.local_graph_id!=0 order by graph_templates_graph.title"); if (sizeof($graph_list) > 0) { foreach ($graph_list as $graph) { DrawMatrixRowAlternateColorBegin($colors[alternate],$colors[light],$i); ?> None"; }else{ print $graph[name]; }?> x Delete