0) { header('Refresh: '.$refresh); } ?> Pandora FMS Graph ".__('There was a problem locating the source of the graph').""; exit; } $period = get_parameter ( "period", 3600); $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); echo ""; } $utime = get_system_time (); $current = date("Y-m-d", $utime); $image = "fgraph.php?tipo=".$graph_type."&draw_alerts=".$draw_alerts."&draw_events=".$draw_events."&id=".$id."&zoom=".$zoom."&label=".$label."&height=".$height."&width=".$width."&period=".$period."&avg_only=".$avg_only; if ($start_date != $current){ $image .= "&date=".$utime; print_image ($image, false, array ("border" => 0)); } else { print_image ($image, false, array ("border" => 0)); echo ''; echo '
'.__('Max. Value').': '.format_for_graph (get_agentmodule_data_max ($id, $period)); echo ''.__('Avg. Value').': '.format_for_graph (get_agentmodule_data_average ($id, $period)); echo ''.__('Min. Value').': '.format_for_graph (get_agentmodule_data_min ($id, $period)); echo '
'; } echo '';