"; echo ""; ui_print_error_message(__('There was a problem connecting with the node')); echo ""; echo ""; exit; } } $user_language = get_user_language ($config['id_user']); if (file_exists ('../../include/languages/'.$user_language.'.mo')) { $l10n = new gettext_reader (new CachedFileReader ('../../include/languages/'.$user_language.'.mo')); $l10n->load_tables(); } echo ''; $label = get_parameter('label'); $label = base64_decode($label); $id = get_parameter('id'); $id_agent = db_get_value ("id_agente","tagente_modulo","id_agente_modulo",$id); $alias = db_get_value ("alias","tagente","id_agente",$id_agent); //$agent = agents_get_agent_with_ip ("192.168.50.31"); //$label = rawurldecode(urldecode(base64_decode(get_parameter('label', '')))); ?> 0) { $query = ui_get_url_refresh (false); echo ''; } ?> Pandora FMS Graph (<?php echo $alias . ' - ' . $label; ?>) 1) { $height = $height * ($zoom / 2.1); $width = $width * ($zoom / 1.4); } echo ""; // Build date $date = strtotime("$start_date $start_time"); $now = time(); if ($date > $now) $date = $now; $urlImage = ui_get_full_url(false, false, false, false); $unit = db_get_value('unit', 'tagente_modulo', 'id_agente_modulo', $id); // log4x doesnt support flash yet // if ($config['flash_charts'] == 1) echo '
'; else echo '
'; switch ($graph_type) { case 'boolean': echo grafico_modulo_boolean ($id, $period, $draw_events, $width, $height, $label_graph, $unit, $draw_alerts, $avg_only, false, $date, false, $urlImage, 'adapter_' . $graph_type, $time_compare, $unknown_graph, true, $fullscale); echo '
'; if ($show_events_graph) echo graphic_module_events($id, $width, $height, $period, $config['homeurl'], $zoom, 'adapted_' . $graph_type, $date, true); break; case 'sparse': echo grafico_modulo_sparse ($id, $period, $draw_events, $width, $height, $label_graph, $unit, $draw_alerts, $avg_only, false, $date, $unit, $baseline, 0, true, false, $urlImage, 1, false, 'adapter_' . $graph_type, $time_compare, $unknown_graph, true, 'white', (($show_percentil)? $config['percentil'] : null), false, false, $config['type_module_charts'], $fullscale); echo '
'; if ($show_events_graph) echo graphic_module_events($id, $width, $height, $period, $config['homeurl'], $zoom, 'adapted_' . $graph_type, $date, true); break; case 'string': echo grafico_modulo_string ($id, $period, $draw_events, $width, $height, $label_graph, null, $draw_alerts, 1, false, $date, false, $urlImage, 'adapter_' . $graph_type); echo '
'; if ($show_events_graph) echo graphic_module_events($id, $width, $height, $period, $config['homeurl'], $zoom, 'adapted_' . $graph_type, $date, true); break; case 'log4x': echo grafico_modulo_log4x ($id, $period, $draw_events, $width, $height, $label_graph, $unit, $draw_alerts, 1, $pure, $date); echo '
'; if ($show_events_graph) echo graphic_module_events($id, $width, $height, $period, $config['homeurl'], $zoom, '', $date, true); break; default: echo fs_error_image ('../images'); break; } echo '
'; //////////////////////////////////////////////////////////////// // SIDE MENU //////////////////////////////////////////////////////////////// $params = array(); // TOP TEXT //Use the no_meta parameter because this image is only in the base console $params['top_text'] = "
" . html_print_image('images/wrench_blanco.png', true, array('width' => '16px'), false, false, true) . ' ' . __('Pandora FMS Graph configuration menu') . ui_print_help_icon ("graphs",true, $config["homeurl"], "images/help_w.png", true) . "
"; $params['body_text'] = "'; // outer // ICONS $params['icon_closed'] = '/images/graphmenu_arrow_hide.png'; $params['icon_open'] = '/images/graphmenu_arrow.png'; // SIZE $params['width'] = 500; // POSITION $params['position'] = 'left'; html_print_side_layer($params); // Hidden div to forced title html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true)); ?>