diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 7eb5f514c4..7395f7d9fc 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2008-06-18 Ramon Novoa + + * operation/agentes/networkmap.php: Small fixes. + * images/networkmap/pandora_node.png: Changed icon. + 2008-06-17 Ramon Novoa * operation/agentes/networkmap.php: Agent IDs are used to define diff --git a/pandora_console/images/networkmap/pandora_node.png b/pandora_console/images/networkmap/pandora_node.png index 7429a27d15..e2af1cc151 100644 Binary files a/pandora_console/images/networkmap/pandora_node.png and b/pandora_console/images/networkmap/pandora_node.png differ diff --git a/pandora_console/operation/agentes/networkmap.php b/pandora_console/operation/agentes/networkmap.php index dddde558a6..134514c54a 100644 --- a/pandora_console/operation/agentes/networkmap.php +++ b/pandora_console/operation/agentes/networkmap.php @@ -22,6 +22,8 @@ require("include/config.php"); // Generate a dot graph definition for graphviz function generate_dot() { $group_id = -1; + $parents = array(); + $orphans = array(); // Open Graph $graph = open_graph(); @@ -97,10 +99,10 @@ function create_node($agent) { // Set node status if (mysql_num_rows($bad_modules) > 0) { - $status_color = "orangered1"; + $status_color = '#FF1D1D'; } else { - $status_color = "chartreuse1"; + $status_color = '#8DFF1D'; } // Set node icon @@ -113,7 +115,7 @@ function create_node($agent) { $node = $agent['id_agente'] . ' [ color="' . $status_color . '", fontsize=10, style="filled", fixedsize=true, width=0.6, height=0.6, label=< -
' . $agent['nombre'] . '
>, + ' . $agent['nombre'] . '>, shape="ellipse", tooltip="' . $agent['nombre'] . ' (' . $agent['direccion'] . ')", URL="' . 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $agent['id_agente'] . '"];'; @@ -124,7 +126,7 @@ function create_node($agent) { // Returns the definition of the central module function create_pandora_node($name) { - $node = '0 [ color="black", fontsize=10, style="filled", fixedsize=true, width=1.4, height=0.6, label=< + $node = '0 [ color="black", fontsize=10, style="filled", fixedsize=true, width=0.8, height=0.6, label=<
' . $name . '
>, shape="ellipse", tooltip="' . $name . '", URL="index.php?sec=estado&sec2=operation/agentes/estado_grupo" ];'; @@ -232,10 +234,10 @@ if ((give_acl($id_user, 0, "AR") != 1 ) AND (dame_admin($id_user) !=1 )) { echo '

' . $lang_label['ag_title'] . ' > ' . lang_string("Network Map") . ' '; if ($pure == 1) { - echo ''; + echo ''; } else { - echo ''; + echo ''; } echo '

'; @@ -248,7 +250,7 @@ $layout_array = array ( 'flat' => 'flat', ); -echo '
'; +echo ''; echo ''; echo ''; echo ''; echo '
' . lang_string('Layout') . '  '; @@ -264,7 +266,7 @@ if ($pure == "1") { '3' => 'x3', ); - echo '' . lang_string('Layout') . '  '; + echo '' . lang_string('Zoom') . '  '; print_select ($zoom_array, 'zoom', $zoom, '', '', ''); echo '' . lang_string('No Overlap') . '  ';