Location: PHPKode > projects > Network Managment / Inventory System > clearsite/include/aloe/aloe_default.php
<?php

include_once('aloe_config.php');
include_once('graph.php');

print "
       <p>
       Edit include/aloe/aloe_default.php to add graphs to index.php like those seen in the screenshots in 
       the ClearSite Screenshots page on SourceForge.net! Automation of this process is comming in the next
       release, be sure to check back with us soon and read the Comming Soon tab on the 
       <a href=\"http://clearsite.sourceforge.net/coming-soon.html\">ClearSite home page</a> for more exciting
       features and milestones!
       </p>
       <p>-rich</p>
";

/* Remove the this line and the start slash at the bottom to uncomment
 
<!-- These are examples of how to manually create graphs on index.php -->

<!-- This creates a positive and negitive stack of graphs as seen on the screen shots on SF.net -->
<!-- Change "legend" to "nolegend" to remove the descriptions (Sprint, MCI etc...)in the example -->
<!-- Remove the "yes" (quotes and all) to remove the Totals as seen in the screen shots -->

$ds_detail1 = array("$rrd_data_path/10.5.1.2.PO5-3.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.1.PO5-3.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.1.Gi1-1.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.2.PO5-3.traffic.rrd:traffic_in:AVERAGE",
										"$rrd_data_path/10.5.1.1.PO5-3.traffic.rrd:traffic_in:AVERAGE",
										"$rrd_data_path/10.5.1.1.Gi1-1.traffic.rrd:traffic_in:AVERAGE");
$ds_mult1 = array("8",
									"8",
									"8",
									"-8",
									"-8",
									"-8");
$ds_label1 = array("Sprint -Out",
									 "Savvis -Out",
									 "MCI Gig-Out",
									 "Sprint -In ",
									 "Savvis -In ",
									 "MCI Gig-In ");
$image_name1 = "internet_traffic.png";
$create_graph1 = aloe_graph_cust($ds_detail1, $ds_mult1, $ds_label1, "STACK", "-1d", "-300", "WAN", "bytes per second", "1000", "115", "515", $image_name1, "legend", $image_path, $rrdtool_path, "yes");

<!-- ------------------------------------------------ -->
<!-- This an example of a positive stack, just remove the minus from the "-8's" -->
$ds_detail2 = array("$rrd_data_path/10.5.1.252.Gi4-0-0.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.253.Gi4-0-0.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.252.Gi4-0-0.traffic.rrd:traffic_in:AVERAGE",
										"$rrd_data_path/10.5.1.253.Gi4-0-0.traffic.rrd:traffic_in:AVERAGE");
$ds_mult2 = array("8",
									"8",
									"8",
									"8");
$ds_label2 = array("Sprint-Out",
									 "MCI   -Out",
									 "Sprint-In ",
									 "MCI   -In ");
$image_name2 = "internet_2_traffic.png";
$create_graph2 = aloe_graph_cust($ds_detail2, $ds_mult2, $ds_label2, "STACK", "-1d", "-300", "WAN 2", "bytes per second", "1000", "115", "515", $image_name2, "legend", $image_path, $rrdtool_path, "yes");

<!-- ------------------------------------------------ -->
<!-- This is an example of a LINE graph -->

$ds_detail3 = array("$rrd_data_path/10.5.1.248.1-2.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.248.1-2.traffic.rrd:traffic_in:AVERAGE");
$ds_mult3 = array("8",
									"8");
$ds_label3 = array("2/4 - In ",
									 "2/4 - Out");
$image_name3 = "10.5.1.248.1-1.png";
$create_graph3 = aloe_graph_cust($ds_detail3, $ds_mult3, $ds_label3, "LINE", "-1d", "-300", "CSS Gi1/2", "bytes per second", "1000", "128", "370", $image_name3, "nolegend", $image_path, $rrdtool_path);


<!-- ------------------------------------------------ -->
<!-- This is an example of an AREA graph -->

$ds_detail4 = array("$rrd_data_path/10.5.1.202.Se4-0.traffic.rrd:traffic_out:AVERAGE",
										"$rrd_data_path/10.5.1.202.Se4-0.traffic.rrd:traffic_in:AVERAGE");
$ds_mult4 = array("8",
									"8");
$ds_label4 = array("rtr3 Se4-0 - Out",
									 "rtr4 Se4-0 - In ");
$image_name4 = "frame_traffic.png";
$create_graph4 = aloe_graph_cust($ds_detail4, $ds_mult4, $ds_label4, "AREA", "-1d", "-300", "Frame Circuits", "bytes per second", "1000", "128", "370", $image_name4, "nolegend", $image_path, $rrdtool_path);

<!-- ------------------------------------------------ -->

print "
       <p>
        <a href=\"include/aloe/graph_images/$image_name1\" target=\"_blank\"><img src=\"include/aloe/graph_images/$image_name1\" alt=\"\" /></a>
       </p>
       <p>
        <a href=\"include/aloe/graph_images/$image_name2\" target=\"_blank\"><img src=\"include/aloe/graph_images/$image_name2\" alt=\"\" /></a>
       </p>
       <p>
        <a href=\"include/aloe/graph_images/$image_name3\" target=\"_blank\"><img src=\"include/aloe/graph_images/$image_name3\" alt=\"\" /></a>
        <a href=\"include/aloe/graph_images/$image_name4\" target=\"_blank\"><img src=\"include/aloe/graph_images/$image_name4\" alt=\"\" /></a>
       </p>
       <br />
";



*/
?>
Return current item: Network Managment / Inventory System