2008-08-22 20:07:32 +02:00
< ? php
// Pandora FMS - the Flexible Monitoring System
// ============================================
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
// Please see http://pandora.sourceforge.net for full contribution list
2008-06-17 17:47:13 +02:00
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
2008-08-22 20:07:32 +02:00
// as published by the Free Software Foundation for version 2.
2008-06-17 17:47:13 +02:00
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// Load global vars
2009-02-13 21:23:44 +01:00
require_once ( " include/config.php " );
2008-06-17 17:47:13 +02:00
2008-08-29 18:05:08 +02:00
check_login ();
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
if ( ! give_acl ( $config [ 'id_user' ], 0 , " AR " )) {
audit_db ( $config [ 'id_user' ], $REMOTE_ADDR , " ACL Violation " ,
" Trying to access node graph builder " );
include ( " general/noaccess.php " );
exit ;
}
2008-06-30 10:11:10 +02:00
$pandora_name = 'Pandora FMS' ;
2008-06-17 17:47:13 +02:00
// Generate a dot graph definition for graphviz
2008-07-10 13:58:40 +02:00
function generate_dot ( $simple = 0 , $font_size ) {
2008-06-30 10:11:10 +02:00
global $config ;
global $pandora_name ;
2008-06-17 17:47:13 +02:00
$group_id = - 1 ;
2008-06-18 11:59:18 +02:00
$parents = array ();
$orphans = array ();
2008-06-17 17:47:13 +02:00
// Open Graph
2008-08-29 18:05:08 +02:00
$graph = open_graph ();
2008-06-17 17:47:13 +02:00
// Get agent data
2009-01-15 11:21:38 +01:00
$agents = get_db_all_rows_sql ( ' SELECT id_grupo , nombre , id_os , id_parent , id_agente
FROM tagente
WHERE disabled = 0
ORDER BY id_grupo ' );
if ( $agents ){
foreach ( $agents as $agent ) {
if ( give_acl ( $config [ " id_user " ], $agent [ " id_grupo " ], " AR " ) == 0 )
continue ;
// Save node parent information to define edges later
if ( $agent [ 'id_parent' ] != " 0 " ) {
$parents [ $agent [ 'id_agente' ]] = $agent [ 'id_parent' ];
} else {
$orphans [ $agent [ 'id_agente' ]] = 1 ;
}
2008-06-30 16:54:56 +02:00
2009-01-15 11:21:38 +01:00
// Add node
$graph .= create_node ( $agent , $simple , $font_size ) . " \n \t \t " ;
}
2008-06-17 17:47:13 +02:00
}
2009-01-15 11:21:38 +01:00
2008-06-17 17:47:13 +02:00
// Create a central node if orphan nodes exist
2008-06-30 16:54:56 +02:00
if ( count ( $orphans )) {
2008-07-10 13:58:40 +02:00
$graph .= create_pandora_node ( $pandora_name , $font_size );
2008-06-17 17:47:13 +02:00
}
// Define edges
foreach ( $parents as $node => $parent_id ) {
2008-06-30 16:54:56 +02:00
$graph .= create_edge ( $node , $parent_id );
2008-06-17 17:47:13 +02:00
}
// Define edges for orphan nodes
2008-06-30 16:54:56 +02:00
foreach ( array_keys ( $orphans ) as $node ) {
$graph .= create_edge ( '0' , $node );
2008-06-17 17:47:13 +02:00
}
// Close graph
2008-08-29 18:05:08 +02:00
$graph .= close_graph ();
2008-06-17 17:47:13 +02:00
return $graph ;
}
// Returns an edge definition
2008-06-30 10:11:10 +02:00
function create_edge ( $head , $tail ) {
2008-06-30 16:54:56 +02:00
$edge = $head . ' -- ' . $tail . '[color="#BDBDBD", headclip=false, tailclip=false];' ;
2008-06-17 17:47:13 +02:00
return $edge ;
}
// Returns a node definition
2008-07-10 13:58:40 +02:00
function create_node ( $agent , $simple = 0 , $font_size = 10 ) {
2008-08-04 10:15:16 +02:00
$sql = sprintf ( ' SELECT COUNT ( tagente_modulo . id_agente )
FROM tagente_estado , tagente_modulo
2008-06-30 10:11:10 +02:00
WHERE tagente_modulo . id_agente = % d
AND tagente_modulo . id_tipo_modulo in ( 2 , 6 , 9 , 18 , 21 , 100 )
AND tagente_estado . id_agente_modulo = tagente_modulo . id_agente_modulo
AND tagente_modulo . disabled = 0
2009-01-15 11:21:38 +01:00
AND tagente_estado . estado = 1 ' ,
$agent [ 'id_agente' ]);
2008-06-30 10:11:10 +02:00
$bad_modules = get_db_sql ( $sql );
2008-06-17 17:47:13 +02:00
// Set node status
2008-06-30 10:11:10 +02:00
if ( $bad_modules ) {
2008-06-18 11:59:18 +02:00
$status_color = '#FF1D1D' ;
2008-06-30 10:11:10 +02:00
} else {
2008-06-18 11:59:18 +02:00
$status_color = '#8DFF1D' ;
2008-06-17 17:47:13 +02:00
}
2008-07-10 13:58:40 +02:00
// Check for alert
2009-01-19 16:31:56 +01:00
$sql = sprintf ( ' SELECT COUNT ( talert_template_modules . id )
FROM talert_template_modules , tagente_modulo , tagente
2009-01-15 11:21:38 +01:00
WHERE tagente . id_agente = % d
AND tagente . disabled = 0
AND tagente . id_agente = tagente_modulo . id_agente
AND tagente_modulo . disabled = 0
2009-01-19 16:31:56 +01:00
AND tagente_modulo . id_agente_modulo = talert_template_modules . id_agent_module
AND talert_template_modules . times_fired > 0 ' ,
2009-01-15 11:21:38 +01:00
$agent [ 'id_agente' ]);
2008-07-10 13:58:40 +02:00
$alert_modules = get_db_sql ( $sql );
if ( $alert_modules )
$status_color = '#FFE308' ;
2008-06-30 10:11:10 +02:00
// Short name
$name = strtolower ( $agent [ " nombre " ]);
2008-08-25 01:59:10 +02:00
if ( strlen ( $name ) > 16 )
$name = substr ( $name , 0 , 16 );
2008-06-19 02:24:05 +02:00
2008-06-30 10:11:10 +02:00
if ( $simple == 0 ){
2008-06-19 02:24:05 +02:00
// Set node icon
2008-06-30 16:54:56 +02:00
if ( file_exists ( 'images/networkmap/' . $agent [ 'id_os' ] . '.png' )) {
$img_node = 'images/networkmap/' . $agent [ 'id_os' ] . '.png' ;
2008-06-30 10:11:10 +02:00
} else {
2008-06-19 02:24:05 +02:00
$img_node = 'images/networkmap/0.png' ;
}
2008-08-25 01:59:10 +02:00
2008-07-10 13:58:40 +02:00
$node = $agent [ 'id_agente' ] . ' [ color="' . $status_color . '", fontsize=' . $font_size . ', style="filled", fixedsize=true, width=0.40, height=0.40, label=<<TABLE CELLPADDING="0" CELLSPACING="0" BORDER="0"><TR><TD><IMG SRC="' . $img_node . ' " /></TD></TR>
2008-06-30 16:54:56 +02:00
< TR >< TD > '.$name.' </ TD ></ TR ></ TABLE >> ,
2008-06-30 10:11:10 +02:00
shape = " ellipse " , URL = " index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='. $agent['id_agente'] .' " ,
2008-06-30 16:54:56 +02:00
tooltip = " ajax.php?page=operation/agentes/ver_agente&get_agent_status_tooltip=1&id_agent='. $agent['id_agente'] .' " ]; ' ;
2008-06-30 10:11:10 +02:00
} else {
2008-07-10 13:58:40 +02:00
$node = $agent [ 'id_agente' ] . ' [ color="' . $status_color . '", fontsize=' . $font_size . ', style="filled", fixedsize=true, width=0.20, height=0.20, label="", tooltip="ajax.php?page=operation/agentes/ver_agente&get_agent_status_tooltip=1&id_agent=' . $agent [ 'id_agente' ] . '"];' ;
2008-06-30 10:11:10 +02:00
}
2008-06-17 17:47:13 +02:00
return $node ;
}
// Returns the definition of the central module
2008-07-10 13:58:40 +02:00
function create_pandora_node ( $name , $font_size = 10 ) {
global $simple ;
$img = '<TR><TD><IMG SRC="images/networkmap/pandora_node.png"/></TD></TR>' ;
$name = '<TR><TD BGCOLOR="#FFFFFF">' . $name . '</TD></TR>' ;
$label = '<TABLE BORDER="0">' . $img . $name . '</TABLE>' ;
if ( $simple == 1 ){
$label = " " ;
}
$node = '0 [ color="#364D1F", fontsize=' . $font_size . ', style="filled", fixedsize=true, width=0.8, height=0.6, label=<' . $label . ' > ,
shape = " ellipse " , URL = " index.php?sec=estado&sec2=operation/agentes/estado_grupo " ]; ' ;
2008-06-17 17:47:13 +02:00
return $node ;
}
// Opens a group definition
2008-06-30 10:11:10 +02:00
function open_group ( $id ) {
2009-01-15 11:21:38 +01:00
$img = 'images/' . dame_grupo_icono ( $id ) . '.png' ;
2008-12-12 Evi Vanoost <vanooste@rcbi.rochester.edu>
* pandora_console/operation/agentes/datos_agente.php: Rewrite. Uses new
functions and better security and validation
* pandora_console/include/functions_db.php: Renamed some functions and
created agentmodule functions for consistency with documentation and to
avoid searching for and typing certain function names:
get_agentmodules is now get_agent_modules;
dame_grupo is now get_group_name;
dame_nombre_agente is now get_agent_name; get_agentmodule_agent is new;
dame_nombre_agente_agentemodulo is now get_agentmodule_agent_name;
dame_nombre_modulo_agentemodulo is now get_agentmodule_name;
dame_id_tipo_modulo_agentemodulo is now get_agentmodule_type;
dame_nombre_tipo_modulo is now get_moduletype_name; dame_nombre_grupo is
now get_group_name; get_agentmodule_count is get_agent_modules_count;
get_agentmodule_group is new; get_agent_group is new;
* pandora_console/include/functions_reporting.php,
pandora_console/include/functions.php,
pandora_console/operation/incidents/incident.php,
pandora_console/operation/users/user.php,
pandora_console/operation/users/user_edit.php,
pandora_console/operation/events/events.php,
pandora_console/operation/visual_console/index.php,
pandora_console/operation/agentes/estado_grupo.php,
pandora_console/operation/agentes/export_csv.php,
pandora_console/operation/agentes/estado_agente.php,
pandora_console/operation/agentes/estado_ultimopaquete.php,
pandora_console/operation/agentes/estado_generalagente.php,
pandora_console/operation/agentes/sla_view.php,
pandora_console/operation/agentes/exportdata.php,
pandora_console/operation/agentes/ver_agente.php,
pandora_console/operation/agentes/tactical.php,
pandora_console/operation/agentes/networkmap.php,
pandora_console/operation/messages/message.php,
pandora_console/operation/reporting/reporting_xml.php,
pandora_console/operation/reporting/reporting_viewer.php,
pandora_console/reporting/fgraph.php,
pandora_console/godmode/groups/group_list.php,
pandora_console/godmode/users/user_list.php,
pandora_console/godmode/users/configure_user.php,
pandora_console/godmode/db/db_refine.php,
pandora_console/godmode/db/db_info.php,
pandora_console/godmode/db/db_purge.php,
pandora_console/godmode/agentes/manage_config.php,
pandora_console/godmode/agentes/modificar_agente.php,
pandora_console/godmode/agentes/configurar_agente.php,
pandora_console/godmode/agentes/manage_config_remote.php,
pandora_console/godmode/modules/manage_network_components_form_network.php,
pandora_console/godmode/modules/manage_network_components_form_wmi.php,
pandora_console/godmode/reporting/reporting_builder.php,
pandora_console/godmode/reporting/map_builder.php,
pandora_console/godmode/reporting/graph_builder.php: Renamed functions
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1291 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-12 22:54:40 +01:00
$name = get_group_name ( $id );
2008-06-17 17:47:13 +02:00
$group = 'subgraph cluster_' . $id .
2008-06-30 10:11:10 +02:00
' { style = filled ; color = darkolivegreen3 ; label =<< TABLE BORDER = " 0 " >
2008-06-30 16:54:56 +02:00
< TR >< TD >< IMG SRC = " '. $img .' " /></ TD >< TD > '.$name.' </ TD ></ TR >
</ TABLE >> ; tooltip = " '. $name .' " ;
2008-06-30 10:11:10 +02:00
URL = " index.php?sec=estado&sec2=operation/agentes/estado_agente&group_id='
. $id . '";' ;
2009-01-15 11:21:38 +01:00
2008-06-17 17:47:13 +02:00
return $group ;
}
// Closes a group definition
2008-06-30 10:11:10 +02:00
function close_group () {
2008-06-17 17:47:13 +02:00
return '}' ;
}
// Opens a graph definition
2008-06-30 16:54:56 +02:00
function open_graph () {
2008-07-10 13:58:40 +02:00
global $config , $layout , $nooverlap , $pure , $zoom , $ranksep , $font_size ;
2008-06-17 17:47:13 +02:00
$overlap = 'compress' ;
2008-06-19 16:34:04 +02:00
$size_x = 8 ;
$size_y = 5.4 ;
2008-06-17 17:47:13 +02:00
$size = '' ;
2008-06-30 18:38:26 +02:00
if ( $layout == 'radial' )
$overlap = 'true' ;
2009-01-15 11:21:38 +01:00
if ( $layout == 'flat' || $layout == 'radial' || $layout == 'spring1' || $layout == " spring2 " )
2008-06-30 18:38:26 +02:00
if ( $nooverlap != '' )
$overlap = 'scalexy' ;
2008-07-10 13:58:40 +02:00
if ( $pure == 1 && $zoom > 1 ) {
2008-07-02 14:30:56 +02:00
$size_x *= $zoom ;
$size_y *= $zoom ;
2008-06-17 17:47:13 +02:00
}
$size = $size_x . ',' . $size_y ;
2009-01-15 11:21:38 +01:00
2008-06-30 10:11:10 +02:00
// BEWARE: graphwiz DONT use single ('), you need double (")
2008-06-30 18:38:26 +02:00
$head = " graph networkmap { labeljust=l; margin=0; " ;
2009-01-15 11:21:38 +01:00
if ( $nooverlap != '' ) {
2008-07-10 13:58:40 +02:00
$head .= " overlap= \" $overlap\ " ; " ;
2008-06-30 18:38:26 +02:00
$head .= " ranksep= \" $ranksep\ " ; " ;
2008-07-10 13:58:40 +02:00
$head .= " outputorder=edgesfirst; " ;
}
$head .= " ratio=fill; " ;
$head .= " root=0; " ;
$head .= " size= \" $size\ " ; " ;
2009-01-15 11:21:38 +01:00
2008-06-17 17:47:13 +02:00
return $head ;
2008-06-30 10:11:10 +02:00
}
2008-06-17 17:47:13 +02:00
// Closes a graph definition
2008-06-30 16:54:56 +02:00
function close_graph () {
2008-06-17 17:47:13 +02:00
return '}' ;
}
// Returns the filter used to achieve the desired layout
2009-01-15 11:21:38 +01:00
function set_filter () {
2008-06-17 17:47:13 +02:00
global $layout ;
switch ( $layout ) {
2008-06-30 10:11:10 +02:00
case 'flat' :
return 'dot' ;
case 'radial' :
return 'twopi' ;
case 'circular' :
return 'circo' ;
case 'spring1' :
return 'neato' ;
case 'spring2' :
return 'fdp' ;
default :
return 'twopi' ;
2008-06-17 17:47:13 +02:00
}
}
2008-06-30 10:11:10 +02:00
/* Main code */
2008-06-17 17:47:13 +02:00
// Load variables
2008-07-10 13:58:40 +02:00
$layout = ( string ) get_parameter ( 'layout' , 'radial' );
$nooverlap = ( boolean ) get_parameter ( 'nooverlap' , 0 );
2008-06-17 17:47:13 +02:00
$pure = ( int ) get_parameter ( 'pure' );
$zoom = ( float ) get_parameter ( 'zoom' );
2008-06-19 02:24:05 +02:00
$ranksep = ( float ) get_parameter ( 'ranksep' , 2.5 );
2008-07-11 22:20:43 +02:00
$simple = ( boolean ) get_parameter ( 'simple' , 0 );
2008-08-21 21:16:16 +02:00
$regen = ( boolean ) get_parameter ( 'regen' , 1 ); // Always regen by default
2008-07-10 13:58:40 +02:00
$font_size = ( int ) get_parameter ( 'font_size' , 12 );
2008-06-17 17:47:13 +02:00
2009-02-13 21:23:44 +01:00
echo '<h2>' . __ ( 'Pandora Agents' ) . ' > ' . __ ( 'Network Map' ) . ' ' ;
2008-06-17 17:47:13 +02:00
if ( $pure == 1 ) {
2009-02-13 21:23:44 +01:00
echo '<a href="index.php?sec=estado&sec2=operation/agentes/networkmap&pure=0">' ;
print_image ( " images/monitor.png " , false , array ( 'title' => __ ( 'Normal screen' ), 'alt' => __ ( 'Normal screen' )));
echo '</a>' ;
2008-06-30 10:11:10 +02:00
} else {
2009-02-13 21:23:44 +01:00
echo '<a href="index.php?sec=estado&sec2=operation/agentes/networkmap&pure=1">' ;
print_image ( " images/monitor.png " , false , array ( 'title' => __ ( 'Normal screen' ), 'alt' => __ ( 'Normal screen' )));
echo '</a>' ;
2008-06-17 17:47:13 +02:00
}
echo '</h2>' ;
// Layout selection
2008-07-10 13:58:40 +02:00
$layout_array = array (
2008-06-30 10:11:10 +02:00
'circular' => 'circular' ,
2008-07-10 13:58:40 +02:00
'radial' => 'radial' ,
2008-06-30 10:11:10 +02:00
'spring1' => 'spring 1' ,
'spring2' => 'spring 2' ,
'flat' => 'flat' );
2008-06-17 17:47:13 +02:00
2009-02-13 21:23:44 +01:00
echo '<form action="index.php?sec=estado&sec2=operation/agentes/networkmap&pure=' . $pure . '" method="post">' ;
2008-06-17 17:47:13 +02:00
echo '<table cellpadding="4" cellspacing="4" class="databox">' ;
echo '<tr>' ;
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<td valign="top">' . __ ( 'Layout' ) . ' ' ;
2008-06-17 17:47:13 +02:00
print_select ( $layout_array , 'layout' , $layout , '' , '' , '' );
echo '</td>' ;
2008-06-19 02:24:05 +02:00
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<td valign="top">' . __ ( 'No Overlap' ) . ' ' ;
2008-07-10 13:58:40 +02:00
print_checkbox ( 'nooverlap' , '1' , $nooverlap );
2008-06-19 02:24:05 +02:00
echo '</td>' ;
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<td valign="top">' . __ ( 'Simple' ) . ' ' ;
2008-06-19 02:24:05 +02:00
print_checkbox ( 'simple' , '1' , $simple );
echo '</td>' ;
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<td valign="top">' . __ ( 'Regenerate' ) . ' ' ;
2008-07-11 22:20:43 +02:00
print_checkbox ( 'regen' , '1' , $regen );
echo '</td>' ;
2008-06-17 17:47:13 +02:00
if ( $pure == " 1 " ) {
// Zoom
$zoom_array = array (
'1' => 'x1' ,
2008-06-19 02:24:05 +02:00
'1.2' => 'x2' ,
'1.6' => 'x3' ,
'2' => 'x4' ,
'2.5' => 'x5' ,
2008-06-30 10:11:10 +02:00
'5' => 'x10' ,
2008-06-17 17:47:13 +02:00
);
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<td valign="top">' . __ ( 'Zoom' ) . ' ' ;
2008-06-17 17:47:13 +02:00
print_select ( $zoom_array , 'zoom' , $zoom , '' , '' , '' );
echo '</td>' ;
2008-06-19 02:24:05 +02:00
2008-06-17 17:47:13 +02:00
}
2008-07-10 13:58:40 +02:00
if ( $nooverlap == 1 ){
echo " <td> " ;
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo __ ( 'Distance between nodes' ) . ' ' ;
2008-07-10 13:58:40 +02:00
print_input_text ( 'ranksep' , $ranksep , $alt = 'Separation between elements in the map (in Non-overlap mode)' , 3 , 4 , 0 );
2008-08-29 18:05:08 +02:00
echo " </td> " ;
2008-07-10 13:58:40 +02:00
}
echo " <td> " ;
2008-08-21 21:16:16 +02:00
echo __ ( 'Font' ) . ' ' ;
2008-07-10 13:58:40 +02:00
print_input_text ( 'font_size' , $font_size , $alt = 'Font size (in pt)' , 3 , 4 , 0 );
2008-08-29 18:05:08 +02:00
echo " </td> " ;
2008-07-10 13:58:40 +02:00
2008-06-17 17:47:13 +02:00
//echo ' Display groups <input type="checkbox" name="group" value="group" class="chk"/>';
echo '<td>' ;
2009-02-13 21:23:44 +01:00
print_submit_button ( __ ( 'Update' ), " updbutton " , false , 'class="sub upd"' );
2008-08-29 18:05:08 +02:00
echo '</td></tr>' ;
echo '</table></form>' ;
2008-06-17 17:47:13 +02:00
// Set filter
2009-01-15 11:21:38 +01:00
$filter = set_filter ();
2008-06-17 17:47:13 +02:00
// Generate dot file
2008-07-10 13:58:40 +02:00
$graph = generate_dot ( $simple , $font_size );
2008-06-17 17:47:13 +02:00
// Generate image and map
2008-07-11 22:20:43 +02:00
// If image was generated just a few minutes ago, then don't regenerate (it takes long) unless regen checkbox is set
$filename_map = $config [ " attachment_store " ] . " /networkmap_ " . $layout ;
$filename_img = " attachment/networkmap_ " . $layout . " _ " . $font_size ;
2009-01-14 15:30:13 +01:00
$filename_dot = $config [ " attachment_store " ] . " /networkmap_ " . $layout ;
2009-01-15 11:21:38 +01:00
if ( $simple ) {
2008-07-11 22:20:43 +02:00
$filename_map .= " _simple " ;
$filename_img .= " _simple " ;
2009-01-14 15:30:13 +01:00
$filename_dot .= " _simple " ;
2008-07-11 22:20:43 +02:00
}
2009-01-15 11:21:38 +01:00
if ( $nooverlap ) {
2008-07-11 22:20:43 +02:00
$filename_map .= " _nooverlap " ;
$filename_img .= " _nooverlap " ;
2009-01-14 15:30:13 +01:00
$filename_dot .= " _nooverlap " ;
2008-07-11 22:20:43 +02:00
}
$filename_map .= " .map " ;
$filename_img .= " .png " ;
2009-01-14 15:30:13 +01:00
$filename_dot .= " .dot " ;
2008-06-30 10:11:10 +02:00
2008-12-24 Evi Vanoost <vanooste@rcbi.rochester.edu>
* include/functions_reporting.php, include/functions_db.php,
include/functions_html.php, operation/agentes/datos_agente.php,
operation/agentes/estado_agente.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_grupo.php, operation/agentes/estado_monitores.php,
operation/agentes/networkmap.php, operation/agentes/status_monitor.php,
operation/incidents/incident_detail.php,
operation/reporting/reporting_viewer.php,
operation/reporting/reporting_xml.php, reporting/fgraph.php,
godmode/db/db_audit.php, godmode/db/db_event.php, godmode/db/db_purge.php:
Added get_system_time in favor of time ();
* include/functions.php: Added get_system_time which gets the time from
a source based on user preference
* include/help/en/help_timesource.php: Explanation of timesource.
* godmode/setup/setup.php, include/config_process.php: Added timesource
selection and preference
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1310 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-12-24 17:53:00 +01:00
if ( $regen != 1 && file_exists ( $filename_img ) && filemtime ( $filename_img ) > get_system_time () - 300 ) {
2008-07-11 22:20:43 +02:00
$result = true ;
} else {
2009-02-13 21:23:44 +01:00
$fh = @ fopen ( $filename_dot , 'w' );
2009-01-14 15:30:13 +01:00
if ( $fh === false ) {
$result = false ;
2009-02-13 21:23:44 +01:00
} else {
fwrite ( $fh , $graph );
$cmd = " $filter -Tcmapx -o " . $filename_map . " -Tpng -o " . $filename_img . " " . $filename_dot ;
$result = system ( $cmd );
fclose ( $fh );
unlink ( $filename_dot );
2009-01-14 15:30:13 +01:00
}
2008-07-11 22:20:43 +02:00
}
2008-06-30 10:11:10 +02:00
if ( $result !== false ) {
2008-07-11 22:20:43 +02:00
if ( ! file_exists ( $filename_map )) {
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<h2 class="err">' . __ ( 'Map could not be generated' ) . '</h2>' ;
2008-06-30 10:11:10 +02:00
echo $result ;
2009-02-13 21:23:44 +01:00
echo " <br /> Apparently something went wrong reading the output.<br /> " ;
echo " <br /> Is " . $config [ " attachment_store " ] . " readable by the webserver process? " ;
2008-07-17 08:51:22 +02:00
return ;
2008-06-30 10:11:10 +02:00
}
2009-02-13 21:23:44 +01:00
print_image ( $filename_img , false , array ( " alt " => __ ( 'Network Map' ), " usemap " => " #networkmap " ));
require ( $filename_map );
2008-06-30 16:54:56 +02:00
} else {
2008-08-11 Esteban Sanchez <estebans@artica.es>
* include/functions_db.php: Added __ as an alias of lang_string().
* include/functions_reporting_pdf.php,
include/functions_reporting.php, include/functions.php,
include/functions_visual_map.php, index.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_note.php,
operation/incidents/incident_search.php,
operation/incidents/incident_statistics.php,
operation/snmpconsole/snmp_alert.php,
operation/snmpconsole/snmp_view.php, operation/users/user.php,
operation/users/user_edit.php, operation/users/user_statistics.php,
operation/events/event_statistics.php, operation/events/events.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/extensions.php,
operation/agentes/estado_alertas.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_grupo.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/bulbs.php,
operation/agentes/status_events.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php,
operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/estadisticas.php,
operation/agentes/tactical.php, operation/agentes/networkmap.php,
operation/messages/message.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
operation/reporting/custom_reporting.php,
operation/servers/view_server.php,
operation/servers/view_server_detail.php, operation/menu.php,
reporting/fgraph.php, reporting/stat_win.php, ajax.php,
general/logoff.php, general/pandora_help.php, general/footer.php,
general/noaccess.php, general/logon_failed.php,
general/links_menu.php, general/login_page.php, general/logon_ok.php,
general/header.php, general/main_menu.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/setup/news.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/profiles/profile_list.php,
godmode/admin_access_logs.php, godmode/db/db_info_data.php,
godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php,
godmode/db/db_info.php, godmode/db/db_event.php,
godmode/db/db_purge.php, godmode/extensions.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_network.php,
godmode/agentes/module_manager_editor_wmi.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor_plugin.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/alert_manager_editor.php,
godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor_data.php,
godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/agent_disk_conf_editor.php,
godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php,
godmode/agentes/agent_manager.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/map_builder.php,
godmode/reporting/graph_builder.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/modify_alert.php, godmode/alerts/configure_alert.php,
godmode/menu.php: Replaced $id_user with $config['id_user']. Use __a
instead of $lang_label to future use of gettext. Style
corrections.
* godmode/agentes/planned_downtime.php: Rewritten to use Pandora
functions and adopt the UI style. Replaced lang_string with __().
* pandoradb.sql: Fields in tplanned_downtime renamed to fit
guidelines.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1005 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2008-08-11 12:59:07 +02:00
echo '<h2 class="err">' . __ ( 'Map could not be generated' ) . '</h2>' ;
2008-06-30 16:54:56 +02:00
echo $result ;
2009-02-13 21:23:44 +01:00
echo " <br /> Apparently something went wrong executing the command or writing the output. " ;
echo " <br /><br /> Is " . $filter . " (usually part of GraphViz) and echo installed and able to be executed by the webserver process? " ;
echo " <br /><br /> Is your webserver restricted from executing command line tools through the <code>system()</code> call (PHP Safe Mode or SELinux) " ;
echo " <br /><br /> Is " . $config [ " attachment_store " ] . " writeable by the webserver process? To change this do the following (POSIX-based systems): chown <apache user> " . $config [ " attachment_store " ];
2008-06-30 16:54:56 +02:00
return ;
2008-06-17 17:47:13 +02:00
}
2008-06-30 10:11:10 +02:00
2009-02-19 Esteban Sanchez <estebans@artica.es>
* include/functions_ui.php: Added require_css_file(),
require_javascript_file() and require_jquery_file() to add CSS,
javascript and jQuery files to the header easily without changing
config object. A path parameter is addded to allow the use on
enterprise code.
* include/functions_db.php: Added
get_db_value_filter(), get_db_all_rows_filter() and
process_sql_delete(). Fixed delete_agent() style and use these
functions. Added process_page_head() from functions_ui.php and changed
a bit the config javascript object part.
* include/functions_custom_graphs.php: Get results indexed by id on
get_user_custom_graphs().
* include/functions.php: Moved process_page_head to functions_ui.php.
* godmode/agentes/manage_delete.php: New interface to perform massive
agents deletion.
* godmode/menu.php: Added new option to massive agents deletion.
* general/main_menu.php, godmode/agentes/manage_config.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/planned_downtime.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/configure_alert_template.php,
godmode/reporting/map_builder.php, operation/agentes/networkmap.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php: Use new functions in include
CSS and javascript files.
* index.php: Bit of style when printing the header so the HTML can be
readed easily in a editor.
* include/javascript/pandora.js: Added a variable to determine the
enterprise directory.
* include/styles/pandora.css: Added style for manage_delete.php
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-19 17:10:04 +01:00
require_css_file ( 'cluetip' );
require_jquery_file ( 'cluetip' );
2009-02-09 Evi Vanoost <vanooste@rcbi.rochester.edu>
* general/header.php, general/footer.php: Made it comply with standards
* general/main_menu.php: Fixed some typo's.
* include/javascript/jquery.pandora.js: This was loading an extension
that has a separate file already
* include/functions.php: Added process_page_head and process_page_body
these are callback functions for ob_start and add functionality like
conditional loading and external scripts in the correct places. Also adds
override functionality to certain items (like refresh) from anywhere
* include/javascript/time_en.js: Added as a placeholder
* extensions/update_manager.php: Fixed some typos
* operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/events/events.php, operation/extensions.php,
operation/incidents/incident_detail.php,
operation/reporting/reporting_viewer.php,
operation/visual_console/render_view.php,
godmode/agentes/alert_manager.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/planned_downtime.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php,
godmode/groups/configure_group.php, godmode/reporting/graph_builder.php,
godmode/reporting/map_builder.php, godmode/reporting/reporting_builder.php
godmode/snmpconsole/snmp_alert.php: Changed javascript, css and jquery
loading to the new buffer callback handlers.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1436 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-02-09 19:41:54 +01:00
?>
2008-06-30 10:11:10 +02:00
< script language = " javascript " type = " text/javascript " >
2009-02-13 21:23:44 +01:00
/* <![CDATA[ */
2008-06-30 10:11:10 +02:00
$ ( document ) . ready ( function () {
2008-08-29 18:05:08 +02:00
$ ( " area[title!='<?php echo $pandora_name ; ?>'] " ) . cluetip ({
2008-06-30 10:11:10 +02:00
arrows : true ,
attribute : 'title' ,
2009-01-19 16:31:56 +01:00
cluetipClass : 'default'
2008-06-30 10:11:10 +02:00
});
});
2009-02-13 21:23:44 +01:00
/* ]]> */
2008-06-30 10:11:10 +02:00
</ script >