2006-03-27 05:37:27 +02:00
< ? php
2008-07-30 20:39:40 +02:00
// Pandora FMS - the Flexible Monitoring System
// ============================================
2008-08-22 20:07:32 +02:00
// Copyright (c) 2008 Artica Soluciones Tecnologicas, http://www.artica.es
2008-01-10 17:40:00 +01:00
// Please see http://pandora.sourceforge.net for full contribution list
2006-03-27 05:37:27 +02:00
2008-04-01 15:53:11 +02:00
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// 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.
2006-03-27 05:37:27 +02:00
// Load global vars
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
require_once ( " include/config.php " );
2009-04-09 23:06:17 +02:00
require_once ( " include/functions_reporting.php " );
2008-07-21 14:23:28 +02:00
check_login ();
2006-07-11 10:49:21 +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
if ( ! give_acl ( $config [ 'id_user' ], 0 , " AR " )) {
audit_db ( $config [ 'id_user' ], $REMOTE_ADDR , " ACL Violation " ,
" Trying to access agent main list view " );
2008-06-30 10:11:10 +02:00
require ( " general/noaccess.php " );
2009-03-26 16:55:30 +01:00
return ;
2008-06-30 10:11:10 +02:00
}
2007-03-02 18:56:07 +01:00
2009-03-02 Esteban Sanchez <estebans@artica.es>
* include/functions_menu.php: Added to repository. Functions for menu.
* operation/menu.php, godmode/menu.php: Added class to menu due to
changes in print_menu().
* general/main_menu.php: temp_print_menu() moved to functions_menu.php
* include/functions_themes.php: Added to repository. Implement
functions relative to themes (only CSS themes list at this moment).
* include/styles/pandora.css, include/styles/pandora_black.css,
include/styles/pandora_minimal.css, include/styles/pandora_red.css:
Added author, name and description comments to adopt to new
get_themes() interface.
* include/styles/pandora_width.css: Improved and make lighter by
simply rewrite some classes.
* include/functions.php: Added is_ajax().
* godmode/agentes/module_manager_editor.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_commands.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/alert_templates.php, godmode/groups/group_list.php,
godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php,
operation/agentes/estado_agente.php, operation/agentes/ver_agente.php,
operation/events/events.php, operation/messages/message.php: Use
is_ajax()
* godmode/setup/setup.php: Use enterprise_include() instead of manual
checking. Use get_css_themes() to show the theme list.
* include/styles/common.css: Added to repository. Minimal styles to
make pandora works and common with all the CSS themes.
* include/functions_ui.php: Added common.css file.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1496 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-02 14:43:15 +01:00
if ( is_ajax ()) {
2009-02-18 13:29:30 +01:00
$get_agent_module_last_value = ( bool ) get_parameter ( 'get_agent_module_last_value' );
if ( $get_agent_module_last_value ) {
$id_module = ( int ) get_parameter ( 'id_agent_module' );
if ( ! give_acl ( $config [ 'id_user' ], get_agentmodule_group ( $id_module ), " AR " )) {
audit_db ( $config [ 'id_user' ], $REMOTE_ADDR , " ACL Violation " ,
" Trying to access agent main list view " );
echo json_encode ( false );
return ;
}
echo json_encode ( get_agent_module_last_value ( $id_module ));
return ;
}
return ;
}
2008-06-30 10:11:10 +02:00
// Take some parameters (GET)
$group_id = get_parameter ( " group_id " , 0 );
2009-03-25 21:07:09 +01:00
$search = get_parameter ( " search " , " " );
2008-01-10 17:40:00 +01:00
2009-04-13 Esteban Sanchez <estebans@artica.es>
* general/footer.php: Removed Firefox icon. Style correction.
* godmode/agentes/agent_manager.php: Replaced > with ». Style
correction when setting bold attributes.
* godmode/agentes/manage_config_remote.php,
godmode/agentes/modificar_agente.php, godmode/agentes/module_manager.php,
godmode/alerts/alert_list.php, godmode/db/db_audit.php,
godmode/db/db_event.php, godmode/db/db_info.php, godmode/db/db_main.php,
godmode/db/db_purge.php, godmode/db/db_refine.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/modules/manage_nc_groups.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/module_list.php, godmode/profiles/profile_list.php,
godmode/reporting/graph_builder.php, godmode/reporting/map_builder.php,
godmode/reporting/reporting_builder.php, godmode/servers/manage_export.php,
godmode/servers/manage_export_form.php,
godmode/servers/manage_recontask.php,
godmode/servers/manage_recontask_form.php,
godmode/servers/modificar_server.php, godmode/setup/setup_visuals.php,
godmode/setup/links.php, godmode/setup/news.php,
godmode/snmpconsole/snmp_alert.php, godmode/users/configure_user.php,
godmode/users/user_list.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php, operation/agentes/estado_grupo.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/agentes/status_monitor.php, operation/agentes/tactical.php,
operation/events/events.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php,
operation/messages/message.php, operation/reporting/custom_reporting.php,
operation/reporting/graph_viewer.php,
operation/reporting/reporting_viewer.php, operation/servers/view_server.php,
operation/users/user.php, operation/users/user_edit.php,
operation/users/user_statistics.php, operation/visual_console/index.php,
godmode/agentes/agent_template.php: Replaced > with »
* operation/agentes/datos_agente.php: Return instead of exit
* include/javascript/jquery.pandora.controls.js: Added pandoraSelectOS
control to preview the OS icon on a select.
* include/functions_reports.php: Fixed a bug on delete_report() that
returns error when the report has no content.
* include/functions_ui.php: Removed border attribute on print_os_icon().
Some fixes to meta refresh element on process_page_head(). Fixed
format_filesize() when length is zero.
* godmode/menu.php: Replaced link to file manager. Added enterprise hook.
* godmode/setup/file_manager.php: Renamed from obfuscated name filemgr.php
* include/styles/pandora.css: Textarea width reduced to 99%
* godmode/setup/setup.php: Added get_os_icon AJAX operation.
* images/mimetypes/, images/mimetypes/zip.png, images/mimetypes/image.png,
images/mimetypes/unknown.png, images/mimetypes/directory.png: Added to
repository. Mime type icons.
* extras/pandoradb_migrate_v2.x_to_v3.0.sql: Removed date comments.
* include/functions_filemanager.php: Added to repository. Minimal API for
file manager system.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1608 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-13 11:50:56 +02:00
echo " <h2> " . __ ( 'Pandora Agents' ) . " » " . __ ( 'Summary' ) . " </h2> " ;
2008-01-10 17:40:00 +01:00
2009-04-21 21:03:16 +02:00
if ( $group_id > 1 ) {
2009-05-07 16:44:26 +02:00
echo '<form method="post" action="' . get_url_refresh ( array ( 'group_id' => $group_id )) . '">' ;
2008-06-30 10:11:10 +02:00
} else {
2009-04-21 21:03:16 +02:00
echo '<form method="post" action="' . get_url_refresh () . '">' ;
2008-06-30 10:11:10 +02:00
}
2006-03-27 05:37:27 +02:00
2009-04-10 16:03:24 +02:00
echo '<table cellpadding="4" cellspacing="4" class="databox" width="95%">' ;
echo '<tr><td style="white-space:nowrap;">' . __ ( 'Group' ) . ': ' ;
2006-03-27 05:37:27 +02:00
2008-10-23 08:58:38 +02:00
$groups = get_user_groups ();
2009-04-21 21:03:16 +02:00
print_select ( $groups , 'group_id' , $group_id , 'this.form.submit()' , '' , '' );
2007-02-22 17:45:10 +01:00
2009-04-10 16:03:24 +02:00
echo '</td><td style="white-space:nowrap;">' ;
2009-04-09 23:06:17 +02:00
2009-04-10 16:03:24 +02:00
echo __ ( 'Free text for search' ) . ' (*): ' ;
2009-04-09 23:06:17 +02:00
print_input_text ( " search " , $search , '' , 15 );
2008-01-10 17:40:00 +01:00
2009-04-10 16:03:24 +02:00
echo '</td><td style="white-space:nowrap;">' ;
2008-01-10 17:40:00 +01:00
2009-04-09 23:06:17 +02:00
print_submit_button ( __ ( 'Search' ), " srcbutton " , '' , array ( " class " => " sub " ));
2009-04-10 16:03:24 +02:00
echo '</td><td style="width:40%;"> </td></tr></table></form>' ;
2008-01-10 17:40:00 +01:00
2008-06-30 10:11:10 +02:00
if ( $search != " " ){
2009-04-09 23:06:17 +02:00
$search_sql = array ( " string " => '%' . $search . '%' );
2008-06-30 10:11:10 +02:00
} else {
2009-04-09 23:06:17 +02:00
$search_sql = array ();
2008-06-30 10:11:10 +02:00
}
// Show only selected groups
2009-04-21 21:03:16 +02:00
if ( $group_id > 1 ) {
$agent_names = get_group_agents ( $group_id , $search_sql , " upper " );
2008-06-30 10:11:10 +02:00
// Not selected any specific group
} else {
2009-04-09 23:06:17 +02:00
$user_group = get_user_groups ( $config [ " id_user " ], " AR " );
$agent_names = get_group_agents ( array_keys ( $user_group ), $search_sql , " upper " );
}
2008-06-09 19:51:18 +02:00
2009-05-11 16:36:26 +02:00
$num_agents = 0 ;
2009-04-09 23:06:17 +02:00
if ( ! empty ( $agent_names )) {
2009-04-21 21:03:16 +02:00
$num_agents = get_db_sql ( sprintf ( " SELECT COUNT(*) FROM tagente WHERE id_agente IN (%s) " , implode ( " , " , array_keys ( $agent_names ))));
2009-05-11 15:32:45 +02:00
$agents = get_db_all_rows_sql ( sprintf ( " SELECT * FROM tagente WHERE id_agente IN (%s) ORDER BY nombre ASC LIMIT %d,%d " , implode ( " , " , array_keys ( $agent_names )), ( int ) get_parameter ( " offset " ), $config [ " block_size " ]));
2008-06-30 10:11:10 +02:00
}
2006-03-27 05:37:27 +02:00
2009-04-09 23:06:17 +02:00
if ( empty ( $agents )) {
$agents = array ();
}
2008-09-03 14:11:53 +02:00
2008-06-30 10:11:10 +02:00
// Prepare pagination
2009-05-07 16:44:26 +02:00
pagination ( $num_agents , get_url_refresh ( array ( 'group_id' => $group_id , 'search' => $search )));
2008-06-30 10:11:10 +02:00
// Show data.
2009-04-09 23:06:17 +02:00
$table -> cellpadding = 4 ;
$table -> cellspacing = 4 ;
2009-04-20 16:00:27 +02:00
$table -> width = " 98% " ;
2009-04-09 23:06:17 +02:00
$table -> class = " databox " ;
$table -> head = array ();
$table -> head [ 0 ] = __ ( 'Agent' );
$table -> head [ 1 ] = __ ( 'OS' );
$table -> head [ 2 ] = __ ( 'Interval' );
$table -> head [ 3 ] = __ ( 'Group' );
$table -> head [ 4 ] = __ ( 'Modules' );
$table -> head [ 5 ] = __ ( 'Status' );
$table -> head [ 6 ] = __ ( 'Alerts' );
$table -> head [ 7 ] = __ ( 'Last contact' );
$table -> align = array ();
$table -> align [ 1 ] = " center " ;
$table -> align [ 2 ] = " center " ;
$table -> align [ 3 ] = " center " ;
$table -> align [ 4 ] = " center " ;
$table -> align [ 5 ] = " center " ;
$table -> align [ 6 ] = " center " ;
$table -> align [ 7 ] = " right " ;
$table -> data = array ();
foreach ( $agents as $agent ) {
$agent_info = get_agent_module_info ( $agent [ " id_agente " ]);
2008-10-21 14:57:03 +02:00
2009-04-09 23:06:17 +02:00
$data = array ();
$data [ 0 ] = '' ;
if ( give_acl ( $config [ 'id_user' ], $agent [ " id_grupo " ], " AW " )) {
$data [ 0 ] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente=' . $agent [ " id_agente " ] . '">' ;
$data [ 0 ] .= print_image ( " images/setup.png " , true , array ( " border " => 0 , " width " => 16 ));
$data [ 0 ] .= '</a> ' ;
}
2008-10-21 14:57:03 +02:00
2009-04-09 23:06:17 +02:00
$data [ 0 ] .= print_agent_name ( $agent [ " id_agente " ], true , " upper " );
2009-04-06 13:02:05 +02:00
2009-04-09 23:06:17 +02:00
$data [ 1 ] = print_os_icon ( $agent [ " id_os " ], false , true );
2009-04-06 13:02:05 +02:00
2009-04-09 23:06:17 +02:00
if ( $agent_info [ " interval " ] > $agent [ " intervalo " ]) {
$data [ 2 ] = '<span class="green">' . $agent_info [ " interval " ] . '</span>' ;
} else {
$data [ 2 ] = $agent [ " intervalo " ];
2006-03-27 05:37:27 +02:00
}
2009-04-09 23:06:17 +02:00
$data [ 3 ] = print_group_icon ( $agent [ " id_grupo " ], true );
$data [ 4 ] = '<b>' ;
$data [ 4 ] .= $agent_info [ " modules " ];
2009-04-18 16:35:53 +02:00
if ( $agent_info [ " monitor_normal " ] > 0 )
$data [ 4 ] .= '</b> : <span class="green">' . $agent_info [ " monitor_normal " ] . '</span>' ;
if ( $agent_info [ " monitor_warning " ] > 0 )
$data [ 4 ] .= ' : <span class="yellow">' . $agent_info [ " monitor_warning " ] . '</span>' ;
if ( $agent_info [ " monitor_critical " ] > 0 )
$data [ 4 ] .= ' : <span class="red">' . $agent_info [ " monitor_critical " ] . '</span>' ;
if ( $agent_info [ " monitor_down " ] > 0 )
$data [ 4 ] .= ' : <span class="grey">' . $agent_info [ " monitor_down " ] . '</span>' ;
2009-04-09 23:06:17 +02:00
$data [ 5 ] = $agent_info [ " status_img " ];
$data [ 6 ] = $agent_info [ " alert_img " ];
$data [ 7 ] = print_timestamp ( $agent_info [ " last_contact " ], true );
array_push ( $table -> data , $data );
}
if ( ! empty ( $table -> data )) {
print_table ( $table );
unset ( $table );
2008-10-21 14:57:03 +02:00
require ( " bulbs.php " );
2008-06-30 10:11:10 +02:00
} else {
2009-04-09 23:06:17 +02:00
echo '<div class="nf">' . __ ( 'There are no agents included in this group' ) . '</div>' ;
}
if ( give_acl ( $config [ 'id_user' ], 0 , " LM " ) || give_acl ( $config [ 'id_user' ], 0 , " AW " )
|| give_acl ( $config [ 'id_user' ], 0 , " PM " ) || give_acl ( $config [ 'id_user' ], 0 , " DM " )
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
|| give_acl ( $config [ 'id_user' ], 0 , " UM " )) {
2009-04-09 23:06:17 +02:00
echo '<form method="post" action="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente">' ;
2009-03-18 10:37:31 +01:00
print_input_hidden ( 'new_agent' , 1 );
print_submit_button ( __ ( 'Create agent' ), 'crt' , false , 'class="sub next"' );
2009-04-09 23:06:17 +02:00
echo '</form>' ;
2006-03-27 05:37:27 +02:00
}
2007-02-22 17:45:10 +01:00
?>