2006-03-27 05:37:27 +02:00
|
|
|
<?php
|
2008-08-22 20:07:32 +02:00
|
|
|
|
2009-06-08 20:15:58 +02:00
|
|
|
|
|
|
|
// Pandora FMS - http://pandorafms.com
|
|
|
|
// ==================================================
|
2010-05-31 13:41:10 +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-04-17 17:27:25 +02:00
|
|
|
|
2006-07-09 16:20:10 +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-09 16:20:10 +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
|
|
|
|
2008-08-22 20:07:32 +02:00
|
|
|
|
|
|
|
|
2006-03-27 05:37:27 +02:00
|
|
|
// Load global 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-04-17 17:27:25 +02:00
|
|
|
|
2008-07-21 14:23:28 +02:00
|
|
|
check_login();
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
if (! check_acl ($config['id_user'], 0, "AR")
|
|
|
|
&& ! check_acl ($config['id_user'], 0, "AW")) {
|
* include/functions_graph.php
include/functions_html.php
include/functions_messages.php
include/db/postgresql.php
include/db/mysql.php
include/db/oracle.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/ajax/skins.ajax.php
include/ajax/reporting.ajax.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/help/en/help_timesource.php
include/help/es/help_timesource.php
include/help/ja/help_timesource.php
include/config_process.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_incidents.php
include/api.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/system_info.php
extensions/extension_uploader.php
extensions/pandora_logs.php
extensions/agents_modules.php
extensions/update_manager.php
extensions/ssh_console.php
extensions/dbmanager.php
extensions/vnc_view.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/users_connected.php
extensions/module_groups.php
extensions/update_manager/load_updatemanager.php
extensions/update_manager/lib/libupdate_manager_client.php
extensions/update_manager/lib/libupdate_manager.php
extensions/update_manager/lib/libupdate_manager_components.php
extensions/update_manager/lib/libupdate_manager_updates.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/search_modules.php
operation/visual_console/render_view.php
operation/visual_console/index.php
operation/extensions.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/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/search_graphs.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident_statistics.php
operation/events/event_statistics.php
operation/events/events_rss.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_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/graph_viewer.php
operation/search_reports.php
operation/search_maps.php
operation/search_users.php
extras/pandora_diag.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
mobile/index.php
general/error_authconfig.php
general/links_menu.php
general/logon_ok.php
general/error_dbconfig.php
general/ui/agents_list.php
general/header.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/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_common.php
godmode/agentes/fields_manager.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/configure_field.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/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/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/snmpconsole/snmp_alert.php
godmode/snmpconsole/snmp_filters.php
godmode/users/user_list.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/visual_console_builder.wizard.php
godmode/reporting/graph_builder.main.php
godmode/reporting/reporting_builder.list_items.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
include/functions_db.php: Added some includes and functions of this code have "db_" prefix.
* include/functions.php: Moved function check_login(), check_acl(),
dame_nombre_pluginid(), get_os_name() from functions_db.php to functions.php.
* include/functions_groups.php: Moved functions get_childrens(), safe_acl_group()
and get_parents(), give_disabled_group(), isAllGroups(), get_group_icon(), get_all_groups(),
get_id_groups_recursive(), get_user_groups_tree_recursive(), get_group_status(),
get_group_name(), get_group_users() from functions_db.php to this code.
* include/functions_profile.php: New library with profile functions. Moved functions
get_profile_name(), get_profiles(), create_user_profile(), delete_user_profile(),
delete_profile() from functions_db.php to this code. Added new parameter in function
get_profile() to retrieve profiles with filter conditions applied.
* include/functions_users.php: New library with users functions. Moved functions
get_users_info(), get_all_model_groups(), get_user_groups(), get_user_groups_tree(),
get_user_first_group(), user_access_to_agent() from funtions_db.php to this code.
* godmode/users/configure_user.php: Changed get_profile_filter() function to get_profile().
* include/functions_agents.php: Moved functions get_group_agents(), get_agent_modules(),
get_agent_module_id(), get_agent_id(), get_agent_name(), get_agent_modules_data_count(),
check_alert_fired(), get_agent_interval(), get_agent_os(), give_agentmodule_flag(),
agent_add_address(), agent_delete_address(), get_agent_address(), get_agent_with_ip(),
get_agent_addresses(), get_agent_status(), delete_agent(), get_agentmodule_group(),
get_agent_group() from functions_db.php to this code.
* include/functions_modules.php: Moved functions get_agentmodule(), get_agentmodule_id(),
get_agentmodule_is_init(), get_agent_modules_count(), get_module_type_name(),
get_module_type_icon(), get_agentmodule_agent(), get_agentmodule_agent_name(),
get_agentmodule_name(), get_agentmodule_type(), get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(), get_monitors_in_group(),
get_monitors_in_agent(), get_monitors_down(), get_moduletype_name(),
get_moduletype_description(), get_moduletypes(), get_module_interval(), show_icon_type(),
give_modulecategory_name(),
give_agent_id_from_module_id(), get_module_status(), get_agent_module_last_value(),
get_previous_data(), get_agentmodule_modulegroup(), get_modulegroups(),
get_modulegroup_name() from functions_db.php to this code.
* include/functions_alerts.php: Moved functions get_alert_type(), get_agent_alert_fired(),
get_module_alert_fired(), get_alert_fires_in_period(), get_group_alerts(), get_alerts_fired(),
get_alert_last_fire_timestamp_in_period(), get_agentmodule_status(),
get_agentmodule_last_status() from functions_db.php to this code.
* include/functions_exportserver.php: Moved function dame_nombre_servidorexportacion()
from functions_db.php to this code.
* include/functions_events.php: Moved functions get_group_events(), get_agent_events(),
get_module_events() from functions_db.php to this code.
* include/functions_servers.php: Moved functions get_server_name(), show_server_type(),
check_server_status(), server_status() from functions_db.php to this code.
* include/functions_network_profiles.php: Moved function get_networkprofile_name()
from functions_db.php to this code.
* include/functions_visual_map.php: Moved functions get_layoutdata_x(), get_layoutdata_y()
from fucntions_db.php to this code.
* include/functions_io.php: Moved function __() from functions_db.php to this code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-19 20:42:49 +02:00
|
|
|
db_pandora_audit("ACL Violation",
|
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
|
|
|
"Trying to access Agent Management");
|
2009-05-19 15:33:27 +02:00
|
|
|
require ('general/noaccess.php');
|
|
|
|
return;
|
2008-01-10 17:40:00 +01:00
|
|
|
}
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2011-11-24 19:19:09 +01:00
|
|
|
require_once($config['homedir'] . '/include/functions_agents.php');
|
|
|
|
require_once($config['homedir'] . '/include/functions_modules.php');
|
* include/functions_graph.php
include/functions_html.php
include/functions_messages.php
include/db/postgresql.php
include/db/mysql.php
include/db/oracle.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/ajax/skins.ajax.php
include/ajax/reporting.ajax.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/help/en/help_timesource.php
include/help/es/help_timesource.php
include/help/ja/help_timesource.php
include/config_process.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_incidents.php
include/api.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/system_info.php
extensions/extension_uploader.php
extensions/pandora_logs.php
extensions/agents_modules.php
extensions/update_manager.php
extensions/ssh_console.php
extensions/dbmanager.php
extensions/vnc_view.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/users_connected.php
extensions/module_groups.php
extensions/update_manager/load_updatemanager.php
extensions/update_manager/lib/libupdate_manager_client.php
extensions/update_manager/lib/libupdate_manager.php
extensions/update_manager/lib/libupdate_manager_components.php
extensions/update_manager/lib/libupdate_manager_updates.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/search_modules.php
operation/visual_console/render_view.php
operation/visual_console/index.php
operation/extensions.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/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/search_graphs.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident_statistics.php
operation/events/event_statistics.php
operation/events/events_rss.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_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/graph_viewer.php
operation/search_reports.php
operation/search_maps.php
operation/search_users.php
extras/pandora_diag.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
mobile/index.php
general/error_authconfig.php
general/links_menu.php
general/logon_ok.php
general/error_dbconfig.php
general/ui/agents_list.php
general/header.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/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_common.php
godmode/agentes/fields_manager.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/configure_field.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/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/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/snmpconsole/snmp_alert.php
godmode/snmpconsole/snmp_filters.php
godmode/users/user_list.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/visual_console_builder.wizard.php
godmode/reporting/graph_builder.main.php
godmode/reporting/reporting_builder.list_items.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
include/functions_db.php: Added some includes and functions of this code have "db_" prefix.
* include/functions.php: Moved function check_login(), check_acl(),
dame_nombre_pluginid(), get_os_name() from functions_db.php to functions.php.
* include/functions_groups.php: Moved functions get_childrens(), safe_acl_group()
and get_parents(), give_disabled_group(), isAllGroups(), get_group_icon(), get_all_groups(),
get_id_groups_recursive(), get_user_groups_tree_recursive(), get_group_status(),
get_group_name(), get_group_users() from functions_db.php to this code.
* include/functions_profile.php: New library with profile functions. Moved functions
get_profile_name(), get_profiles(), create_user_profile(), delete_user_profile(),
delete_profile() from functions_db.php to this code. Added new parameter in function
get_profile() to retrieve profiles with filter conditions applied.
* include/functions_users.php: New library with users functions. Moved functions
get_users_info(), get_all_model_groups(), get_user_groups(), get_user_groups_tree(),
get_user_first_group(), user_access_to_agent() from funtions_db.php to this code.
* godmode/users/configure_user.php: Changed get_profile_filter() function to get_profile().
* include/functions_agents.php: Moved functions get_group_agents(), get_agent_modules(),
get_agent_module_id(), get_agent_id(), get_agent_name(), get_agent_modules_data_count(),
check_alert_fired(), get_agent_interval(), get_agent_os(), give_agentmodule_flag(),
agent_add_address(), agent_delete_address(), get_agent_address(), get_agent_with_ip(),
get_agent_addresses(), get_agent_status(), delete_agent(), get_agentmodule_group(),
get_agent_group() from functions_db.php to this code.
* include/functions_modules.php: Moved functions get_agentmodule(), get_agentmodule_id(),
get_agentmodule_is_init(), get_agent_modules_count(), get_module_type_name(),
get_module_type_icon(), get_agentmodule_agent(), get_agentmodule_agent_name(),
get_agentmodule_name(), get_agentmodule_type(), get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(), get_monitors_in_group(),
get_monitors_in_agent(), get_monitors_down(), get_moduletype_name(),
get_moduletype_description(), get_moduletypes(), get_module_interval(), show_icon_type(),
give_modulecategory_name(),
give_agent_id_from_module_id(), get_module_status(), get_agent_module_last_value(),
get_previous_data(), get_agentmodule_modulegroup(), get_modulegroups(),
get_modulegroup_name() from functions_db.php to this code.
* include/functions_alerts.php: Moved functions get_alert_type(), get_agent_alert_fired(),
get_module_alert_fired(), get_alert_fires_in_period(), get_group_alerts(), get_alerts_fired(),
get_alert_last_fire_timestamp_in_period(), get_agentmodule_status(),
get_agentmodule_last_status() from functions_db.php to this code.
* include/functions_exportserver.php: Moved function dame_nombre_servidorexportacion()
from functions_db.php to this code.
* include/functions_events.php: Moved functions get_group_events(), get_agent_events(),
get_module_events() from functions_db.php to this code.
* include/functions_servers.php: Moved functions get_server_name(), show_server_type(),
check_server_status(), server_status() from functions_db.php to this code.
* include/functions_network_profiles.php: Moved function get_networkprofile_name()
from functions_db.php to this code.
* include/functions_visual_map.php: Moved functions get_layoutdata_x(), get_layoutdata_y()
from fucntions_db.php to this code.
* include/functions_io.php: Moved function __() from functions_db.php to this code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-19 20:42:49 +02:00
|
|
|
require_once($config['homedir'] . '/include/functions_users.php');
|
2012-11-26 19:38:09 +01:00
|
|
|
enterprise_include_once ('include/functions_metaconsole.php');
|
|
|
|
|
2011-11-28 03:11:53 +01:00
|
|
|
$isFunctionPolicies = enterprise_include_once ('include/functions_policies.php');
|
* include/functions_graph.php
include/functions_html.php
include/functions_messages.php
include/db/postgresql.php
include/db/mysql.php
include/db/oracle.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/ajax/skins.ajax.php
include/ajax/reporting.ajax.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/help/en/help_timesource.php
include/help/es/help_timesource.php
include/help/ja/help_timesource.php
include/config_process.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_incidents.php
include/api.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/system_info.php
extensions/extension_uploader.php
extensions/pandora_logs.php
extensions/agents_modules.php
extensions/update_manager.php
extensions/ssh_console.php
extensions/dbmanager.php
extensions/vnc_view.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/users_connected.php
extensions/module_groups.php
extensions/update_manager/load_updatemanager.php
extensions/update_manager/lib/libupdate_manager_client.php
extensions/update_manager/lib/libupdate_manager.php
extensions/update_manager/lib/libupdate_manager_components.php
extensions/update_manager/lib/libupdate_manager_updates.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/search_modules.php
operation/visual_console/render_view.php
operation/visual_console/index.php
operation/extensions.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/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/search_graphs.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident_statistics.php
operation/events/event_statistics.php
operation/events/events_rss.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_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/graph_viewer.php
operation/search_reports.php
operation/search_maps.php
operation/search_users.php
extras/pandora_diag.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
mobile/index.php
general/error_authconfig.php
general/links_menu.php
general/logon_ok.php
general/error_dbconfig.php
general/ui/agents_list.php
general/header.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/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_common.php
godmode/agentes/fields_manager.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/configure_field.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/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/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/snmpconsole/snmp_alert.php
godmode/snmpconsole/snmp_filters.php
godmode/users/user_list.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/visual_console_builder.wizard.php
godmode/reporting/graph_builder.main.php
godmode/reporting/reporting_builder.list_items.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
include/functions_db.php: Added some includes and functions of this code have "db_" prefix.
* include/functions.php: Moved function check_login(), check_acl(),
dame_nombre_pluginid(), get_os_name() from functions_db.php to functions.php.
* include/functions_groups.php: Moved functions get_childrens(), safe_acl_group()
and get_parents(), give_disabled_group(), isAllGroups(), get_group_icon(), get_all_groups(),
get_id_groups_recursive(), get_user_groups_tree_recursive(), get_group_status(),
get_group_name(), get_group_users() from functions_db.php to this code.
* include/functions_profile.php: New library with profile functions. Moved functions
get_profile_name(), get_profiles(), create_user_profile(), delete_user_profile(),
delete_profile() from functions_db.php to this code. Added new parameter in function
get_profile() to retrieve profiles with filter conditions applied.
* include/functions_users.php: New library with users functions. Moved functions
get_users_info(), get_all_model_groups(), get_user_groups(), get_user_groups_tree(),
get_user_first_group(), user_access_to_agent() from funtions_db.php to this code.
* godmode/users/configure_user.php: Changed get_profile_filter() function to get_profile().
* include/functions_agents.php: Moved functions get_group_agents(), get_agent_modules(),
get_agent_module_id(), get_agent_id(), get_agent_name(), get_agent_modules_data_count(),
check_alert_fired(), get_agent_interval(), get_agent_os(), give_agentmodule_flag(),
agent_add_address(), agent_delete_address(), get_agent_address(), get_agent_with_ip(),
get_agent_addresses(), get_agent_status(), delete_agent(), get_agentmodule_group(),
get_agent_group() from functions_db.php to this code.
* include/functions_modules.php: Moved functions get_agentmodule(), get_agentmodule_id(),
get_agentmodule_is_init(), get_agent_modules_count(), get_module_type_name(),
get_module_type_icon(), get_agentmodule_agent(), get_agentmodule_agent_name(),
get_agentmodule_name(), get_agentmodule_type(), get_monitor_downs_in_period(),
get_monitor_last_down_timestamp_in_period(), get_monitors_in_group(),
get_monitors_in_agent(), get_monitors_down(), get_moduletype_name(),
get_moduletype_description(), get_moduletypes(), get_module_interval(), show_icon_type(),
give_modulecategory_name(),
give_agent_id_from_module_id(), get_module_status(), get_agent_module_last_value(),
get_previous_data(), get_agentmodule_modulegroup(), get_modulegroups(),
get_modulegroup_name() from functions_db.php to this code.
* include/functions_alerts.php: Moved functions get_alert_type(), get_agent_alert_fired(),
get_module_alert_fired(), get_alert_fires_in_period(), get_group_alerts(), get_alerts_fired(),
get_alert_last_fire_timestamp_in_period(), get_agentmodule_status(),
get_agentmodule_last_status() from functions_db.php to this code.
* include/functions_exportserver.php: Moved function dame_nombre_servidorexportacion()
from functions_db.php to this code.
* include/functions_events.php: Moved functions get_group_events(), get_agent_events(),
get_module_events() from functions_db.php to this code.
* include/functions_servers.php: Moved functions get_server_name(), show_server_type(),
check_server_status(), server_status() from functions_db.php to this code.
* include/functions_network_profiles.php: Moved function get_networkprofile_name()
from functions_db.php to this code.
* include/functions_visual_map.php: Moved functions get_layoutdata_x(), get_layoutdata_y()
from fucntions_db.php to this code.
* include/functions_io.php: Moved function __() from functions_db.php to this code.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4258 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-04-19 20:42:49 +02:00
|
|
|
|
2012-06-21 15:27:37 +02:00
|
|
|
// TODO: CLEAN extra_sql
|
|
|
|
$extra_sql = '';
|
2011-05-12 Miguel de Dios <miguel.dedios@artica.es>
* include/functions.php: added new parameter for the "check_acl" function
the $id_agent, by default is 0, and this parameter now only is used in the
enterprise ACL check (as you see in the hook for enterprise into the
function source). And cleaned source code style.
* include/functions_agents.php, operation/search_modules.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/alerts_status.php, operation/agentes/estado_agente.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
godmode/agentes/module_manager.php, godmode/agentes/modificar_agente.php,
godmode/agentes/configurar_agente.php, godmode/alerts/alert_list.list.php:
added checks for the ACL enterprise.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4347 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-12 16:33:07 +02:00
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
//Header
|
|
|
|
ui_print_page_header ("Monitor detail", "images/brick.png", false);
|
|
|
|
} else {
|
2012-11-27 19:59:31 +01:00
|
|
|
|
|
|
|
ui_meta_print_header(__("Monitor view"));
|
2012-11-26 19:38:09 +01:00
|
|
|
}
|
2008-01-10 17:40:00 +01:00
|
|
|
|
2009-05-19 15:33:27 +02:00
|
|
|
$ag_freestring = get_parameter ('ag_freestring');
|
|
|
|
$ag_modulename = (string) get_parameter ('ag_modulename');
|
2012-11-29 18:34:51 +01:00
|
|
|
$ag_group = get_parameter ('ag_group', 0);
|
|
|
|
$offset = (int) get_parameter ('offset', 0);
|
2009-05-19 15:33:27 +02:00
|
|
|
$status = (int) get_parameter ('status', 4);
|
2012-11-29 18:34:51 +01:00
|
|
|
$modulegroup = get_parameter ('modulegroup', -1);
|
|
|
|
$tag_filter = get_parameter('tag_filter', 0);
|
2011-11-28 11:07:42 +01:00
|
|
|
$sql_extra = '';
|
2011-12-05 19:22:49 +01:00
|
|
|
$refr = get_parameter('refr', 0);
|
|
|
|
// Sort functionality
|
2011-11-28 11:07:42 +01:00
|
|
|
|
2011-12-05 19:22:49 +01:00
|
|
|
$sortField = get_parameter('sort_field');
|
|
|
|
$sort = get_parameter('sort', 'none');
|
2008-01-10 17:40:00 +01:00
|
|
|
|
2011-12-05 19:22:49 +01:00
|
|
|
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=' . $sortField . '&sort=' . $sort .'">';
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
echo '<table cellspacing="4" cellpadding="4" width="98%" class="databox">
|
|
|
|
<tr>';
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
// Get Groups and profiles from user
|
2012-11-04 20:10:19 +01:00
|
|
|
$user_groups = implode (",", array_keys (users_get_groups ()));
|
2011-03-03 12:32:05 +01:00
|
|
|
switch ($config["dbtype"]) {
|
|
|
|
case "mysql":
|
|
|
|
case "postgresql":
|
2011-05-16 13:02:31 +02:00
|
|
|
$profiles = db_get_all_rows_sql('SELECT id_grupo
|
|
|
|
FROM tusuario_perfil AS t1
|
|
|
|
INNER JOIN tperfil AS t2 ON t1.id_perfil = t2.id_perfil
|
|
|
|
WHERE t2.agent_view = 1 AND t1.id_usuario = \'' . $config['id_user'] . '\';');
|
|
|
|
if ($profiles === false)
|
|
|
|
$profiles = array();
|
|
|
|
|
|
|
|
$id_groups = array();
|
|
|
|
$flag_all_group = false;
|
|
|
|
foreach ($profiles as $profile) {
|
|
|
|
if ($profile['id_grupo'] == 0) {
|
|
|
|
$flag_all_group = true;
|
|
|
|
}
|
|
|
|
$id_groups[] = $profile['id_grupo'];
|
|
|
|
}
|
|
|
|
|
|
|
|
//The check of is_admin
|
|
|
|
$flag_is_admin = (bool)db_get_value('is_admin', 'tusuario', 'id_user', $config['id_user']);
|
|
|
|
|
|
|
|
$sql = ' SELECT distinct(nombre)
|
|
|
|
FROM tagente_modulo
|
2011-11-24 19:19:09 +01:00
|
|
|
WHERE nombre <> \'delete_pending\' AND id_agente IN
|
2011-03-03 12:32:05 +01:00
|
|
|
(
|
2011-05-16 13:02:31 +02:00
|
|
|
SELECT id_agente
|
|
|
|
FROM tagente
|
|
|
|
WHERE';
|
|
|
|
|
2011-11-24 19:19:09 +01:00
|
|
|
$sql .= $extra_sql.'(';
|
|
|
|
|
2011-05-16 13:02:31 +02:00
|
|
|
if ($flag_is_admin || $flag_all_group) {
|
|
|
|
$sql .= ' 1 = 1 ';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (empty($id_groups)) {
|
|
|
|
$sql .= ' 1 = 0 ';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$sql .= ' id_grupo IN (' . implode(',', $id_groups) . ') ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-24 19:19:09 +01:00
|
|
|
$sql .= '))';
|
2011-03-03 12:32:05 +01:00
|
|
|
break;
|
2011-04-11 19:05:20 +02:00
|
|
|
case "oracle":
|
2011-05-17 17:59:40 +02:00
|
|
|
$profiles = db_get_all_rows_sql('SELECT id_grupo
|
|
|
|
FROM tusuario_perfil t1
|
|
|
|
INNER JOIN tperfil t2 ON t1.id_perfil = t2.id_perfil
|
|
|
|
WHERE t2.agent_view = 1 AND t1.id_usuario = \'' . $config['id_user'] . '\';');
|
|
|
|
if ($profiles === false)
|
|
|
|
$profiles = array();
|
2011-04-11 19:05:20 +02:00
|
|
|
|
2011-05-17 17:59:40 +02:00
|
|
|
$id_groups = array();
|
|
|
|
$flag_all_group = false;
|
|
|
|
foreach ($profiles as $profile) {
|
|
|
|
if ($profile['id_grupo'] == 0) {
|
|
|
|
$flag_all_group = true;
|
|
|
|
}
|
|
|
|
$id_groups[] = $profile['id_grupo'];
|
|
|
|
}
|
|
|
|
|
|
|
|
//The check of is_admin
|
2012-11-04 20:10:19 +01:00
|
|
|
$flag_is_admin = (bool)db_get_value('is_admin', 'tusuario',
|
|
|
|
'id_user', $config['id_user']);
|
2011-05-17 17:59:40 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql = ' SELECT DISTINCT dbms_lob.substr(nombre,4000,1) AS nombre
|
|
|
|
FROM tagente_modulo
|
|
|
|
WHERE dbms_lob.substr(nombre,4000,1) <> \'delete_pending\'
|
|
|
|
AND id_agente IN
|
|
|
|
(
|
|
|
|
SELECT id_agente
|
|
|
|
FROM tagente
|
|
|
|
WHERE';
|
2011-05-17 17:59:40 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql .= $extra_sql . '(';
|
2012-06-20 11:43:14 +02:00
|
|
|
|
2011-05-17 17:59:40 +02:00
|
|
|
if ($flag_is_admin || $flag_all_group) {
|
|
|
|
$sql .= ' 1 = 1 ';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (empty($id_groups)) {
|
|
|
|
$sql .= ' 1 = 0 ';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$sql .= ' id_grupo IN (' . implode(',', $id_groups) . ') ';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2011-11-24 19:19:09 +01:00
|
|
|
$sql .= '))';
|
2011-04-11 19:05:20 +02:00
|
|
|
break;
|
2011-03-03 12:32:05 +01:00
|
|
|
}
|
2011-01-20 20:19:48 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$modules = array();
|
|
|
|
$tags = array();
|
|
|
|
$rows_select = array();
|
|
|
|
$rows_temp_processed = array();
|
2012-12-03 14:23:30 +01:00
|
|
|
$groups_select = array();
|
|
|
|
if ($flag_is_admin)
|
|
|
|
$groups_select[0] = __('All');
|
2012-11-29 18:34:51 +01:00
|
|
|
|
|
|
|
if (defined('METACONSOLE')) {
|
|
|
|
|
|
|
|
// For each server defined and not disabled:
|
|
|
|
$servers = db_get_all_rows_sql ("SELECT * FROM tmetaconsole_setup WHERE disabled = 0");
|
|
|
|
if ($servers === false)
|
|
|
|
$servers = array();
|
|
|
|
|
|
|
|
$result = array();
|
|
|
|
|
|
|
|
foreach($servers as $server) {
|
|
|
|
// If connection was good then retrieve all data server
|
|
|
|
if (metaconsole_connect($server) == NOERR){
|
|
|
|
$connection = true;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$connection = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get all info for filters of all nodes
|
|
|
|
$modules_temp = db_get_all_rows_sql($sql);
|
|
|
|
|
|
|
|
$tags_temp = db_get_all_rows_sql('SELECT name, name
|
|
|
|
FROM ttag
|
|
|
|
WHERE id_tag IN (SELECT ttag_module.id_tag
|
|
|
|
FROM ttag_module)');
|
|
|
|
|
|
|
|
$rows_temp = db_get_all_rows_sql("SELECT distinct name
|
|
|
|
FROM tmodule_group ORDER BY name");
|
|
|
|
$rows_temp = io_safe_output($rows_temp);
|
|
|
|
|
|
|
|
if (!empty($rows_temp)) {
|
|
|
|
foreach ($rows_temp as $module_group_key => $modules_group_val)
|
|
|
|
$rows_temp_processed[$modules_group_val['name']] = $modules_group_val['name'];
|
|
|
|
|
|
|
|
$rows_select = array_unique(array_merge($rows_select, $rows_temp_processed));
|
|
|
|
}
|
|
|
|
|
|
|
|
$groups_temp = users_get_groups_for_select(false, "AR", true, true, false);
|
|
|
|
|
|
|
|
$groups_temp_processed = array();
|
|
|
|
|
|
|
|
foreach ($groups_temp as $group_temp_key => $group_temp_val) {
|
|
|
|
$new_key = str_replace(' ','',$group_temp_val);
|
|
|
|
$groups_temp_processed[$new_key] = $group_temp_val;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($groups_temp_processed)) {
|
|
|
|
$groups_select = array_unique(array_merge($groups_select, $groups_temp_processed));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty($modules_temp))
|
|
|
|
$modules = array_merge($modules, $modules_temp);
|
|
|
|
if (!empty($tags_temp))
|
|
|
|
$tags = array_merge($tags, $tags_temp);
|
|
|
|
|
|
|
|
metaconsole_restore_db();
|
|
|
|
}
|
|
|
|
unset($groups_select[__('All')]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!defined('METACONSOLE')) {
|
|
|
|
echo '
|
|
|
|
<td valign="middle">' . __('Group') . '</td>
|
|
|
|
<td valign="middle">' .
|
|
|
|
html_print_select_groups(false, "AR", true, "ag_group",
|
|
|
|
$ag_group, '', '', '0', true, false, false, 'w130',
|
|
|
|
false, 'width:150px;') . '
|
|
|
|
</td>';
|
|
|
|
}
|
2012-11-29 19:27:37 +01:00
|
|
|
else {
|
2012-11-29 18:34:51 +01:00
|
|
|
echo '
|
2012-11-29 19:27:37 +01:00
|
|
|
<td valign="middle">' . __('Group') . '</td>
|
|
|
|
<td valign="middle">' .
|
|
|
|
html_print_select($groups_select, "ag_group",
|
|
|
|
io_safe_output($ag_group), '', '', '0', true, false, false, 'w130',
|
|
|
|
false, 'width:150px;') . '
|
|
|
|
</td>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
2012-11-29 19:27:37 +01:00
|
|
|
echo '<td>' . __('Monitor status') . "</td>";
|
2012-11-29 18:34:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo "<td>";
|
2012-11-29 19:27:37 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$fields = array ();
|
|
|
|
$fields[0] = __('Normal');
|
|
|
|
$fields[1] = __('Warning');
|
|
|
|
$fields[2] = __('Critical');
|
|
|
|
$fields[3] = __('Unknown');
|
|
|
|
$fields[4] = __('Not normal'); //default
|
|
|
|
$fields[5] = __('Not init');
|
|
|
|
|
|
|
|
html_print_select ($fields, "status", $status, '', __('All'), -1,
|
|
|
|
false, false, true, '', false, 'width: 125px;');
|
|
|
|
echo '</td>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<td valign="middle">' . __('Module group') . '</td>';
|
|
|
|
echo '<td valign="middle">';
|
|
|
|
if (!defined('METACONSOLE')) {
|
|
|
|
$rows = db_get_all_rows_sql("SELECT *
|
|
|
|
FROM tmodule_group ORDER BY name");
|
|
|
|
$rows = io_safe_output($rows);
|
|
|
|
$rows_select = array();
|
|
|
|
if (!empty($rows))
|
|
|
|
foreach ($rows as $module_group)
|
|
|
|
$rows_select[$module_group['id_mg']] = $module_group['name'];
|
|
|
|
}
|
|
|
|
|
|
|
|
$rows_select[0] = __('Not assigned');
|
|
|
|
|
|
|
|
html_print_select($rows_select, 'modulegroup', $modulegroup, '', __('All'), -1);
|
|
|
|
echo '</td>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '</tr>';
|
|
|
|
|
|
|
|
echo '<tr>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<td valign="middle">' . __('Module name') . '</td>';
|
|
|
|
echo '<td valign="middle">';
|
|
|
|
|
|
|
|
if (!defined('METACONSOLE'))
|
|
|
|
$modules = db_get_all_rows_sql($sql);
|
2010-08-31 12:53:10 +02:00
|
|
|
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_select (index_array ($modules, 'nombre', 'nombre'), "ag_modulename",
|
2011-07-27 11:07:37 +02:00
|
|
|
$ag_modulename, '', __('All'), '', false, false, true, '', false, 'width: 150px;');
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
echo '</td>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<td valign="middle" align="right">' .
|
|
|
|
__('Tags') .
|
|
|
|
ui_print_help_tip(__('Only it is show tags in use.'), true) .
|
|
|
|
'</td>';
|
|
|
|
echo '<td>';
|
2012-11-29 18:34:51 +01:00
|
|
|
if (!defined('METACONSOLE'))
|
|
|
|
$tags = db_get_all_rows_sql('SELECT id_tag, name
|
|
|
|
FROM ttag
|
|
|
|
WHERE id_tag IN (SELECT ttag_module.id_tag
|
|
|
|
FROM ttag_module)');
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
if (empty($tags)) {
|
|
|
|
echo __('None tag');
|
|
|
|
}
|
|
|
|
else {
|
2012-11-29 18:34:51 +01:00
|
|
|
if (!defined('METACONSOLE'))
|
|
|
|
html_print_select (index_array($tags, 'id_tag', 'name'), "tag_filter",
|
|
|
|
$tag_filter, '', __('All'), '', false, false, true, '', false, 'width: 150px;');
|
|
|
|
else
|
|
|
|
html_print_select (index_array($tags, 'name', 'name'), "tag_filter",
|
|
|
|
$tag_filter, '', __('All'), '', false, false, true, '', false, 'width: 150px;');
|
2012-11-04 20:10:19 +01:00
|
|
|
}
|
|
|
|
echo '</td>';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<td valign="middle" align="right">' .
|
|
|
|
__('Search') .
|
|
|
|
'</td>';
|
2008-10-29 21:03:42 +01:00
|
|
|
echo '<td valign="middle">';
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_input_text ("ag_freestring", $ag_freestring, '', 20,30, false);
|
2012-11-04 20:10:19 +01:00
|
|
|
echo '</td>';
|
|
|
|
|
2009-01-20 21:01:25 +01:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
|
|
|
|
echo '<td valign="middle">';
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_submit_button (__('Show'), "uptbutton", false, 'class="sub search"');
|
2012-11-04 20:10:19 +01:00
|
|
|
echo "</td>";
|
|
|
|
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
|
|
|
|
echo "<tr>";
|
2008-10-29 21:03:42 +01:00
|
|
|
echo "</table>";
|
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
|
|
|
echo "</form>";
|
2008-10-29 21:03:42 +01:00
|
|
|
|
2011-12-05 19:22:49 +01:00
|
|
|
// Sort functionality
|
|
|
|
|
|
|
|
$selected = 'border: 1px solid black;';
|
|
|
|
$selectAgentNameUp = '';
|
|
|
|
$selectAgentNameDown = '';
|
|
|
|
$selectTypeUp = '';
|
|
|
|
$selectTypeDown = '';
|
|
|
|
$selectModuleNameUp = '';
|
|
|
|
$selectModuleNameDown = '';
|
|
|
|
$selectIntervalUp = '';
|
|
|
|
$selectIntervalDown = '';
|
|
|
|
$selectStatusUp = '';
|
|
|
|
$selectStatusDown = '';
|
|
|
|
$selectDataUp = '';
|
|
|
|
$selectDataDown = '';
|
|
|
|
$selectTimestampUp = '';
|
|
|
|
$selectTimestampDown = '';
|
|
|
|
$order = null;
|
|
|
|
|
|
|
|
switch ($sortField) {
|
|
|
|
case 'agent_name':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectAgentNameUp = $selected;
|
|
|
|
$order = array('field' => 'tagente.nombre', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectAgentNameDown = $selected;
|
|
|
|
$order = array('field' => 'tagente.nombre', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
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 'module_name':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectModuleNameUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.nombre', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectModuleNameDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.nombre', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
2012-06-20 11:43:14 +02:00
|
|
|
break;
|
2011-12-05 19:22:49 +01:00
|
|
|
case 'interval':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectIntervalUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.module_interval', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectIntervalDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_modulo.module_interval', '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 'timestamp':
|
|
|
|
switch ($sort) {
|
|
|
|
case 'up':
|
|
|
|
$selectTimestampUp = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.utimestamp', 'order' => 'ASC');
|
|
|
|
break;
|
|
|
|
case 'down':
|
|
|
|
$selectTimestampDown = $selected;
|
|
|
|
$order = array('field' => 'tagente_estado.utimestamp', 'order' => 'DESC');
|
|
|
|
break;
|
|
|
|
}
|
2012-06-20 11:43:14 +02:00
|
|
|
break;
|
2011-12-05 19:22:49 +01:00
|
|
|
default:
|
|
|
|
$selectAgentNameUp = $selected;
|
|
|
|
$selectAgentNameDown = '';
|
|
|
|
$selectTypeUp = '';
|
|
|
|
$selectTypeDown = '';
|
|
|
|
$selectModuleNameUp = '';
|
|
|
|
$selectModuleNameDown = '';
|
|
|
|
$selectIntervalUp = '';
|
|
|
|
$selectIntervalDown = '';
|
|
|
|
$selectStatusUp = '';
|
|
|
|
$selectStatusDown = '';
|
|
|
|
$selectDataUp = '';
|
|
|
|
$selectDataDown = '';
|
|
|
|
$selectTimestampUp = '';
|
|
|
|
$selectTimestampDown = '';
|
2012-11-04 20:10:19 +01:00
|
|
|
$order = array('field' => 'tagente.nombre',
|
|
|
|
'order' => 'ASC');
|
2011-12-05 19:22:49 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2008-10-29 21:03:42 +01:00
|
|
|
// Begin Build SQL sentences
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql = " FROM tagente, tagente_modulo, tagente_estado
|
|
|
|
WHERE $sql_extra (tagente.id_agente = tagente_modulo.id_agente
|
|
|
|
AND tagente_modulo.disabled = 0
|
|
|
|
AND tagente.disabled = 0
|
2012-07-25 11:59:03 +02:00
|
|
|
AND tagente_estado.id_agente_modulo = tagente_modulo.id_agente_modulo";
|
2008-04-17 17:27:25 +02:00
|
|
|
|
|
|
|
// Agent group selector
|
2012-11-29 18:34:51 +01:00
|
|
|
if (!defined('METACONSOLE')) {
|
|
|
|
if ($ag_group > 0 && check_acl ($config["id_user"], $ag_group, "AR")) {
|
|
|
|
$sql .= sprintf (" AND tagente.id_grupo = %d", $ag_group);
|
|
|
|
}
|
|
|
|
elseif($user_groups != '') {
|
|
|
|
// User has explicit permission on group 1 ?
|
|
|
|
$sql .= " AND tagente.id_grupo IN (".$user_groups.")";
|
|
|
|
}
|
2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-21 20:02:11 +02:00
|
|
|
}
|
2012-11-29 18:34:51 +01:00
|
|
|
else {
|
|
|
|
if ($ag_group != "0" && check_acl ($config["id_user"], $ag_group, "AR")) {
|
|
|
|
$sql .= sprintf (" AND tagente.id_grupo IN ( SELECT id_grupo FROM tgrupo where nombre = '%s') ", $ag_group);
|
|
|
|
}
|
|
|
|
elseif($user_groups != '') {
|
|
|
|
// User has explicit permission on group 1 ?
|
|
|
|
$sql .= " AND tagente.id_grupo IN (".$user_groups.")";
|
|
|
|
}
|
2008-06-09 19:51:18 +02:00
|
|
|
}
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2009-01-21 15:47:39 +01:00
|
|
|
// Module group
|
2012-11-29 18:34:51 +01:00
|
|
|
if (defined('METACONSOLE')) {
|
|
|
|
if ($modulegroup != '-1')
|
|
|
|
$sql .= sprintf (" AND tagente_modulo.id_module_group IN (SELECT id_mg
|
|
|
|
FROM tmodule_group WHERE name = '%s')", $modulegroup);
|
|
|
|
}
|
|
|
|
else if ($modulegroup > -1) {
|
2009-01-21 15:47:39 +01:00
|
|
|
$sql .= sprintf (" AND tagente_modulo.id_module_group = '%d'", $modulegroup);
|
2012-11-29 18:34:51 +01:00
|
|
|
|
2009-01-21 15:47:39 +01:00
|
|
|
}
|
|
|
|
|
2008-04-17 17:27:25 +02:00
|
|
|
// Module name selector
|
2008-10-29 21:03:42 +01:00
|
|
|
if ($ag_modulename != "") {
|
|
|
|
$sql .= sprintf (" AND tagente_modulo.nombre = '%s'", $ag_modulename);
|
|
|
|
}
|
2008-04-17 17:27:25 +02:00
|
|
|
|
|
|
|
// Freestring selector
|
2008-10-29 21:03:42 +01:00
|
|
|
if ($ag_freestring != "") {
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql .= sprintf (" AND (tagente.nombre LIKE '%%%s%%'
|
|
|
|
OR tagente_modulo.nombre LIKE '%%%s%%'
|
|
|
|
OR tagente_modulo.descripcion LIKE '%%%s%%')",
|
|
|
|
$ag_freestring, $ag_freestring, $ag_freestring);
|
2008-10-29 21:03:42 +01:00
|
|
|
}
|
2008-06-19 02:24:05 +02:00
|
|
|
|
|
|
|
// Status selector
|
2010-08-04 13:08:16 +02:00
|
|
|
if ($status == 0) { //Normal
|
2009-12-02 00:10:00 +01:00
|
|
|
$sql .= " AND tagente_estado.estado = 0
|
2010-08-04 13:08:16 +02:00
|
|
|
AND (utimestamp > 0 OR (tagente_modulo.id_tipo_modulo IN(21,22,23,100))) ";
|
2009-11-06 16:44:02 +01:00
|
|
|
}
|
|
|
|
elseif ($status == 2) { //Critical
|
2010-08-04 13:08:16 +02:00
|
|
|
$sql .= " AND tagente_estado.estado = 1 AND utimestamp > 0";
|
2009-11-06 16:44:02 +01:00
|
|
|
}
|
2010-06-02 10:23:55 +02:00
|
|
|
elseif ($status == 1) { //Warning
|
2010-08-04 13:08:16 +02:00
|
|
|
$sql .= " AND tagente_estado.estado = 2 AND utimestamp > 0";
|
2009-11-06 16:44:02 +01:00
|
|
|
}
|
2010-06-02 10:23:55 +02:00
|
|
|
elseif ($status == 4) { //Not normal
|
2010-08-04 13:08:16 +02:00
|
|
|
$sql .= " AND tagente_estado.estado <> 0";
|
2010-06-02 10:23:55 +02:00
|
|
|
}
|
|
|
|
elseif ($status == 3) { //Unknown
|
2011-09-23 12:35:30 +02:00
|
|
|
$sql .= " AND tagente_estado.estado = 3 AND tagente_estado.utimestamp <> 0";
|
2010-08-04 13:08:16 +02:00
|
|
|
}
|
2010-06-02 10:23:55 +02:00
|
|
|
elseif ($status == 5) { //Not init
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql .= " AND tagente_estado.utimestamp = 0
|
|
|
|
AND tagente_modulo.id_tipo_modulo NOT IN (21,22,23,100)";
|
|
|
|
}
|
|
|
|
|
|
|
|
//Filter by tag
|
2012-11-29 18:34:51 +01:00
|
|
|
if ($tag_filter !== 0) {
|
|
|
|
if (defined('METACONSOLE')) {
|
|
|
|
$sql .= " AND tagente_modulo.id_agente_modulo IN (
|
|
|
|
SELECT ttag_module.id_agente_modulo
|
|
|
|
FROM ttag_module
|
|
|
|
WHERE ttag_module.id_tag IN (SELECT id_tag FROM ttag where name LIKE '%" . $tag_filter . "%')
|
|
|
|
)";
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$sql .= " AND tagente_modulo.id_agente_modulo IN (
|
|
|
|
SELECT ttag_module.id_agente_modulo
|
|
|
|
FROM ttag_module
|
|
|
|
WHERE ttag_module.id_tag = " . $tag_filter . "
|
|
|
|
)";
|
|
|
|
|
|
|
|
}
|
2008-10-29 21:03:42 +01:00
|
|
|
}
|
2008-06-19 02:24:05 +02:00
|
|
|
|
2008-04-17 17:27:25 +02:00
|
|
|
// Build final SQL sentences
|
2012-11-29 18:34:51 +01:00
|
|
|
if (!defined('METACONSOLE'))
|
|
|
|
$count = db_get_sql ("SELECT COUNT(tagente_modulo.id_agente_modulo) " .
|
|
|
|
$sql . ")");
|
|
|
|
|
|
|
|
if (defined('METACONSOLE')) {
|
|
|
|
// Offset will be used to get the subset of modules
|
|
|
|
$inferior_limit = $offset;
|
|
|
|
$superior_limit = $config["block_size"] + $offset;
|
|
|
|
// Offset reset to get all elements
|
|
|
|
$offset = 0;
|
|
|
|
if (!isset($config["meta_num_elements"]))
|
|
|
|
$config["meta_num_elements"] = 100;
|
|
|
|
|
|
|
|
$limit_sql = $config["meta_num_elements"];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
$limit_sql = $config["block_size"];
|
|
|
|
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
switch ($config["dbtype"]) {
|
|
|
|
case "mysql":
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql = "SELECT
|
|
|
|
(SELECT GROUP_CONCAT(ttag.name SEPARATOR ',')
|
|
|
|
FROM ttag
|
|
|
|
WHERE ttag.id_tag IN (
|
|
|
|
SELECT ttag_module.id_tag
|
|
|
|
FROM ttag_module
|
|
|
|
WHERE ttag_module.id_agente_modulo = tagente_modulo.id_agente_modulo))
|
|
|
|
AS tags,
|
|
|
|
tagente_modulo.id_agente_modulo,
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
tagente.intervalo AS agent_interval,
|
|
|
|
tagente.nombre AS agent_name,
|
|
|
|
tagente_modulo.nombre AS module_name,
|
|
|
|
tagente_modulo.id_agente_modulo,
|
|
|
|
tagente_modulo.history_data,
|
|
|
|
tagente_modulo.flag AS flag,
|
|
|
|
tagente.id_grupo AS id_group,
|
|
|
|
tagente.id_agente AS id_agent,
|
|
|
|
tagente_modulo.id_tipo_modulo AS module_type,
|
|
|
|
tagente_modulo.module_interval,
|
|
|
|
tagente_estado.datos,
|
|
|
|
tagente_estado.estado,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_warning,
|
|
|
|
tagente_modulo.max_warning,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_warning,
|
2012-04-19 20:48:35 +02:00
|
|
|
tagente_modulo.unit,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_critical,
|
|
|
|
tagente_modulo.max_critical,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_critical,
|
2011-08-10 18:51:42 +02:00
|
|
|
tagente_modulo.extended_info,
|
2012-09-17 Ramon Novoa <rnovoa@artica.es>
* include/javascript/pandora_modules.js,
include/functions_network_components.php,
pandoradb.sql,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
godmode/agentes/agent_template.php,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added inverse intervals for
warning and critical limits.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6977 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-09-17 16:29:45 +02:00
|
|
|
tagente_modulo.critical_inverse,
|
|
|
|
tagente_modulo.warning_inverse,
|
2012-09-17 18:03:38 +02:00
|
|
|
tagente_modulo.critical_instructions,
|
|
|
|
tagente_modulo.warning_instructions,
|
|
|
|
tagente_modulo.unknown_instructions,
|
2011-12-05 19:22:49 +01:00
|
|
|
tagente_estado.utimestamp AS utimestamp".$sql.") ORDER BY " . $order['field'] . " " . $order['order']
|
2012-11-29 18:34:51 +01:00
|
|
|
. " LIMIT ".$offset.",".$limit_sql;
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
break;
|
|
|
|
case "postgresql":
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql = "SELECT
|
|
|
|
(SELECT STRING_AGG(ttag.name, ',')
|
|
|
|
FROM ttag
|
|
|
|
WHERE ttag.id_tag IN (
|
|
|
|
SELECT ttag_module.id_tag
|
|
|
|
FROM ttag_module
|
|
|
|
WHERE ttag_module.id_agente_modulo = tagente_modulo.id_agente_modulo))
|
|
|
|
AS tags,
|
|
|
|
tagente_modulo.id_agente_modulo,
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
tagente.intervalo AS agent_interval,
|
|
|
|
tagente.nombre AS agent_name,
|
|
|
|
tagente_modulo.nombre AS module_name,
|
|
|
|
tagente_modulo.id_agente_modulo,
|
|
|
|
tagente_modulo.history_data,
|
|
|
|
tagente_modulo.flag AS flag,
|
|
|
|
tagente.id_grupo AS id_group,
|
|
|
|
tagente.id_agente AS id_agent,
|
|
|
|
tagente_modulo.id_tipo_modulo AS module_type,
|
|
|
|
tagente_modulo.module_interval,
|
|
|
|
tagente_estado.datos,
|
|
|
|
tagente_estado.estado,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_warning,
|
|
|
|
tagente_modulo.max_warning,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_warning,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_critical,
|
2012-04-19 20:48:35 +02:00
|
|
|
tagente_modulo.unit,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.max_critical,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_critical,
|
2011-08-10 18:51:42 +02:00
|
|
|
tagente_modulo.extended_info,
|
2012-09-17 18:03:38 +02:00
|
|
|
tagente_modulo.critical_inverse,
|
|
|
|
tagente_modulo.warning_inverse,
|
|
|
|
tagente_modulo.critical_instructions,
|
|
|
|
tagente_modulo.warning_instructions,
|
|
|
|
tagente_modulo.unknown_instructions,
|
2012-11-29 18:34:51 +01:00
|
|
|
tagente_estado.utimestamp AS utimestamp".$sql.") LIMIT " . $limit_sql . " OFFSET " . $offset;
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
break;
|
2011-04-11 19:05:20 +02:00
|
|
|
case "oracle":
|
|
|
|
$set = array();
|
2012-11-29 18:34:51 +01:00
|
|
|
$set['limit'] = $limit_sql;
|
2011-04-11 19:05:20 +02:00
|
|
|
$set['offset'] = $offset;
|
2012-11-04 20:10:19 +01:00
|
|
|
$sql = "SELECT
|
|
|
|
(SELECT wmsys.wm_concat(ttag.name)
|
|
|
|
FROM ttag
|
|
|
|
WHERE ttag.id_tag IN (
|
|
|
|
SELECT ttag_module.id_tag
|
|
|
|
FROM ttag_module
|
|
|
|
WHERE ttag_module.id_agente_modulo = tagente_modulo.id_agente_modulo))
|
|
|
|
AS tags,
|
|
|
|
tagente_modulo.id_agente_modulo,
|
2011-04-11 19:05:20 +02:00
|
|
|
tagente.intervalo AS agent_interval,
|
|
|
|
tagente.nombre AS agent_name,
|
|
|
|
tagente_modulo.nombre AS module_name,
|
|
|
|
tagente_modulo.history_data,
|
|
|
|
tagente_modulo.flag AS flag,
|
|
|
|
tagente.id_grupo AS id_group,
|
|
|
|
tagente.id_agente AS id_agent,
|
|
|
|
tagente_modulo.id_tipo_modulo AS module_type,
|
|
|
|
tagente_modulo.module_interval,
|
|
|
|
tagente_estado.datos,
|
|
|
|
tagente_estado.estado,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_warning,
|
|
|
|
tagente_modulo.max_warning,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_warning,
|
2012-04-19 20:48:35 +02:00
|
|
|
tagente_modulo.unit,
|
2011-06-27 07:56:55 +02:00
|
|
|
tagente_modulo.min_critical,
|
|
|
|
tagente_modulo.max_critical,
|
2011-07-07 Ramon Novoa <rnovoa@artica.es>
* include/functions_network_components.php,
include/functions_api.php,
include/functions_ui.php,
pandoradb.sql,
pandoradb.postgreSQL.sql,
pandoradb.oracle.sql,
extensions/resource_registration.php,
extensions/plugin_registration.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
extras/pandoradb_migrate_v3.2_to_v4.0.sql,
godmode/agentes/module_manager_editor_common.php,
godmode/agentes/module_manager.php,
godmode/agentes/configurar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components.php: Added support for
warning/critical status regexp (works with both numeric and string
data types).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-07-07 13:12:15 +02:00
|
|
|
tagente_modulo.str_critical,
|
2011-08-10 18:51:42 +02:00
|
|
|
tagente_modulo.extended_info,
|
2012-09-17 18:03:38 +02:00
|
|
|
tagente_modulo.critical_inverse,
|
|
|
|
tagente_modulo.warning_inverse,
|
|
|
|
tagente_modulo.critical_instructions,
|
|
|
|
tagente_modulo.warning_instructions,
|
|
|
|
tagente_modulo.unknown_instructions,
|
2012-07-25 11:59:03 +02:00
|
|
|
tagente_estado.utimestamp AS utimestamp" . $sql;
|
2011-04-11 19:05:20 +02:00
|
|
|
$sql = oracle_recode_query ($sql, $set);
|
|
|
|
break;
|
2011-03-09 Miguel de Dios <miguel.dedios@artica.es>
* install.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/datos_agente.php,
operation/servers/view_server.php, operation/snmpconsole/snmp_view.php,
operation/events/events_rss.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/search_users.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/view_alerts.php, mobile/operation/events/events.php,
mobile/include/functions_web.php, godmode/admin_access_logs.php,
godmode/agentes/modificar_agente.php, godmode/alerts/alert_actions.php,
godmode/reporting/reporting_builder.list_items.php: changed and addded in
the source, the SQL queries for the "LIMIT x, x" to "LIMIT x OFFSET x", that
it is standard for PostgreSQL.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4080 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 18:55:37 +01:00
|
|
|
}
|
2012-11-29 18:34:51 +01:00
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$result = db_get_all_rows_sql ($sql);
|
2008-10-29 21:03:42 +01:00
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
if ($count > $config["block_size"]) {
|
|
|
|
ui_pagination ($count, false, $offset);
|
|
|
|
}
|
2008-04-17 17:27:25 +02:00
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
if ($result === false) {
|
|
|
|
$result = array ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
// For each server defined and not disabled:
|
|
|
|
$servers = db_get_all_rows_sql ("SELECT * FROM tmetaconsole_setup WHERE disabled = 0");
|
|
|
|
if ($servers === false)
|
|
|
|
$servers = array();
|
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$result = array();
|
|
|
|
$count_modules = 0;
|
2012-11-26 19:38:09 +01:00
|
|
|
foreach($servers as $server) {
|
|
|
|
// If connection was good then retrieve all data server
|
|
|
|
if (metaconsole_connect($server) == NOERR){
|
|
|
|
$connection = true;
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
$connection = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
$result_server = db_get_all_rows_sql ($sql);
|
2012-11-29 18:34:51 +01:00
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
if(!empty($result_server)) {
|
2012-11-29 18:34:51 +01:00
|
|
|
|
|
|
|
$pwd = $server["auth_token"]; // Create HASH login info
|
|
|
|
$auth_serialized = json_decode($pwd,true);
|
|
|
|
|
|
|
|
if (is_array($auth_serialized)) {
|
|
|
|
$pwd = $auth_serialized["auth_token"];
|
|
|
|
$api_password = $auth_serialized["api_password"];
|
|
|
|
$console_user = $auth_serialized["console_user"];
|
|
|
|
$console_password = $auth_serialized["console_password"];
|
|
|
|
}
|
|
|
|
|
|
|
|
$user = $config["id_user"];
|
|
|
|
$hashdata = $user.$pwd;
|
|
|
|
$hashdata = md5($hashdata);
|
|
|
|
$url_hash = "&loginhash=auto&loginhash_data=$hashdata&loginhash_user=$user";
|
|
|
|
|
|
|
|
foreach ($result_server as $result_element_key => $result_element_value) {
|
|
|
|
|
|
|
|
$result_server[$result_element_key]['server_name'] = $server["server_name"];
|
|
|
|
$result_server[$result_element_key]['server_url'] = $server["server_url"]."/";
|
|
|
|
$result_server[$result_element_key]['hashdata'] = $hashdata;
|
|
|
|
$result_server[$result_element_key]['user'] = $config["id_user"];
|
|
|
|
|
|
|
|
$count_modules++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-11-26 19:38:09 +01:00
|
|
|
$result = array_merge($result, $result_server);
|
|
|
|
}
|
2012-11-29 18:34:51 +01:00
|
|
|
|
|
|
|
metaconsole_restore_db();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($count_modules > $config["block_size"]) {
|
|
|
|
ui_pagination ($count_modules, false, $offset);
|
2012-11-26 19:38:09 +01:00
|
|
|
}
|
2012-11-29 18:34:51 +01:00
|
|
|
|
|
|
|
// Get number of elements of the pagination
|
|
|
|
$result = ui_meta_get_subset_array($result, $inferior_limit, $superior_limit);
|
2008-07-17 08:41:39 +02:00
|
|
|
}
|
|
|
|
|
2011-04-11 19:05:20 +02:00
|
|
|
if (($config['dbtype'] == 'oracle') && ($result !== false)) {
|
|
|
|
for ($i=0; $i < count($result); $i++) {
|
2012-07-25 11:59:03 +02:00
|
|
|
unset($result[$i]['rnum']);
|
2011-04-11 19:05:20 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-10-29 21:03:42 +01:00
|
|
|
$table->cellpadding = 4;
|
|
|
|
$table->cellspacing = 4;
|
2011-06-22 19:21:50 +02:00
|
|
|
$table->width = "100%";
|
2008-10-29 21:03:42 +01:00
|
|
|
$table->class = "databox";
|
|
|
|
|
|
|
|
$table->head = array ();
|
|
|
|
$table->data = array ();
|
|
|
|
$table->size = array ();
|
|
|
|
$table->align = array ();
|
|
|
|
|
2010-10-06 14:24:21 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK)
|
|
|
|
$table->head[0] = "<span title='" . __('Policy') . "'>" . __('P.') . "</span>";
|
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[1] = __('Agent');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[1] .=' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=agent_name&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectAgentNameUp, "alt" => "up")) . '</a>' .
|
2011-12-05 19:22:49 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=agent_name&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectAgentNameDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
2011-12-05 19:22:49 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[2] = __('Type');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[2] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=type&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectTypeUp, "alt" => "up")) . '</a>' .
|
2011-12-05 19:22:49 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=type&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectTypeDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
2009-09-14 03:02:44 +02:00
|
|
|
$table->align[2] = "left";
|
2008-07-17 08:41:39 +02:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[3] = __('Module name');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[3] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=module_name&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectModuleNameUp, "alt" => "up")) . '</a>' .
|
2011-12-05 19:22:49 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=module_name&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectModuleNameDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
2011-12-05 19:22:49 +01:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$table->head[4] = __('Tags');
|
2011-12-05 19:22:49 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[5] = __('Interval');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[5] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=interval&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectIntervalUp, "alt" => "up")) . '</a>' .
|
2011-12-05 19:22:49 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=interval&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectIntervalDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
|
|
|
|
2008-10-29 21:03:42 +01:00
|
|
|
$table->align[5] = "center";
|
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[6] = __('Status');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[6] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=status&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectStatusUp, "alt" => "up")) . '</a>' .
|
2012-11-04 20:10:19 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=status&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectStatusDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
|
|
|
|
2010-07-19 16:46:08 +02:00
|
|
|
$table->align[6] = "center";
|
2009-09-14 03:02:44 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$table->head[7] = __('Graph');
|
|
|
|
$table->align[7] = "center";
|
2011-12-05 19:22:49 +01:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$table->head[8] = __('Warn');
|
2011-06-27 07:56:55 +02:00
|
|
|
$table->align[8] = "left";
|
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[9] = __('Data');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[9] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=data&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectDataUp, "alt" => "up")) . '</a>' .
|
2012-11-04 20:10:19 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=data&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectDataDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$table->align[9] = "left";
|
2011-12-05 19:22:49 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$table->head[10] = __('Timestamp');
|
|
|
|
if (! defined ('METACONSOLE')) {
|
|
|
|
$table->head[10] .= ' <a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=timestamp&sort=up">' . html_print_image("images/sort_up.png", true, array("style" => $selectTimestampUp, "alt" => "up")) . '</a>' .
|
2012-11-04 20:10:19 +01:00
|
|
|
'<a href="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=' . $refr . '&offset=' . $offset . '&ag_group=' . $ag_group . '&ag_freestring=' . $ag_freestring . '&ag_modulename=' . $ag_modulename . '&status=' . $status . '&sort_field=timestamp&sort=down">' . html_print_image("images/sort_down.png", true, array("style" => $selectTimestampDown, "alt" => "down")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
}
|
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$table->align[10] = "right";
|
2008-10-29 21:03:42 +01:00
|
|
|
|
2009-08-07 Miguel de Dios <miguel.dedios@artica.es>
* operation/visual_console/index.php,
pandora_console/operation/users/user.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/estado_agente.php,
operation/agentes/alerts_status.php, include/styles/pandora.css,
include/styles/pandora_black.css,include/styles/pandora_blackmetal.css,
include/styles/pandora_width.css, include/styles/pandora_minimal.css,
include/styles/pandora_red.css: the table list now has rows with alternate
colours for easy see the data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-10 11:55:53 +02:00
|
|
|
$rowPair = true;
|
|
|
|
$iterator = 0;
|
2012-11-04 20:10:19 +01:00
|
|
|
|
2008-10-29 21:03:42 +01:00
|
|
|
foreach ($result as $row) {
|
2009-08-07 Miguel de Dios <miguel.dedios@artica.es>
* operation/visual_console/index.php,
pandora_console/operation/users/user.php, operation/incidents/incident.php,
operation/agentes/status_monitor.php, operation/agentes/estado_agente.php,
operation/agentes/alerts_status.php, include/styles/pandora.css,
include/styles/pandora_black.css,include/styles/pandora_blackmetal.css,
include/styles/pandora_width.css, include/styles/pandora_minimal.css,
include/styles/pandora_red.css: the table list now has rows with alternate
colours for easy see the data.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1833 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-08-10 11:55:53 +02:00
|
|
|
if ($rowPair)
|
|
|
|
$table->rowclass[$iterator] = 'rowPair';
|
|
|
|
else
|
|
|
|
$table->rowclass[$iterator] = 'rowOdd';
|
|
|
|
$rowPair = !$rowPair;
|
|
|
|
$iterator++;
|
|
|
|
|
2008-10-29 21:03:42 +01:00
|
|
|
$data = array ();
|
|
|
|
|
2010-10-06 14:24:21 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
2011-05-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_users.php
include/functions_html.php
include/functions_menu.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_groups.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/functions_visual_map.php
include/functions_profile.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
index.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
operation/incidents/incident_detail.php
operation/search_modules.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/estado_agente.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/group_view.php
operation/search_agents.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/integria_incidents/incident_detail.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/events/events_rss.php
operation/events/export_csv.php
operation/events/events_list.php
operation/events/events_marquee.php
operation/events/events.php
operation/search_alerts.php
operation/messages/message.php
operation/search_users.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
ajax.php
general/ui/agents_list.php
godmode/groups/configure_group.php
godmode/groups/group_list.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor_network.php
godmode/agentes/module_manager_editor_wmi.php
godmode/agentes/module_manager_editor_plugin.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/alert_actions.php
godmode/alerts/alert_list.builder.php
godmode/setup/setup_auth.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/users/configure_profile.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_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/reporting/visual_console_builder.wizard.php
godmode/reporting/reporting_builder.list_items.php
godmode/reporting/visual_console_builder.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.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_profile.php, functions_agents.php, functions_users.php,
functions_massive_policies.php, functions_audit.php, functions_backup.php,
functions_collection.php, functions_skins.php, functions_enterprise.php,
functions_groups.php, functions_local_components.php, functions_metaconsole.php,
functions_policies.php, functions_reporting.php, functions_reporting_csv.php,
functions_reporting_pdf2.php, functions_services.php have their own prefixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-10 20:51:09 +02:00
|
|
|
$policyInfo = policies_info_module_policy($row['id_agente_modulo']);
|
2010-10-06 14:24:21 +02:00
|
|
|
if ($policyInfo === false)
|
|
|
|
$data[0] = '';
|
|
|
|
else {
|
2011-05-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_users.php
include/functions_html.php
include/functions_menu.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_groups.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/functions_visual_map.php
include/functions_profile.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
index.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
operation/incidents/incident_detail.php
operation/search_modules.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/estado_agente.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/group_view.php
operation/search_agents.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/integria_incidents/incident_detail.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/events/events_rss.php
operation/events/export_csv.php
operation/events/events_list.php
operation/events/events_marquee.php
operation/events/events.php
operation/search_alerts.php
operation/messages/message.php
operation/search_users.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
ajax.php
general/ui/agents_list.php
godmode/groups/configure_group.php
godmode/groups/group_list.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor_network.php
godmode/agentes/module_manager_editor_wmi.php
godmode/agentes/module_manager_editor_plugin.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/alert_actions.php
godmode/alerts/alert_list.builder.php
godmode/setup/setup_auth.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/users/configure_profile.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_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/reporting/visual_console_builder.wizard.php
godmode/reporting/reporting_builder.list_items.php
godmode/reporting/visual_console_builder.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.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_profile.php, functions_agents.php, functions_users.php,
functions_massive_policies.php, functions_audit.php, functions_backup.php,
functions_collection.php, functions_skins.php, functions_enterprise.php,
functions_groups.php, functions_local_components.php, functions_metaconsole.php,
functions_policies.php, functions_reporting.php, functions_reporting_csv.php,
functions_reporting_pdf2.php, functions_services.php have their own prefixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-10 20:51:09 +02:00
|
|
|
$linked = policies_is_module_linked($row['id_agente_modulo']);
|
2010-10-06 14:24:21 +02:00
|
|
|
|
2010-10-14 17:09:29 +02:00
|
|
|
$adopt = false;
|
2011-05-10 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_users.php
include/functions_html.php
include/functions_menu.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_groups.php
include/functions_gis.php
include/auth/ldap.php
include/auth/mysql.php
include/functions_networkmap.php
include/functions_network_components.php
include/functions_visual_map.php
include/functions_profile.php
include/ajax/visual_console_builder.ajax.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_config.php
include/functions_api.php
include/functions_ui.php
include/functions_custom_graphs.php
include/fgraph.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
index.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
operation/incidents/incident_detail.php
operation/search_modules.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/estado_agente.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/group_view.php
operation/search_agents.php
operation/snmpconsole/snmp_view.php
operation/users/user_edit.php
operation/integria_incidents/incident_detail.php
operation/gis_maps/render_view.php
operation/gis_maps/ajax.php
operation/events/events_rss.php
operation/events/export_csv.php
operation/events/events_list.php
operation/events/events_marquee.php
operation/events/events.php
operation/search_alerts.php
operation/messages/message.php
operation/search_users.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/events/events.php
ajax.php
general/ui/agents_list.php
godmode/groups/configure_group.php
godmode/groups/group_list.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager_editor_network.php
godmode/agentes/module_manager_editor_wmi.php
godmode/agentes/module_manager_editor_plugin.php
godmode/agentes/module_manager_editor_prediction.php
godmode/agentes/agent_conf_gis.php
godmode/agentes/module_manager.php
godmode/agentes/modificar_agente.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/planned_downtime.php
godmode/agentes/manage_config_remote.php
godmode/agentes/agent_manager.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/alert_actions.php
godmode/alerts/alert_list.builder.php
godmode/setup/setup_auth.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/users/configure_profile.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_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/reporting/visual_console_builder.wizard.php
godmode/reporting/reporting_builder.list_items.php
godmode/reporting/visual_console_builder.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.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_profile.php, functions_agents.php, functions_users.php,
functions_massive_policies.php, functions_audit.php, functions_backup.php,
functions_collection.php, functions_skins.php, functions_enterprise.php,
functions_groups.php, functions_local_components.php, functions_metaconsole.php,
functions_policies.php, functions_reporting.php, functions_reporting_csv.php,
functions_reporting_pdf2.php, functions_services.php have their own prefixes.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4333 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-10 20:51:09 +02:00
|
|
|
if (policies_is_module_adopt($row['id_agente_modulo'])) {
|
2010-10-14 17:09:29 +02:00
|
|
|
$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) ') . $policyInfo['name_policy'];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$img = 'images/policies.png';
|
|
|
|
$title = $policyInfo['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) ') . $policyInfo['name_policy'];
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$img = 'images/unlinkpolicy.png';
|
|
|
|
$title = __('(Unlinked) ') . $policyInfo['name_policy'];
|
|
|
|
}
|
2010-10-06 14:24:21 +02:00
|
|
|
}
|
2012-07-25 11:59:03 +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[0] = '<a href="?sec=gpolicies&sec2=enterprise/godmode/policies/policies&id=' . $policyInfo['id_policy'] . '">' .
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_image($img,true, array('title' => $title)) .
|
2010-10-06 14:24:21 +02:00
|
|
|
'</a>';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
if (defined('METACONSOLE')) {
|
|
|
|
$data[1] = '<strong><a href="'. $row["server_url"] .'index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='. $row["id_agent"] . '&loginhash=auto&loginhash_data=' . $row["hashdata"] . '&loginhash_user=' . $row["user"] . '">';
|
|
|
|
$data[1] .= ui_print_truncate_text($row["agent_name"], 'agent_small', false, true, false, '[…]', 'font-size:7.5pt;');
|
|
|
|
$data[1] .= '</a></strong>';
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$data[1] = '<strong><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente='.$row["id_agent"].'">';
|
|
|
|
$data[1] .= ui_print_truncate_text($row["agent_name"], 'agent_medium', false, true, false, '[…]', 'font-size:7.5pt;');
|
|
|
|
$data[1] .= '</a></strong>';
|
|
|
|
}
|
2008-10-29 21:03:42 +01:00
|
|
|
|
2011-05-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_html.php
include/functions_menu.php
include/graphs/fgraph.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_networkmap.php
include/functions_servers.php
include/functions_network_profiles.php
include/functions_network_components.php
include/functions_visual_map.php
include/ajax/visual_console_builder.ajax.php
include/ajax/agent.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_io.php
include/functions_api.php
include/functions_ui.php
include/fgraph.php
include/functions_incidents.php
include/functions.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
extensions/plugin_registration.php
operation/incidents/incident.incident.php
operation/incidents/incident.php
operation/incidents/incident_detail.php
operation/incidents/incident.download_file.php
operation/incidents/incident.list.php
operation/search_modules.php
operation/agentes/status_monitor.php
operation/agentes/export_csv.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/datos_agente.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/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/integria_incidents/incident.incident.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident.download_file.php
operation/integria_incidents/incident.list.php
operation/events/events_rss.php
operation/events/events_list.php
operation/search_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/custom_reporting.php
operation/search_reports.php
operation/search_results.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/tactical.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/servers/view_servers.php
general/logon_ok.php
general/header.php
godmode/admin_access_logs.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/menu.php
godmode/alerts/alert_list.list.php
godmode/alerts/configure_alert_compound.php
godmode/alerts/configure_alert_action.php
godmode/setup/os.list.php
godmode/setup/links.php
godmode/setup/setup.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_profiles.php
godmode/massive/massive_edit_agents.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/modules/manage_network_components_form.php
godmode/modules/manage_nc_groups_form.php
godmode/modules/manage_network_templates.php
godmode/modules/manage_network_components_form_common.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.preview.php
godmode/reporting/graph_builder.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_incidents.php, functions_io.php, functions_menu.php, functions_messages.php,
functions_modules.php, functions_network_components.php, functions_network_profiles.php,
functions_networkmap.php, functions_reporting.php, functions_reports.php,
functions_servers.php have "incidents_", "io_", "menu_", "messages_", "modules_",
"network_profiles_", "network_components_", "networkmap_", "reporting_", "reports_",
"servers_" prefixes respectively.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-09 19:30:55 +02:00
|
|
|
$data[2] = html_print_image("images/" . modules_show_icon_type ($row["module_type"]), true);
|
2008-10-29 21:03:42 +01:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$data[3] = ui_print_truncate_text($row["module_name"], 'agent_small', false, true, true);
|
2011-08-10 18:51:42 +02:00
|
|
|
if ($row["extended_info"] != "") {
|
|
|
|
$data[3] .= ui_print_help_tip ($row["extended_info"], true, '/images/comments.png');
|
|
|
|
}
|
2012-06-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_reporting.php,
include/functions_groups.php, include/functions_visual_map.php,
include/ajax/reporting.ajax.php, include/functions_config.php,
include/functions_ui.php, include/functions.php,
extensions/agents_modules.php, extensions/module_groups.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php,
operation/integria_incidents/incident.incident.php,
operation/integria_incidents/incident.php: a lot of fixes in
relation with entities and clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 17:29:00 +02:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
$data[4] = ui_print_truncate_text($row['tags'], 'agent_small', false, true, true, '[…]', 'font-size:7pt;');
|
2012-11-04 20:10:19 +01:00
|
|
|
|
|
|
|
$data[5] = ($row['module_interval'] == 0) ? human_time_description_raw($row['agent_interval']) : human_time_description_raw($row['module_interval']);
|
2012-06-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_reporting.php,
include/functions_groups.php, include/functions_visual_map.php,
include/ajax/reporting.ajax.php, include/functions_config.php,
include/functions_ui.php, include/functions.php,
extensions/agents_modules.php, extensions/module_groups.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php,
operation/integria_incidents/incident.incident.php,
operation/integria_incidents/incident.php: a lot of fixes in
relation with entities and clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 17:29:00 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
if ($row['utimestamp'] == 0 && (($row['module_type'] < 21 ||
|
|
|
|
$row['module_type'] > 23) && $row['module_type'] != 100)) {
|
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_NO_DATA, __('NOT INIT'), true);
|
2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-21 20:02:11 +02:00
|
|
|
}
|
|
|
|
elseif ($row["estado"] == 0) {
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_OK, __('NORMAL').": ".$row["datos"], true);
|
2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-21 20:02:11 +02:00
|
|
|
}
|
|
|
|
elseif ($row["estado"] == 1) {
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_CRITICAL, __('CRITICAL').": ".$row["datos"], true);
|
2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-21 20:02:11 +02:00
|
|
|
}
|
|
|
|
elseif ($row["estado"] == 2) {
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_WARNING, __('WARNING').": ".$row["datos"], true);
|
2010-09-21 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: in function "print_select_groups" and function
"print_select_from_sql" added source code to check $config['text_char_long']
for show small text in this widgets.
* include/functions.php: in function "get_event_types" and "get_priorities"
added source code to check $config['text_char_long'] for show small text in
this widgets. And in function "get_priority_class" cleaned source code.
* operation/agentes/status_monitor.php, operation/events/events.php: cleaned
source code style.
* images/pandora.ico.gif: added image file for to use in the mobile footer.
* mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php,
mobile/operation/agents/tactical.php,
mobile/operation/agents/group_view.php, mobile/operation/events/events.php,
mobile/include/style/main.css, mobile/include/functions_web.php,
mobile/index.php, general/footer.php: continued the develop, yep the
Pandora Console Mobile is complete (only rest the bugs).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3269 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-09-21 20:02:11 +02:00
|
|
|
}
|
|
|
|
else {
|
2011-05-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_html.php
include/functions_menu.php
include/graphs/fgraph.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_networkmap.php
include/functions_servers.php
include/functions_network_profiles.php
include/functions_network_components.php
include/functions_visual_map.php
include/ajax/visual_console_builder.ajax.php
include/ajax/agent.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_io.php
include/functions_api.php
include/functions_ui.php
include/fgraph.php
include/functions_incidents.php
include/functions.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
extensions/plugin_registration.php
operation/incidents/incident.incident.php
operation/incidents/incident.php
operation/incidents/incident_detail.php
operation/incidents/incident.download_file.php
operation/incidents/incident.list.php
operation/search_modules.php
operation/agentes/status_monitor.php
operation/agentes/export_csv.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/datos_agente.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/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/integria_incidents/incident.incident.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident.download_file.php
operation/integria_incidents/incident.list.php
operation/events/events_rss.php
operation/events/events_list.php
operation/search_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/custom_reporting.php
operation/search_reports.php
operation/search_results.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/tactical.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/servers/view_servers.php
general/logon_ok.php
general/header.php
godmode/admin_access_logs.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/menu.php
godmode/alerts/alert_list.list.php
godmode/alerts/configure_alert_compound.php
godmode/alerts/configure_alert_action.php
godmode/setup/os.list.php
godmode/setup/links.php
godmode/setup/setup.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_profiles.php
godmode/massive/massive_edit_agents.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/modules/manage_network_components_form.php
godmode/modules/manage_nc_groups_form.php
godmode/modules/manage_network_templates.php
godmode/modules/manage_network_components_form_common.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.preview.php
godmode/reporting/graph_builder.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_incidents.php, functions_io.php, functions_menu.php, functions_messages.php,
functions_modules.php, functions_network_components.php, functions_network_profiles.php,
functions_networkmap.php, functions_reporting.php, functions_reports.php,
functions_servers.php have "incidents_", "io_", "menu_", "messages_", "modules_",
"network_profiles_", "network_components_", "networkmap_", "reporting_", "reports_",
"servers_" prefixes respectively.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-09 19:30:55 +02:00
|
|
|
$last_status = modules_get_agentmodule_last_status($row['id_agente_modulo']);
|
2010-08-04 13:08:16 +02:00
|
|
|
switch($last_status) {
|
|
|
|
case 0:
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('NORMAL').": ".$row["datos"], true);
|
2010-08-04 13:08:16 +02:00
|
|
|
break;
|
|
|
|
case 1:
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('CRITICAL').": ".$row["datos"], true);
|
2010-08-04 13:08:16 +02:00
|
|
|
break;
|
|
|
|
case 2:
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[6] = ui_print_status_image(STATUS_MODULE_UNKNOWN, __('UNKNOWN')." - ".__('Last status')." ".__('WARNING').": ".$row["datos"], true);
|
2010-08-04 13:08:16 +02:00
|
|
|
break;
|
|
|
|
}
|
2008-07-17 08:41:39 +02:00
|
|
|
}
|
2012-06-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_reporting.php,
include/functions_groups.php, include/functions_visual_map.php,
include/ajax/reporting.ajax.php, include/functions_config.php,
include/functions_ui.php, include/functions.php,
extensions/agents_modules.php, extensions/module_groups.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php,
operation/integria_incidents/incident.incident.php,
operation/integria_incidents/incident.php: a lot of fixes in
relation with entities and clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 17:29:00 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[7] = "";
|
2012-06-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_reporting.php,
include/functions_groups.php, include/functions_visual_map.php,
include/ajax/reporting.ajax.php, include/functions_config.php,
include/functions_ui.php, include/functions.php,
extensions/agents_modules.php, extensions/module_groups.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php,
operation/integria_incidents/incident.incident.php,
operation/integria_incidents/incident.php: a lot of fixes in
relation with entities and clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 17:29:00 +02:00
|
|
|
|
|
|
|
if ($row['history_data'] == 1) {
|
|
|
|
|
2009-09-14 03:02:44 +02:00
|
|
|
$graph_type = return_graphtype ($row["module_type"]);
|
2012-06-13 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_reporting.php,
include/functions_groups.php, include/functions_visual_map.php,
include/ajax/reporting.ajax.php, include/functions_config.php,
include/functions_ui.php, include/functions.php,
extensions/agents_modules.php, extensions/module_groups.php,
operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/agentes/status_monitor.php,
operation/agentes/estado_generalagente.php,
operation/agentes/estado_agente.php,
operation/agentes/ver_agente.php,
operation/snmpconsole/snmp_view.php,
operation/integria_incidents/incident.incident.php,
operation/integria_incidents/incident.php: a lot of fixes in
relation with entities and clean source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6537 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-06-13 17:29:00 +02:00
|
|
|
|
2011-05-09 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php
include/functions_html.php
include/functions_menu.php
include/graphs/fgraph.php
include/functions_messages.php
include/functions_modules.php
include/functions_reporting.php
include/functions_filemanager.php
include/functions_networkmap.php
include/functions_servers.php
include/functions_network_profiles.php
include/functions_network_components.php
include/functions_visual_map.php
include/ajax/visual_console_builder.ajax.php
include/ajax/agent.php
include/ajax/alert_list.ajax.php
include/ajax/module.php
include/functions_io.php
include/functions_api.php
include/functions_ui.php
include/fgraph.php
include/functions_incidents.php
include/functions.php
include/functions_agents.php
include/functions_db.php
include/functions_alerts.php
include/functions_reports.php
include/functions_ui_renders.php
extensions/insert_data.php
extensions/agents_modules.php
extensions/resource_registration.php
extensions/resource_exportation.php
extensions/module_groups.php
extensions/plugin_registration.php
operation/incidents/incident.incident.php
operation/incidents/incident.php
operation/incidents/incident_detail.php
operation/incidents/incident.download_file.php
operation/incidents/incident.list.php
operation/search_modules.php
operation/agentes/status_monitor.php
operation/agentes/export_csv.php
operation/agentes/estado_ultimopaquete.php
operation/agentes/datos_agente.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/estado_monitores.php
operation/agentes/ver_agente.php
operation/agentes/tactical.php
operation/agentes/group_view.php
operation/agentes/networkmap.php
operation/agentes/stat_win.php
operation/servers/view_server.php
operation/servers/view_server_detail.php
operation/menu.php
operation/search_agents.php
operation/integria_incidents/incident.incident.php
operation/integria_incidents/incident.php
operation/integria_incidents/incident_detail.php
operation/integria_incidents/incident.download_file.php
operation/integria_incidents/incident.list.php
operation/events/events_rss.php
operation/events/events_list.php
operation/search_alerts.php
operation/messages/message.php
operation/reporting/reporting_xml.php
operation/reporting/reporting_viewer.php
operation/reporting/custom_reporting.php
operation/search_reports.php
operation/search_results.php
mobile/operation/agents/monitor_status.php
mobile/operation/agents/view_agents.php
mobile/operation/agents/tactical.php
mobile/operation/agents/view_alerts.php
mobile/operation/agents/group_view.php
mobile/operation/servers/view_servers.php
general/logon_ok.php
general/header.php
godmode/admin_access_logs.php
godmode/db/db_refine.php
godmode/db/db_info.php
godmode/db/db_purge.php
godmode/agentes/agent_template.php
godmode/agentes/module_manager_editor_common.php
godmode/agentes/module_manager.php
godmode/agentes/configurar_agente.php
godmode/agentes/module_manager_editor.php
godmode/agentes/agent_manager.php
godmode/servers/recon_script.php
godmode/servers/plugin.php
godmode/servers/manage_recontask.php
godmode/servers/modificar_server.php
godmode/menu.php
godmode/alerts/alert_list.list.php
godmode/alerts/configure_alert_compound.php
godmode/alerts/configure_alert_action.php
godmode/setup/os.list.php
godmode/setup/links.php
godmode/setup/setup.php
godmode/users/user_list.php
godmode/users/configure_user.php
godmode/massive/massive_add_alerts.php
godmode/massive/massive_delete_profiles.php
godmode/massive/massive_edit_agents.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/modules/manage_network_components_form.php
godmode/modules/manage_nc_groups_form.php
godmode/modules/manage_network_templates.php
godmode/modules/manage_network_components_form_common.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.preview.php
godmode/reporting/graph_builder.graph_editor.php
godmode/reporting/reporting_builder.php
godmode/reporting/reporting_builder.item_editor.php: Functions in
functions_incidents.php, functions_io.php, functions_menu.php, functions_messages.php,
functions_modules.php, functions_network_components.php, functions_network_profiles.php,
functions_networkmap.php, functions_reporting.php, functions_reports.php,
functions_servers.php have "incidents_", "io_", "menu_", "messages_", "modules_",
"network_profiles_", "network_components_", "networkmap_", "reporting_", "reports_",
"servers_" prefixes respectively.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4326 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-05-09 19:30:55 +02:00
|
|
|
$nombre_tipo_modulo = modules_get_moduletype_name ($row["module_type"]);
|
2009-09-14 03:02:44 +02:00
|
|
|
$handle = "stat".$nombre_tipo_modulo."_".$row["id_agente_modulo"];
|
|
|
|
$url = 'include/procesos.php?agente='.$row["id_agente_modulo"];
|
|
|
|
$win_handle=dechex(crc32($row["id_agente_modulo"].$row["module_name"]));
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-11-29 18:34:51 +01:00
|
|
|
if (defined('METACONSOLE'))
|
|
|
|
$link ="winopeng('" . $row['server_url'] . "operation/agentes/stat_win.php?type=$graph_type&period=86400&loginhash=auto&loginhash_data=" . $row["hashdata"] . "&loginhash_user=" . $row["user"] . "&id=".$row["id_agente_modulo"]."&label=".base64_encode($row["module_name"])."&refresh=600','day_".$win_handle."')";
|
|
|
|
else
|
|
|
|
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$row["id_agente_modulo"]."&label=".base64_encode($row["module_name"])."&refresh=600','day_".$win_handle."')";
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[7] = '<a href="javascript:'.$link.'">' . html_print_image("images/chart_curve.png", true, array("border" => '0', "alt" => "")) . '</a>';
|
2012-11-29 18:34:51 +01:00
|
|
|
if (defined('METACONSOLE'))
|
|
|
|
$data[7] .= " <a href='" . $row['server_url'] . "index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&loginhash=auto&loginhash_data=" . $row["hashdata"] . "&loginhash_user=" . $row["user"] . "&id=".$row["id_agente_modulo"]."'>" . html_print_image('images/binary.png', true, array("style" => '0', "alt" => '')) . "</a>";
|
|
|
|
else
|
|
|
|
$data[7] .= " <a href='index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=".$row["id_agent"]."&tab=data_view&period=86400&id=".$row["id_agente_modulo"]."'>" . html_print_image('images/binary.png', true, array("style" => '0', "alt" => '')) . "</a>";
|
|
|
|
|
2009-09-14 03:02:44 +02:00
|
|
|
}
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[8] = ui_print_module_warn_value($row['max_warning'], $row['min_warning'], $row['str_warning'], $row['max_critical'], $row['min_critical'], $row['str_critical']);
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
if (is_numeric($row["datos"])) {
|
2011-12-05 19:22:49 +01:00
|
|
|
$salida = format_numeric($row["datos"]);
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-04-19 20:48:35 +02:00
|
|
|
// Show units ONLY in numeric data types
|
2012-11-04 20:10:19 +01:00
|
|
|
if (isset($row["unit"])) {
|
2012-04-19 20:48:35 +02:00
|
|
|
$salida .= " " . '<i>'. io_safe_output($row["unit"]) . '</i>';
|
2012-11-29 18:34:51 +01:00
|
|
|
$salida = ui_print_truncate_text($salida, 'agent_small', true, true, false, '[…]', 'font-size:7.5pt;');
|
2012-04-19 20:48:35 +02:00
|
|
|
}
|
|
|
|
}
|
2011-12-05 19:22:49 +01:00
|
|
|
else {
|
|
|
|
$module_value = io_safe_output($row["datos"]);
|
2012-11-04 20:10:19 +01:00
|
|
|
$sub_string = substr(io_safe_output($row["datos"]), 0, 12);
|
2011-12-05 19:22:49 +01:00
|
|
|
if ($module_value == $sub_string) {
|
|
|
|
$salida = $module_value;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if (strlen($module_value) > 35)
|
|
|
|
$mod_val = substr($module_value, 0, 35) . '...';
|
|
|
|
else
|
|
|
|
$mod_val = $module_value;
|
|
|
|
|
|
|
|
$salida = html_print_input_hidden("value_replace_module_" . $row["id_agente_modulo"], $mod_val, true)
|
|
|
|
. "<span id='value_module_" . $row["id_agente_modulo"] . "'
|
|
|
|
title='". $module_value ."' style='white-space: nowrap;'>" .
|
|
|
|
'<span id="value_module_text_' . $row["id_agente_modulo"] . '">' . $sub_string . '</span> ' .
|
|
|
|
"<a href='javascript: toggle_full_value(" . $row["id_agente_modulo"] . ")'>" . html_print_image("images/rosette.png", true) . "" . "</span>";
|
2012-07-25 11:59:03 +02:00
|
|
|
}
|
2011-12-05 19:22:49 +01:00
|
|
|
}
|
2012-07-25 11:59:03 +02:00
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[9] = $salida;
|
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
|
|
|
|
2009-11-25 14:18:03 +01:00
|
|
|
if ($row["module_interval"] > 0)
|
|
|
|
$interval = $row["module_interval"];
|
|
|
|
else
|
|
|
|
$interval = $row["agent_interval"];
|
|
|
|
|
2012-11-04 20:10:19 +01:00
|
|
|
if ($row['estado'] == 3) {
|
2010-08-04 13:08:16 +02:00
|
|
|
$option = array ("html_attr" => 'class="redb"');
|
2012-07-25 11:59:03 +02:00
|
|
|
}
|
|
|
|
else {
|
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
|
|
|
$option = array ();
|
2008-10-29 21:03:42 +01:00
|
|
|
}
|
2012-11-04 20:10:19 +01:00
|
|
|
$data[10] = ui_print_timestamp ($row["utimestamp"], true, $option);
|
2008-10-29 21:03:42 +01:00
|
|
|
|
|
|
|
array_push ($table->data, $data);
|
|
|
|
}
|
|
|
|
if (!empty ($table->data)) {
|
2011-04-27 15:43:31 +02:00
|
|
|
html_print_table ($table);
|
2012-07-25 11:59:03 +02:00
|
|
|
}
|
|
|
|
else {
|
2012-11-29 18:34:51 +01:00
|
|
|
ui_print_error_message(
|
|
|
|
__('This group doesn\'t have any monitor') );
|
2008-01-10 17:40:00 +01:00
|
|
|
}
|
2007-07-28 20:11:48 +02:00
|
|
|
?>
|
2011-12-05 19:22:49 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
function toggle_full_value(id) {
|
|
|
|
value_title = $("#hidden-value_replace_module_" + id).val();
|
|
|
|
|
|
|
|
$("#hidden-value_replace_module_" + id).val($("#value_module_text_" + id).html());
|
2012-06-25 15:17:05 +02:00
|
|
|
|
2011-12-05 19:22:49 +01:00
|
|
|
$("#value_module_text_" + id).html(value_title);
|
|
|
|
}
|
2012-09-17 18:03:38 +02:00
|
|
|
</script>
|