'; echo ""; echo ""; // Get input parameters $label = get_parameter ("label",""); if (!isset($_GET["period"]) OR (!isset($_GET["id"]))) { echo "

".__('There was a problem locating the source of the graph')."

"; exit; } $period = get_parameter ( "period", 3600); switch ($period) { case 3600: $period_label = __('One hour'); break; case 7200: $period_label = __('Two hours'); break; case 21600: $period_label = __('Six hours'); break; case 43200: $period_label = __('12 hours'); break; case 86400: $period_label = __('One day'); break; case 172800: $period_label = __('Two days'); break; case 432000: $period_label = __('Five days'); break; case 604800: $period_label = __('One week'); break; case 1296000: $period_label = __('15 days'); break; case 2592000: $period_label = __('One month'); break; case 5184000: $period_label = __('Two months'); break; case 15552000: $period_label = __('Six months'); break; default: $period_label = human_time_description_raw ($period); } $draw_alerts = get_parameter("draw_alerts", 0); $avg_only = get_parameter ("avg_only", 0); $period = get_parameter ("period", 86400); $id = get_parameter ("id", 0); $width = get_parameter ("width", 555); $height = get_parameter ("height", 245); $label = get_parameter ("label", ""); $start_date = get_parameter ("start_date", date("Y-m-d")); $draw_events = get_parameter ("draw_events", 0); $graph_type = get_parameter ("type", "sparse"); $zoom = get_parameter ("zoom", 1); if ($zoom > 1){ $height=$height*($zoom/2.1); $width=$width*($zoom/1.4); } if ($zoom > 1) { echo " "; } $current = date("Y-m-d"); if ($start_date != $current){ $utime = strtotime ($start_date); echo ""; } else echo ""; echo ""; echo ""; echo "
"; echo __('Max. Value')." : ". format_for_graph(get_agent_module_value_max ($id, $period)); echo ""; echo __('Avg. Value')." : ". format_for_graph(get_agent_module_value_average ($id, $period)); echo ""; echo __('Min. Value')." : ". format_for_graph(get_agent_module_value_min ($id, $period)); echo "
"; ?>