2008-08-22 20:07:32 +02:00
|
|
|
<?php
|
|
|
|
|
2009-06-08 20:15:58 +02:00
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2010-10-08 17:37:45 +02:00
|
|
|
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
|
2009-06-08 20:15:58 +02:00
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2006-07-06 19:06:59 +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.
|
2006-07-06 19:06:59 +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.
|
2006-03-27 05:37:27 +02:00
|
|
|
|
|
|
|
// Load globar vars
|
2010-03-02 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Solved issue with several undefined
vars.
* include/functions_servers.php: Solved issue with several undefined
vars.
* include/functions_config.php: Added metaconsola witch to readconfig.
* include/config_process.php: Update build.. is YYMMDD !
* include/functions_ui.php: Removed deprecated call to split and replaced
by preg_split.
* index.php: Activated developer mode.
* operation/agentes/estado_monitores.php: Solved small problem with modules
without history, filling missing column in table. Added headers
* godmode/alerts/configure_alert_compound.php,
operation/agentes/status_monitor.php
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: Removed deprecated call to include
config.php and in some cases, added new header style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-02 15:13:00 +01:00
|
|
|
global $config;
|
2008-06-30 18:38:26 +02:00
|
|
|
|
2008-11-20 22:26:59 +01:00
|
|
|
if (!isset ($id_agente)) {
|
|
|
|
//This page is included, $id_agente should be passed to it.
|
2010-10-27 Miguel de Dios <miguel.dedios@artica.es>
* godmode/admin_access_logs.php: added hooks to enterprise code, and added
new filter with more options.
* include/functions_db.php: erase the deprecated function "audit_db", and
added in function "pandora_audit" two new parameters $user_id, $ip for
pass this values when it are differents to the default values. Finally
replaced the depecrated "audit_db" for "pandora_audit".
* include/functions_events.php, include/functions_filemanager.php,
include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/functions_incidents.php, index.php, extensions/agents_modules.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/dbmanager.php, extensions/update_manager/settings.php,
extensions/pandora_logs.php, extensions/plugin_registration.php,
operation/incidents/incident.php, operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/agentes/status_monitor.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/gis_view.php, operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/graphs.php,
operation/agentes/agent_fields.php, operation/agentes/tactical.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php,operation/servers/view_server_detail.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/render_view.php, operation/events/event_statistics.php,
operation/events/sound_events.php, operation/events/events_validate.php,
operation/events/events_list.php, operation/events/events_marquee.php,
operation/events/events.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
godmode/groups/modu_group_list.php, godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php, godmode/groups/group_list.php,
godmode/extensions.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/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php,
godmode/servers/manage_export.php, godmode/servers/recon_script.php,
godmode/servers/manage_export_form.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php, godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_add_profiles.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.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_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.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.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/map_builder_wizard.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/graphs.php, godmode/reporting/graph_builder.preview.php:
Replaced the depecrated "audit_db" for "pandora_audit".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-27 12:47:07 +02:00
|
|
|
pandora_audit("HACK Attempt",
|
2008-11-20 22:26:59 +01:00
|
|
|
"Trying to get to monitor list without id_agent passed");
|
|
|
|
include ("general/noaccess.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
|
2010-07-21 20:07:21 +02:00
|
|
|
$id_agent = get_parameter('id_agente');
|
2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php,
general/logon_menu.php, general/logon_ok.php, include/functions_menu.php,
include/functions_ui.php, extensions/agents_modules.php,
operation/menu.php, godmode/menu.php, operation/estado_agente.php,
operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
some HTML tags, autoclose others, added alt to images, and changed some
& to "&" to help validation for XHTML 1.0 Transitional. Tested and
not error found, but needs more tests...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-11 12:16:09 +01:00
|
|
|
$url = 'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $id_agent;
|
2010-07-21 20:07:21 +02:00
|
|
|
$selectTypeUp = '';
|
|
|
|
$selectTypeDown = '';
|
|
|
|
$selectNameUp = '';
|
|
|
|
$selectNameDown = '';
|
|
|
|
$selectStatusUp = '';
|
|
|
|
$selectStatusDown = '';
|
|
|
|
$selectDataUp = '';
|
|
|
|
$selectDataDown = '';
|
|
|
|
$selectLastContactUp = '';
|
|
|
|
$selectLastContactDown = '';
|
|
|
|
$sortField = get_parameter('sort_field');
|
|
|
|
$sort = get_parameter('sort', 'none');
|
|
|
|
$selected = 'border: 1px solid black;';
|
|
|
|
|
|
|
|
switch ($sortField) {
|
|
|
|
case 'type':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectTypeUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.id_tipo_modulo', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectTypeDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.id_tipo_modulo', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 'name':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectNameUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.nombre', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectNameDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.nombre', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 'status':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectStatusUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.estado', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectStatusDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.estado', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 'data':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectDataUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.datos', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectDataDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.datos', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 'last_contact':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectLastContactUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.utimestamp', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectLastContactDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.utimestamp', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
$selectTypeUp = '';
|
|
|
|
$selectTypeDown = '';
|
|
|
|
$selectNameUp = $selected;
|
|
|
|
$selectNameDown = '';
|
|
|
|
$selectStatusUp = '';
|
|
|
|
$selectStatusDown = '';
|
|
|
|
$selectDataUp = '';
|
|
|
|
$selectDataDown = '';
|
|
|
|
$selectLastContactUp = '';
|
|
|
|
$selectLastContactDown = '';
|
|
|
|
|
|
|
|
$order = array('field' => 'tagente_modulo.nombre', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2011-04-11 19:05:20 +02:00
|
|
|
switch ($config["dbtype"]) {
|
|
|
|
case "oracle":
|
|
|
|
if (isset($order['field']) && $order['field'] == 'tagente_modulo.nombre') {
|
|
|
|
$order['field'] = 'dbms_lob.substr(tagente_modulo.nombre,4000,1)';
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2008-11-20 22:26:59 +01:00
|
|
|
// Get all module from agent
|
2009-06-24 18:04:19 +02:00
|
|
|
$sql = sprintf ("
|
|
|
|
SELECT *
|
|
|
|
FROM tagente_estado, tagente_modulo
|
|
|
|
LEFT JOIN tmodule_group
|
|
|
|
ON tmodule_group.id_mg = tagente_modulo.id_module_group
|
|
|
|
WHERE tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo
|
|
|
|
AND tagente_modulo.id_agente = %d
|
|
|
|
AND tagente_modulo.disabled = 0
|
|
|
|
AND tagente_modulo.delete_pending = 0
|
|
|
|
AND tagente_estado.utimestamp != 0
|
2010-07-21 20:07:21 +02:00
|
|
|
ORDER BY tagente_modulo.id_module_group , %s %s
|
|
|
|
", $id_agente, $order['field'], $order['order']);
|
2008-04-03 17:43:34 +02:00
|
|
|
|
2008-11-21 18:58:30 +01:00
|
|
|
$modules = get_db_all_rows_sql ($sql);
|
2008-11-21 20:00:06 +01:00
|
|
|
if (empty ($modules)) {
|
|
|
|
$modules = array ();
|
|
|
|
}
|
2008-11-21 18:58:30 +01:00
|
|
|
$table->width = 750;
|
|
|
|
$table->cellpadding = 4;
|
|
|
|
$table->cellspacing = 4;
|
|
|
|
$table->class = "databox";
|
|
|
|
$table->head = array ();
|
|
|
|
$table->data = array ();
|
2008-04-03 17:43:34 +02:00
|
|
|
|
2010-10-05 12:53:44 +02:00
|
|
|
$isFunctionPolicies = enterprise_include_once ('include/functions_policies.php');
|
|
|
|
|
|
|
|
$table->head[0] = "<span title='" . __('Force execution') . "'>".__('F.')."</span>";
|
|
|
|
|
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|
|
|
$table->head[1] = "<span title='" . __('Policy') . "'>".__('P.')."</span>";
|
|
|
|
}
|
|
|
|
|
|
|
|
$table->head[2] = __('Type') . ' ' .
|
2011-02-04 14:30:50 +01:00
|
|
|
'<a href="' . $url . '&sort_field=type&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '</a>' .
|
|
|
|
'<a href="' . $url . '&sort_field=type&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . '</a>';
|
2010-10-05 12:53:44 +02:00
|
|
|
$table->head[3] = __('Module name') . ' ' .
|
2011-02-04 14:30:50 +01:00
|
|
|
'<a href="' . $url . '&sort_field=name&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectNameUp, "alt" => "up")) . '</a>' .
|
|
|
|
'<a href="' . $url . '&sort_field=name&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectNameDown, "alt" => "down")) . '</a>';
|
2010-10-05 12:53:44 +02:00
|
|
|
$table->head[4] = __('Description');
|
|
|
|
$table->head[5] = __('Status') . ' ' .
|
2011-02-04 14:30:50 +01:00
|
|
|
'<a href="' . $url . '&sort_field=status&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '</a>' .
|
|
|
|
'<a href="' . $url . '&sort_field=status&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . '</a>';
|
2010-10-05 12:53:44 +02:00
|
|
|
$table->head[6] = __('Data') . ' ' .
|
2011-02-04 14:30:50 +01:00
|
|
|
'<a href="' . $url . '&sort_field=data&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '</a>' .
|
|
|
|
'<a href="' . $url . '&sort_field=data&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . '</a>';
|
2010-10-05 12:53:44 +02:00
|
|
|
$table->head[7] = __('Graph');
|
|
|
|
$table->head[8] = __('Last contact') . ' ' .
|
2011-02-04 14:30:50 +01:00
|
|
|
'<a href="' . $url . '&sort_field=last_contact&sort=up">' . print_image("images/sort_up.png", true, array("style" => $selectLastContactUp, "alt" => "up")) . '</a>' .
|
|
|
|
'<a href="' . $url . '&sort_field=last_contact&sort=down">' . print_image("images/sort_down.png", true, array("style" => $selectLastContactDown, "alt" => "down")) . '</a>';
|
2007-07-28 20:11:48 +02:00
|
|
|
|
2010-10-08 17:37:45 +02:00
|
|
|
$table->align = array("left","left","left","left","left","center");
|
2009-04-06 13:02:05 +02:00
|
|
|
|
2009-06-24 18:04:19 +02:00
|
|
|
$last_modulegroup = 0;
|
|
|
|
$rowIndex = 0;
|
2008-11-21 18:58:30 +01:00
|
|
|
foreach ($modules as $module) {
|
2009-06-24 18:04:19 +02:00
|
|
|
|
|
|
|
//The code add the row of 1 cell with title of group for to be more organice the list.
|
|
|
|
|
|
|
|
if ($module["id_module_group"] != $last_modulegroup)
|
|
|
|
{
|
|
|
|
$table->colspan[$rowIndex][0] = count($table->head);
|
|
|
|
$table->rowclass[$rowIndex] = 'datos4';
|
|
|
|
|
|
|
|
array_push ($table->data, array ('<b>'.$module['name'].'</b>'));
|
|
|
|
|
|
|
|
$rowIndex++;
|
|
|
|
$last_modulegroup = $module["id_module_group"];
|
|
|
|
}
|
|
|
|
//End of title of group
|
|
|
|
|
2008-11-21 18:58:30 +01:00
|
|
|
$data = array ();
|
|
|
|
if (($module["id_modulo"] != 1) && ($module["id_tipo_modulo"] != 100)) {
|
|
|
|
if ($module["flag"] == 0) {
|
2011-02-04 14:30:50 +01:00
|
|
|
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&flag=1&refr=60">' . print_image("images/target.png", true, array("border" => '0', "alt" => "target")) . '</a>';
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2011-02-04 14:30:50 +01:00
|
|
|
$data[0] = '<a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$id_agente.'&id_agente_modulo='.$module["id_agente_modulo"].'&refr=60">' . print_image("images/refresh.png", true, array("border" => "0", "alt" => "refresh")) . '</a>';
|
2008-11-20 22:26:59 +01:00
|
|
|
}
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2008-11-21 18:58:30 +01:00
|
|
|
$data[0] = '';
|
|
|
|
}
|
2010-10-05 12:53:44 +02:00
|
|
|
|
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
2010-10-14 17:09:29 +02:00
|
|
|
if ($module["id_policy_module"] != 0) {
|
2010-10-06 14:24:21 +02:00
|
|
|
$linked = isModuleLinked($module['id_agente_modulo']);
|
2010-10-05 12:53:44 +02:00
|
|
|
$id_policy = get_db_value_sql('SELECT id_policy FROM tpolicy_modules WHERE id = '.$module["id_policy_module"]);
|
2011-03-16 16:26:57 +01:00
|
|
|
|
|
|
|
if ($id_policy != "")
|
|
|
|
$name_policy = get_db_value_sql('SELECT name FROM tpolicies WHERE id = '.$id_policy);
|
|
|
|
else
|
|
|
|
$name_policy = __("Unknown");
|
|
|
|
|
2010-10-05 12:53:44 +02:00
|
|
|
$policyInfo = infoModulePolicy($module["id_policy_module"]);
|
2010-10-06 14:24:21 +02:00
|
|
|
|
2010-10-14 17:09:29 +02:00
|
|
|
$adopt = false;
|
|
|
|
if (isModuleAdopt($module['id_agente_modulo'])) {
|
|
|
|
$adopt = true;
|
|
|
|
}
|
|
|
|
|
2010-10-06 14:24:21 +02:00
|
|
|
if ($linked) {
|
2010-10-14 17:09:29 +02:00
|
|
|
if ($adopt) {
|
|
|
|
$img = 'images/policies_brick.png';
|
|
|
|
$title = __('(Adopt) ') . $name_policy;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$img = 'images/policies.png';
|
|
|
|
$title = $name_policy;
|
|
|
|
}
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2010-10-14 17:09:29 +02:00
|
|
|
if ($adopt) {
|
|
|
|
$img = 'images/policies_not_brick.png';
|
|
|
|
$title = __('(Unlinked) (Adopt) ') . $name_policy;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$img = 'images/unlinkpolicy.png';
|
|
|
|
$title = __('(Unlinked) ') . $name_policy;
|
|
|
|
}
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
|
2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php,
general/logon_menu.php, general/logon_ok.php, include/functions_menu.php,
include/functions_ui.php, extensions/agents_modules.php,
operation/menu.php, godmode/menu.php, operation/estado_agente.php,
operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
some HTML tags, autoclose others, added alt to images, and changed some
& to "&" to help validation for XHTML 1.0 Transitional. Tested and
not error found, but needs more tests...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-11 12:16:09 +01:00
|
|
|
$data[1] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $id_policy . '">' .
|
2010-10-06 14:24:21 +02:00
|
|
|
print_image($img,true, array('title' => $title)) .
|
2010-10-05 12:53:44 +02:00
|
|
|
'</a>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$data[1] = "";
|
|
|
|
}
|
|
|
|
}
|
2009-12-02 00:10:00 +01:00
|
|
|
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[2] = show_server_type ($module['id_modulo']);
|
2009-12-02 00:10:00 +01:00
|
|
|
|
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.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/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
godmode/servers/plugin.php, godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php, godmode/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.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_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.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.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/graph_builder.preview.php: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
|
|
|
if (check_acl ($config['id_user'], $id_grupo, "AW"))
|
2011-02-04 14:30:50 +01:00
|
|
|
$data[2] .= '<a href="index.php?sec=gagente&sec2=godmode/agentes/configurar_agente&id_agente='.$id_agente.'&tab=module&id_agent_module='.$module["id_agente_modulo"].'&edit_module='.$module["id_modulo"].'">' . print_image("images/config.png", true, array("alt" => '0', "border" => "")) . '</a>';
|
2009-02-13 16:05:23 +01:00
|
|
|
|
2011-04-13 18:11:02 +02:00
|
|
|
$data[3] = ui_print_string_substr ($module["nombre"], 25, true);
|
|
|
|
$data[4] = ui_print_string_substr ($module["descripcion"], 30, true);
|
2009-04-06 13:02:05 +02:00
|
|
|
|
|
|
|
$status = STATUS_MODULE_WARNING;
|
|
|
|
$title = "";
|
|
|
|
|
2010-08-04 13:08:16 +02:00
|
|
|
if ($module["estado"] == 1) {
|
2009-04-06 13:02:05 +02:00
|
|
|
$status = STATUS_MODULE_CRITICAL;
|
|
|
|
$title = __('CRITICAL');
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
elseif ($module["estado"] == 2) {
|
2010-08-04 13:08:16 +02:00
|
|
|
$status = STATUS_MODULE_WARNING;
|
|
|
|
$title = __('WARNING');
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
elseif ($module["estado"] == 0) {
|
2009-04-06 13:02:05 +02:00
|
|
|
$status = STATUS_MODULE_OK;
|
|
|
|
$title = __('NORMAL');
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
elseif ($module["estado"] == 3) {
|
2010-08-04 13:08:16 +02:00
|
|
|
$last_status = get_agentmodule_last_status($module['id_agente_modulo']);
|
|
|
|
switch($last_status) {
|
|
|
|
case 0:
|
|
|
|
$status = STATUS_MODULE_OK;
|
|
|
|
$title = __('UNKNOWN')." - ".__('Last status')." ".__('NORMAL');
|
|
|
|
break;
|
|
|
|
case 1:
|
|
|
|
$status = STATUS_MODULE_CRITICAL;
|
|
|
|
$title = __('UNKNOWN')." - ".__('Last status')." ".__('CRITICAL');
|
|
|
|
break;
|
|
|
|
case 2:
|
|
|
|
$status = STATUS_MODULE_WARNING;
|
|
|
|
$title = __('UNKNOWN')." - ".__('Last status')." ".__('WARNING');
|
|
|
|
break;
|
|
|
|
}
|
2007-05-28 21:15:44 +02:00
|
|
|
}
|
2008-11-21 18:58:30 +01:00
|
|
|
|
2009-01-20 17:43:49 +01:00
|
|
|
if (is_numeric($module["datos"])) {
|
2010-08-04 13:08:16 +02:00
|
|
|
$title .= ": " . format_for_graph($module["datos"]);
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2010-08-04 13:08:16 +02:00
|
|
|
$title .= ": " . substr(safe_output($module["datos"]),0,42);
|
2009-01-20 17:43:49 +01:00
|
|
|
}
|
2009-04-06 13:02:05 +02:00
|
|
|
|
2011-04-13 18:11:02 +02:00
|
|
|
$data[5] = ui_print_status_image($status, $title, true);
|
2009-04-06 13:02:05 +02:00
|
|
|
|
2010-04-28 11:10:23 +02:00
|
|
|
if ($module["id_tipo_modulo"] == 24) { // log4x
|
2010-03-18 21:52:56 +01:00
|
|
|
switch($module["datos"]) {
|
2010-10-06 14:24:21 +02:00
|
|
|
case 10: $salida = "TRACE"; $style="font-weight:bold; color:darkgreen;"; break;
|
|
|
|
case 20: $salida = "DEBUG"; $style="font-weight:bold; color:darkgreen;"; break;
|
|
|
|
case 30: $salida = "INFO"; $style="font-weight:bold; color:darkgreen;"; break;
|
|
|
|
case 40: $salida = "WARN"; $style="font-weight:bold; color:darkorange;"; break;
|
|
|
|
case 50: $salida = "ERROR"; $style="font-weight:bold; color:red;"; break;
|
|
|
|
case 60: $salida = "FATAL"; $style="font-weight:bold; color:red;"; break;
|
2010-03-18 21:52:56 +01:00
|
|
|
}
|
|
|
|
$salida = "<span style='$style'>$salida</span>";
|
2010-10-21 17:06:53 +02:00
|
|
|
}
|
|
|
|
else {
|
2010-03-18 21:52:56 +01:00
|
|
|
if (is_numeric($module["datos"])){
|
|
|
|
$salida = format_numeric($module["datos"]);
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2010-03-18 21:52:56 +01:00
|
|
|
$salida = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(safe_output($module["datos"]),0,12)."</span>";
|
|
|
|
}
|
2009-09-10 21:18:53 +02:00
|
|
|
}
|
2009-04-06 13:02:05 +02:00
|
|
|
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[6] = $salida;
|
2009-09-14 03:02:44 +02:00
|
|
|
$graph_type = return_graphtype ($module["id_tipo_modulo"]);
|
2010-03-02 Sancho Lerena <slerena@artica.es>
* include/functions_reporting.php: Solved issue with several undefined
vars.
* include/functions_servers.php: Solved issue with several undefined
vars.
* include/functions_config.php: Added metaconsola witch to readconfig.
* include/config_process.php: Update build.. is YYMMDD !
* include/functions_ui.php: Removed deprecated call to split and replaced
by preg_split.
* index.php: Activated developer mode.
* operation/agentes/estado_monitores.php: Solved small problem with modules
without history, filling missing column in table. Added headers
* godmode/alerts/configure_alert_compound.php,
operation/agentes/status_monitor.php
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php,
godmode/alerts/alert_commands.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php: Removed deprecated call to include
config.php and in some cases, added new header style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2444 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-03-02 15:13:00 +01:00
|
|
|
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[7] = " ";
|
2009-09-10 21:18:53 +02:00
|
|
|
if ($module['history_data'] == 1){
|
|
|
|
$nombre_tipo_modulo = get_moduletype_name ($module["id_tipo_modulo"]);
|
|
|
|
$handle = "stat".$nombre_tipo_modulo."_".$module["id_agente_modulo"];
|
|
|
|
$url = 'include/procesos.php?agente='.$module["id_agente_modulo"];
|
|
|
|
$win_handle=dechex(crc32($module["id_agente_modulo"].$module["nombre"]));
|
|
|
|
|
2011-03-11 13:33:15 +01:00
|
|
|
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".base64_encode($module["nombre"])."&refresh=600','day_".$win_handle."')";
|
2009-09-10 21:18:53 +02:00
|
|
|
|
2010-04-26 19:31:58 +02:00
|
|
|
// if ($nombre_tipo_modulo != "log4x")
|
2011-02-04 14:30:50 +01:00
|
|
|
$data[7] .= '<a href="javascript:'.$link.'">' . print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
2011-02-15 14:58:35 +01:00
|
|
|
$data[7] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=$id_agente&tab=data_view&period=86400&id=".$module["id_agente_modulo"]."'>" . print_image('images/binary.png', true, array("border" => '0', "alt" => "")) . "</a>";
|
2008-11-21 18:58:30 +01:00
|
|
|
}
|
|
|
|
|
2010-08-04 13:08:16 +02:00
|
|
|
if ($module['estado'] == 3) {
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[8] = '<span class="redb">';
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[8] = '<span>';
|
2008-11-21 18:58:30 +01:00
|
|
|
}
|
2011-04-13 18:11:02 +02:00
|
|
|
$data[8] .= ui_print_timestamp ($module["utimestamp"], true);
|
2010-10-05 12:53:44 +02:00
|
|
|
$data[8] .= '</span>';
|
2009-06-24 18:04:19 +02:00
|
|
|
|
2009-01-12 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Removed fields "timestamp" and "id_agente" (and altered
some indexes) on tagente_datos, tagente_datos_string and
tagente_datos_inc.
tagente_estado table: removed cambio, added status_changes, last_status.
tagente_modulo: added five new fields (warning,critical mgmt., flipflop
detection, history module and delete_pending bit.
* agent_manager.php: Group ALL not shown anymore.
* configurar_agente.php: Support for new options. Delete a module now
mark for deletion the module, not delete data (It's VERY slow!).
* modificar_agente.php: Delete agent now uses the global function,
minor fixes.
* module_manager_editor.php: New fields initializacion.
* module_manager_editor_network.php: At this time, the first module
editor who implements the new fields and improve old ones (tcp data).
* setup.php: Added support for new token: event_view_hr (Filter of max
old (in hr) for the event viewer. Removed old tokens show_unknown and
show_lastalert.
* functions.php: format_for_graph() has an important BUG that makes
all units rendered without the "K" !!!!. Fixed.
* delete_agent.php: Delete remote config (if present). Also mark
for deletion modules instead delete them (and let the data without
being deleted, because it's a HUGE consuming time, and it's left
for the daily db maintance process).
* estado_agente.php: Updated code for view new status.
* estado_generalagente.php: Total packets are removed from this view,
this was a huge time consuming SQL operation that don't give important
infomation. Groupname is now visualized.
* estado_ultimopaquete.php,
* estado_monitores.php,
* estado_grupo.php: Rewritten much code to view new status and other
minor changes.
* ver_agente.php: Data view now works under the tabs and other minor
changes.
* events.php: Support for the new events and status. Added filter for
username and for a max. hours old events. Some boxes are now hidden
by default.
* fgraph.php: Some graphs are now fixed and uses tagente_datos and
tagent_access with utimestamp and without id_agent index. Works faster
* images/*: Updated icons (module types) and two new bulb colors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 04:53:33 +01:00
|
|
|
array_push ($table->data, $data);
|
2009-06-24 18:04:19 +02:00
|
|
|
$rowIndex++;
|
|
|
|
}
|
2008-11-20 22:26:59 +01:00
|
|
|
|
2008-11-21 18:58:30 +01:00
|
|
|
if (empty ($table->data)) {
|
|
|
|
echo '<div class="nf">'.__('This agent doesn\'t have any active monitors').'</div>';
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
|
|
|
else {
|
2009-06-25 Jorge Gonzalez <jorgegonz@artica.es>
* include/functions_db.php, operation/snmpconsole/snmp_view.php,
* operation/agentes/status_monitor.php,
* operation/agentes/estado_grupo.php,
* operation/agentes/estado_ultimopaquete.php,
* operation/agentes/alerts_status.php,
* operation/agentes/estado_generalagente.php,
* operation/agentes/estado_agente.php,
* operation/agentes/exportdata.php,
* operation/agentes/estado_monitores.php,
* operation/agentes/tactical.php, operation/agentes/networkmap.php,
* operation/reporting/reporting_viewer.php, reporting/fgraph.php,
* general/pandora_help.php, general/logoff.php,
* general/logon_failed.php, godmode/setup/setup.php,
* godmode/setup/links.php, godmode/snmpconsole/snmp_alert.php,
* godmode/profiles/profile_list.php, godmode/db/db_main.php,
* godmode/db/db_audit.php, godmode/db/db_refine.php,
* godmode/db/db_info.php, godmode/db/db_event.php,
* godmode/db/db_purge.php,
* godmode/agentes/massive_delete_agents.php,
* godmode/agentes/massive_config.php,
* godmode/agentes/massive_delete_alerts.php,
* godmode/agentes/massive_edit_modules.php,
* godmode/agentes/module_manager.php,
* godmode/agentes/massive_delete_modules.php,
* godmode/agentes/configurar_agente.php,
* godmode/agentes/planned_downtime.php,
* godmode/modules/manage_network_templates_form.php,
* godmode/modules/manage_network_components.php,
* godmode/reporting/map_builder.php,
* godmode/reporting/map_builder_wizard.php,
* godmode/servers/manage_export.php,
* godmode/servers/manage_export_form.php,
* godmode/servers/plugin.php, godmode/servers/modificar_server.php,
* godmode/servers/manage_recontask_form.php,
* godmode/alerts/alert_compounds.php, godmode/menu.php: Some
* translatable strings reused to simplify i18n work.
* include/languages/es.po, include/languages/es.mo: Updated Spanish
* translation.
* include/languages/index.pot: Updated po template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-25 10:01:18 +02:00
|
|
|
echo "<h3>".__('Full list of monitors')."</h3>";
|
2008-11-21 18:58:30 +01:00
|
|
|
print_table ($table);
|
2008-11-20 22:26:59 +01:00
|
|
|
}
|
2008-07-21 14:23:28 +02:00
|
|
|
|
2008-11-21 18:58:30 +01:00
|
|
|
unset ($table);
|
|
|
|
unset ($table_data);
|
2009-01-12 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Removed fields "timestamp" and "id_agente" (and altered
some indexes) on tagente_datos, tagente_datos_string and
tagente_datos_inc.
tagente_estado table: removed cambio, added status_changes, last_status.
tagente_modulo: added five new fields (warning,critical mgmt., flipflop
detection, history module and delete_pending bit.
* agent_manager.php: Group ALL not shown anymore.
* configurar_agente.php: Support for new options. Delete a module now
mark for deletion the module, not delete data (It's VERY slow!).
* modificar_agente.php: Delete agent now uses the global function,
minor fixes.
* module_manager_editor.php: New fields initializacion.
* module_manager_editor_network.php: At this time, the first module
editor who implements the new fields and improve old ones (tcp data).
* setup.php: Added support for new token: event_view_hr (Filter of max
old (in hr) for the event viewer. Removed old tokens show_unknown and
show_lastalert.
* functions.php: format_for_graph() has an important BUG that makes
all units rendered without the "K" !!!!. Fixed.
* delete_agent.php: Delete remote config (if present). Also mark
for deletion modules instead delete them (and let the data without
being deleted, because it's a HUGE consuming time, and it's left
for the daily db maintance process).
* estado_agente.php: Updated code for view new status.
* estado_generalagente.php: Total packets are removed from this view,
this was a huge time consuming SQL operation that don't give important
infomation. Groupname is now visualized.
* estado_ultimopaquete.php,
* estado_monitores.php,
* estado_grupo.php: Rewritten much code to view new status and other
minor changes.
* ver_agente.php: Data view now works under the tabs and other minor
changes.
* events.php: Support for the new events and status. Added filter for
username and for a max. hours old events. Some boxes are now hidden
by default.
* fgraph.php: Some graphs are now fixed and uses tagente_datos and
tagent_access with utimestamp and without id_agent index. Works faster
* images/*: Updated icons (module types) and two new bulb colors.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 04:53:33 +01:00
|
|
|
?>
|