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
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
godmode/db/db_event.php, godmode/db/db_purge.php,
godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
godmode/servers/plugin.php, godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php, godmode/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/graph_builder.preview.php: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
if ( ! check_acl ( $config [ 'id_user' ], 0 , " AR " ) && ! check_acl ( $config [ 'id_user' ], 0 , " AW " )) {
2010-10-27 Miguel de Dios <miguel.dedios@artica.es>
* godmode/admin_access_logs.php: added hooks to enterprise code, and added
new filter with more options.
* include/functions_db.php: erase the deprecated function "audit_db", and
added in function "pandora_audit" two new parameters $user_id, $ip for
pass this values when it are differents to the default values. Finally
replaced the depecrated "audit_db" for "pandora_audit".
* include/functions_events.php, include/functions_filemanager.php,
include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/functions_incidents.php, index.php, extensions/agents_modules.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/dbmanager.php, extensions/update_manager/settings.php,
extensions/pandora_logs.php, extensions/plugin_registration.php,
operation/incidents/incident.php, operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/agentes/status_monitor.php, operation/agentes/export_csv.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/gis_view.php, operation/agentes/estado_monitores.php,
operation/agentes/ver_agente.php, operation/agentes/graphs.php,
operation/agentes/agent_fields.php, operation/agentes/tactical.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php,operation/servers/view_server_detail.php,
operation/snmpconsole/snmp_view.php, operation/users/user_edit.php,
operation/gis_maps/render_view.php, operation/events/event_statistics.php,
operation/events/sound_events.php, operation/events/events_validate.php,
operation/events/events_list.php, operation/events/events_marquee.php,
operation/events/events.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
godmode/groups/modu_group_list.php, godmode/groups/configure_group.php,
godmode/groups/configure_modu_group.php, godmode/groups/group_list.php,
godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
godmode/db/db_event.php, godmode/db/db_purge.php,
godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/agentes/agent_manager.php,
godmode/servers/manage_export.php, godmode/servers/recon_script.php,
godmode/servers/manage_export_form.php, godmode/servers/plugin.php,
godmode/servers/manage_recontask.php, godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_enable_disable_alerts.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_delete_profiles.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_add_profiles.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_standby_alerts.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/map_builder_wizard.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/graphs.php, godmode/reporting/graph_builder.preview.php:
Replaced the depecrated "audit_db" for "pandora_audit".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3467 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-10-27 12:47:07 +02:00
pandora_audit ( " 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
2010-10-06 14:24:21 +02:00
$isFunctionPolicies = enterprise_include_once ( 'include/functions_policies.php' );
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
print_page_header ( " Monitor detail " , " images/bricks.png " , false );
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' );
2010-04-22 18:51:23 +02:00
$ag_group = ( int ) get_parameter ( 'ag_group' , 0 );
2009-05-19 15:33:27 +02:00
$offset = ( int ) get_parameter ( 'offset' );
$status = ( int ) get_parameter ( 'status' , 4 );
$modulegroup = ( int ) get_parameter ( 'modulegroup' );
2008-01-10 17:40:00 +01: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
echo '<form method="post" action="index.php?sec=estado&sec2=operation/agentes/status_monitor&refr=60">' ;
2008-04-17 17:27:25 +02:00
2009-01-21 15:47:39 +01:00
echo '<table cellspacing="4" cellpadding="4" width="750" class="databox">' ;
2008-10-29 21:03:42 +01:00
echo '<tr><td valign="middle">' . __ ( 'Group' ) . '</td>' ;
echo '<td valign="middle">' ;
2008-04-17 17:27:25 +02:00
2010-07-15 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php: added the function "print_select_groups" to
print the field select box for groups with tree style.
* include/functions_db.php: in function "get_user_groups" added test to
false value in parameter $privilege for get all groups without ACL test.
Fixed in function "get_user_groups_tree" the call to "get_user_groups" with
the correct parameters.
* operation/incidents/incident.php, operation/incidents/incident_detail.php,
operation/events/events.php, operation/agentes/status_monitor.php,
operation/agentes/estado_agente.php,
operation/agentes/alerts_status.functions.php,
operation/agentes/exportdata.php, operation/agentes/networkmap.php,
operation/messages/message.php, general/ui/agents_list.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/agentes/massive_add_alerts.php,
godmode/agentes/massive_delete_agents.php,
godmode/agentes/massive_config.php,
godmode/agentes/massive_delete_action_alerts.php,
godmode/agentes/massive_delete_alerts.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/massive_delete_modules.php,
godmode/agentes/massive_add_action_alerts.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/configure_alert_compound.php,
godmode/alerts/alert_compounds.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/configure_alert_action.php, godmode/setup/gis_step_2.php,
godmode/users/configure_user.php, godmode/gis_maps/configure_gis_map.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php: changed the fields select
box of group to tree style select box for groups.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3009 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-07-15 17:20:43 +02:00
print_select_groups ( false , " AR " , true , " ag_group " , $ag_group , 'this.form.submit();' ,
2010-06-01 18:41:05 +02:00
'' , '0' , false , false , false , 'w130' , false , 'width:150px;' );
2008-06-19 02:24:05 +02:00
2008-10-29 21:03:42 +01:00
echo " </td> " ;
echo " <td> " . __ ( 'Monitor status' ) . " </td><td> " ;
2008-04-17 17:27:25 +02:00
2008-10-29 21:03:42 +01:00
$fields = array ();
2010-04-22 18:51:23 +02:00
$fields [ 0 ] = __ ( 'Normal' );
2009-01-20 21:01:25 +01:00
$fields [ 1 ] = __ ( 'Warning' );
$fields [ 2 ] = __ ( 'Critical' );
$fields [ 3 ] = __ ( 'Unknown' );
2010-04-22 18:51:23 +02:00
$fields [ 4 ] = __ ( 'Not normal' ); //default
2009-07-20 15:18:18 +02:00
$fields [ 5 ] = __ ( 'Not init' );
2008-01-10 17:40:00 +01:00
2010-06-01 18:41:05 +02:00
print_select ( $fields , " status " , $status , 'this.form.submit();' , __ ( 'All' ), - 1 , false , false , true , '' , false , 'width: 125px;' );
2009-01-21 15:47:39 +01:00
echo '</td>' ;
echo '<td valign="middle">' . __ ( 'Module group' ) . '</td>' ;
echo '<td valign="middle">' ;
2009-05-19 15:33:27 +02:00
print_select_from_sql ( " SELECT * FROM tmodule_group ORDER BY name " ,
2011-01-19 14:50:22 +01:00
'modulegroup' , $modulegroup , 'this.form.submit();' , __ ( 'All' ), 0 , false , false , true , false , 'width: 100px;' );
2009-01-21 15:47:39 +01: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
echo '</td></tr><tr><td valign="middle">' . __ ( 'Module name' ) . '</td>' ;
2008-10-29 21:03:42 +01:00
echo '<td valign="middle">' ;
2008-06-19 02:24:05 +02:00
2010-08-31 12:53:10 +02:00
$user_groups = implode ( " , " , array_keys ( get_user_groups ()));
2011-01-20 20:19:48 +01:00
//$user_agents = array_keys (get_group_agents($user_groups));
//$modules = get_db_all_rows_filter ('tagente_modulo', array('id_agente' => $user_agents, 'nombre' => '<>delete_pending'), 'DISTINCT(nombre)');
2011-03-03 12:32:05 +01:00
switch ( $config [ " dbtype " ]) {
case " mysql " :
$sql = '
2011-03-08 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_html.php, include/functions_messages.php,
include/functions_exportserver.php, include/functions_reporting.php,
include/functions_gis.php, include/functions_networkmap.php,
include/functions_servers.php, include/functions_api.php,
include/fgraph.php, include/functions_agents.php, include/functions_db.php,
include/functions_alerts.php, extensions/module_groups.php,
operation/incidents/incident.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/alerts_status.php, operation/agentes/estado_agente.php,
operation/agentes/sla_view.php, operation/agentes/ver_agente.php,
operation/servers/view_server_detail.php, operation/menu.php,
operation/search_graphs.php, operation/snmpconsole/snmp_view.php,
operation/gis_maps/ajax.php, operation/events/events_rss.php,
operation/events/events_list.php, operation/search_alerts.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
operation/search_users.php, mobile/operation/agents/view_agents.php,
mobile/operation/events/events.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/group_list.php,
godmode/db/db_main.php, godmode/db/db_purge.php,
godmode/agentes/module_manager_editor_prediction.php,
godmode/agentes/modificar_agente.php,
godmode/agentes/module_manager_editor.php,
godmode/agentes/planned_downtime.php,
godmode/servers/manage_recontask_form.php,
godmode/alerts/alert_list.list.php, godmode/users/configure_user.php,
godmode/massive/massive_edit_modules.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.item_editor.php: changed or added in
some cases the SQL queries for to be PostgreSQL standard, and cleaned source
style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4074 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-03-09 15:26:36 +01:00
SELECT distinct ( nombre )
FROM tagente_modulo
WHERE nombre <> " delete_pending " and id_agente in
2011-03-03 12:32:05 +01:00
(
select id_agente
from tagente where id_grupo IN (
select id_grupo
from tusuario_perfil
where id_usuario = " ' . $config['id_user'] . ' "
and id_perfil IN (
select id_perfil
from tperfil where agent_view = 1
)
)
OR
( 1 = (
SELECT is_admin FROM tusuario WHERE id_user = " ' . $config['id_user'] . ' "
)
)
OR 0 IN (
select id_grupo
from tusuario_perfil
where id_usuario = " ' . $config['id_user'] . ' "
and id_perfil IN (
select id_perfil
from tperfil where agent_view = 1
)
)
) ' ;
break ;
case " postgresql " :
$sql = '
select distinct ( nombre )
from tagente_modulo
where nombre <> \ ' delete_pending\ ' and id_agente in
(
select id_agente
from tagente where id_grupo IN (
select id_grupo
from tusuario_perfil
where id_usuario = \ '' . $config [ 'id_user' ] . ' \ '
and id_perfil IN (
select id_perfil
from tperfil where agent_view = 1
)
)
OR
( 1 = (
SELECT is_admin FROM tusuario WHERE id_user = \ '' . $config [ 'id_user' ] . ' \ '
)
)
OR 0 IN (
select id_grupo
from tusuario_perfil
where id_usuario = \ '' . $config [ 'id_user' ] . ' \ '
and id_perfil IN (
select id_perfil
from tperfil where agent_view = 1
)
)
) ' ;
break ;
}
2011-01-20 20:19:48 +01:00
$modules = get_db_all_rows_sql ( $sql );
2010-08-31 12:53:10 +02:00
2009-05-19 15:33:27 +02:00
print_select ( index_array ( $modules , 'nombre' , 'nombre' ), " ag_modulename " ,
2010-06-01 18:41:05 +02:00
$ag_modulename , 'this.form.submit();' , __ ( 'All' ), '' , false , false , true , '' , false , 'width: 150px;' );
2008-04-17 17:27:25 +02:00
2011-01-19 14:50:22 +01:00
echo '</td><td valign="middle" align="right">' . __ ( 'Search' ) . '</td>' ;
2008-04-17 17:27:25 +02:00
2008-10-29 21:03:42 +01:00
echo '<td valign="middle">' ;
2011-01-19 14:50:22 +01:00
print_input_text ( " ag_freestring " , $ag_freestring , '' , 20 , 30 , false );
2009-01-20 21:01:25 +01:00
2008-10-29 21:03:42 +01:00
echo '</td><td valign="middle">' ;
2010-05-31 13:41:10 +02:00
print_submit_button ( __ ( 'Show' ), " uptbutton " , false , 'class="sub search"' );
2008-04-17 17:27:25 +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
echo " </td><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
// Begin Build SQL sentences
$sql = " FROM tagente, tagente_modulo, tagente_estado
WHERE tagente . id_agente = tagente_modulo . id_agente
AND tagente_modulo . disabled = 0
AND tagente . disabled = 0
AND tagente_estado . id_agente_modulo = tagente_modulo . id_agente_modulo " ;
2008-04-17 17:27:25 +02:00
// Agent group selector
2011-02-27 Miguel de Dios <miguel.dedios@artica.es>
* extensions/users_connected.php: fixed the double negation in the
check_acl.
* include/functions_events.php, include/functions_modules.php,
include/functions_reporting.php, include/functions_filemanager.php,
include/functions_config.php, include/ajax/reporting.ajax.php,
include/ajax/visual_console_builder.ajax.php,
include/ajax/alert_list.ajax.php, include/help/es/modu_group_list.php,
include/fgraph.php, include/functions.php, include/functions_db.php,
include/functions_alerts.php, include/functions_reports.php,
extensions/insert_data.php, extensions/system_info.php,
extensions/pandora_logs.php, extensions/agents_modules.php,
extensions/dbmanager.php, extensions/resource_registration.php,
extensions/update_manager/settings.php, extensions/update_manager/main.php,
extensions/plugin_registration.php, operation/incidents/incident.php,
operation/incidents/incident_detail.php,
operation/incidents/incident_statistics.php, operation/extensions.php,
operation/visual_console/render_view.php,
operation/visual_console/index.php, operation/agentes/status_monitor.php,
operation/agentes/export_csv.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/datos_agente.php, operation/agentes/alerts_status.php,
operation/agentes/estado_generalagente.php,
operation/agentes/custom_fields.php, operation/agentes/estado_agente.php,
operation/agentes/networkmap.topology.php,
operation/agentes/networkmap.groups.php, operation/agentes/sla_view.php,
operation/agentes/exportdata.php, operation/agentes/gis_view.php,
operation/agentes/estado_monitores.php, operation/agentes/ver_agente.php,
operation/agentes/graphs.php, operation/agentes/agent_fields.php,
operation/agentes/group_view.php, operation/agentes/networkmap.php,
operation/servers/view_server.php, operation/servers/view_server_detail.php,
operation/menu.php, operation/snmpconsole/snmp_view.php,
operation/users/user_edit.php, operation/events/event_statistics.php,
operation/events/export_csv.php, operation/events/sound_events.php,
operation/events/events_validate.php, operation/events/events_list.php,
operation/events/events_marquee.php, operation/events/events.php,
operation/search_reports.php, operation/reporting/reporting_xml.php,
operation/reporting/reporting_viewer.php,
operation/reporting/graph_viewer.php, operation/search_maps.php,
mobile/operation/agents/monitor_status.php,
mobile/operation/agents/view_agents.php, mobile/index.php,
general/ui/agents_list.php, godmode/groups/modu_group_list.php,
godmode/groups/configure_group.php, godmode/groups/configure_modu_group.php,
godmode/groups/group_list.php, godmode/admin_access_logs.php,
godmode/extensions.php, godmode/db/db_main.php, godmode/db/db_audit.php,
godmode/db/db_sanity.php, godmode/db/db_refine.php, godmode/db/db_info.php,
godmode/db/db_event.php, godmode/db/db_purge.php,
godmode/agentes/fields_manager.php, godmode/agentes/module_manager.php,
godmode/agentes/modificar_agente.php, godmode/agentes/configurar_agente.php,
godmode/agentes/configure_field.php, godmode/agentes/planned_downtime.php,
godmode/agentes/manage_config_remote.php, godmode/servers/recon_script.php,
godmode/servers/plugin.php, godmode/servers/manage_recontask.php,
godmode/servers/modificar_server.php,
godmode/servers/manage_recontask_form.php, godmode/menu.php,
godmode/alerts/alert_list.list.php,
godmode/alerts/configure_alert_compound.php,
godmode/alerts/alert_compounds.php, godmode/alerts/alert_list.php,
godmode/alerts/configure_alert_template.php,
godmode/alerts/alert_templates.php,
godmode/alerts/configure_alert_action.php,
godmode/alerts/configure_alert_command.php,
godmode/alerts/alert_actions.php, godmode/alerts/alert_list.builder.php,
godmode/alerts/alert_commands.php, godmode/snmpconsole/snmp_alert.php,
godmode/snmpconsole/snmp_filters.php, godmode/setup/file_manager.php,
godmode/setup/os.list.php, godmode/setup/news.php,
godmode/setup/gis_step_2.php, godmode/setup/links.php,
godmode/setup/setup.php, godmode/setup/os.php,
godmode/setup/performance.php, godmode/setup/setup_auth.php,
godmode/setup/gis.php, godmode/setup/os.builder.php,
godmode/setup/setup_visuals.php, godmode/users/user_list.php,
godmode/users/configure_user.php, godmode/users/configure_profile.php,
godmode/gis_maps/configure_gis_map.php, godmode/gis_maps/index.php,
godmode/massive/massive_add_alerts.php,
godmode/massive/massive_copy_modules.php,
godmode/massive/massive_delete_agents.php,
godmode/massive/massive_operations.php,
godmode/massive/massive_edit_agents.php,
godmode/massive/massive_delete_action_alerts.php,
godmode/massive/massive_delete_modules.php,
godmode/massive/massive_delete_alerts.php,
godmode/massive/massive_edit_modules.php,
godmode/massive/massive_add_action_alerts.php,
godmode/modules/manage_network_components_form.php,
godmode/modules/manage_nc_groups_form.php,
godmode/modules/manage_network_templates.php,
godmode/modules/module_list.php,
godmode/modules/manage_network_components_form_common.php,
godmode/modules/manage_network_components_form_network.php,
godmode/modules/manage_network_templates_form.php,
godmode/modules/manage_network_components_form_wmi.php,
godmode/modules/manage_network_components.php,
godmode/modules/manage_nc_groups.php,
godmode/reporting/reporting_builder.list_items.php,
godmode/reporting/graph_builder.main.php,
godmode/reporting/visual_console_builder.wizard.php,
godmode/reporting/visual_console_builder.php,
godmode/reporting/reporting_builder.preview.php,
godmode/reporting/reporting_builder.main.php,
godmode/reporting/visual_console_builder.data.php,
godmode/reporting/visual_console_builder.elements.php,
godmode/reporting/graph_builder.php,
godmode/reporting/visual_console_builder.preview.php,
godmode/reporting/graph_builder.graph_editor.php,
godmode/reporting/reporting_builder.php,
godmode/reporting/visual_console_builder.editor.php,
godmode/reporting/reporting_builder.item_editor.php,
godmode/reporting/map_builder.php, godmode/reporting/graphs.php,
godmode/reporting/graph_builder.preview.php: replaced obsolete "give_acl" to
"check_acl" and erased the "give_acl".
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4025 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-28 13:02:08 +01:00
if ( $ag_group > 0 && check_acl ( $config [ " id_user " ], $ag_group , " AR " )) {
2010-05-31 13:41:10 +02:00
$sql .= sprintf ( " AND tagente.id_grupo = %d " , $ag_group );
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 {
2008-07-17 08:41:39 +02:00
// User has explicit permission on group 1 ?
2010-08-31 12:53:10 +02:00
$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
if ( $modulegroup > 0 ) {
$sql .= sprintf ( " AND tagente_modulo.id_module_group = '%d' " , $modulegroup );
}
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 != " " ) {
$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-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
2010-08-04 13:08:16 +02:00
$sql .= " AND tagente_estado.estado = 3 " ;
}
2010-06-02 10:23:55 +02:00
elseif ( $status == 5 ) { //Not init
2010-08-04 13:08:16 +02:00
$sql .= " AND tagente_estado.utimestamp = 0 AND tagente_modulo.id_tipo_modulo NOT IN (21,22,23,100) " ;
2008-10-29 21:03:42 +01:00
}
2008-06-19 02:24:05 +02:00
2008-10-29 21:03:42 +01:00
$sql .= " ORDER BY tagente.id_grupo, tagente.nombre " ;
2008-04-17 17:27:25 +02:00
// Build final SQL sentences
2008-10-29 21:03:42 +01:00
$count = get_db_sql ( " SELECT COUNT(tagente_modulo.id_agente_modulo) " . $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
switch ( $config [ " dbtype " ]) {
case " mysql " :
$sql = " SELECT tagente_modulo.id_agente_modulo,
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 ,
tagente_estado . utimestamp AS utimestamp " . $sql . " LIMIT " . $offset . " , " . $config["block_size"] ;
break ;
case " postgresql " :
$sql = " SELECT tagente_modulo.id_agente_modulo,
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 ,
tagente_estado . utimestamp AS utimestamp " . $sql . " LIMIT " . $config["block_size"] . " OFFSET " . $offset ;
break ;
}
2008-10-29 21:03:42 +01:00
$result = get_db_all_rows_sql ( $sql );
if ( $count > $config [ " block_size " ]) {
2009-05-19 15:33:27 +02:00
pagination ( $count , false , $offset );
2008-10-29 21:03:42 +01:00
}
2008-04-17 17:27:25 +02:00
2008-10-29 21:03:42 +01:00
if ( $result === false ) {
$result = array ();
2008-07-17 08:41:39 +02:00
}
2008-10-29 21:03:42 +01:00
$table -> cellpadding = 4 ;
$table -> cellspacing = 4 ;
$table -> width = 750 ;
$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> " ;
2008-10-29 21:03:42 +01:00
$table -> head [ 1 ] = __ ( 'Agent' );
$table -> head [ 2 ] = __ ( 'Type' );
2009-09-14 03:02:44 +02:00
$table -> align [ 2 ] = " left " ;
2008-07-17 08:41:39 +02:00
2009-06-25 Jorge Gonzalez <jorgegonz@artica.es>
* include/functions_db.php, operation/snmpconsole/snmp_view.php,
* operation/agentes/status_monitor.php,
* operation/agentes/estado_grupo.php,
* operation/agentes/estado_ultimopaquete.php,
* operation/agentes/alerts_status.php,
* operation/agentes/estado_generalagente.php,
* operation/agentes/estado_agente.php,
* operation/agentes/exportdata.php,
* operation/agentes/estado_monitores.php,
* operation/agentes/tactical.php, operation/agentes/networkmap.php,
* operation/reporting/reporting_viewer.php, reporting/fgraph.php,
* general/pandora_help.php, general/logoff.php,
* general/logon_failed.php, godmode/setup/setup.php,
* godmode/setup/links.php, godmode/snmpconsole/snmp_alert.php,
* godmode/profiles/profile_list.php, godmode/db/db_main.php,
* godmode/db/db_audit.php, godmode/db/db_refine.php,
* godmode/db/db_info.php, godmode/db/db_event.php,
* godmode/db/db_purge.php,
* godmode/agentes/massive_delete_agents.php,
* godmode/agentes/massive_config.php,
* godmode/agentes/massive_delete_alerts.php,
* godmode/agentes/massive_edit_modules.php,
* godmode/agentes/module_manager.php,
* godmode/agentes/massive_delete_modules.php,
* godmode/agentes/configurar_agente.php,
* godmode/agentes/planned_downtime.php,
* godmode/modules/manage_network_templates_form.php,
* godmode/modules/manage_network_components.php,
* godmode/reporting/map_builder.php,
* godmode/reporting/map_builder_wizard.php,
* godmode/servers/manage_export.php,
* godmode/servers/manage_export_form.php,
* godmode/servers/plugin.php, godmode/servers/modificar_server.php,
* godmode/servers/manage_recontask_form.php,
* godmode/alerts/alert_compounds.php, godmode/menu.php: Some
* translatable strings reused to simplify i18n work.
* include/languages/es.po, include/languages/es.mo: Updated Spanish
* translation.
* include/languages/index.pot: Updated po template.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1768 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-06-25 10:01:18 +02:00
$table -> head [ 3 ] = __ ( 'Module name' );
2008-10-29 21:03:42 +01:00
$table -> head [ 4 ] = __ ( 'Interval' );
$table -> align [ 4 ] = " center " ;
$table -> head [ 5 ] = __ ( 'Status' );
$table -> align [ 5 ] = " center " ;
2009-09-14 03:02:44 +02:00
$table -> head [ 6 ] = __ ( 'Graph' );
2010-07-19 16:46:08 +02:00
$table -> align [ 6 ] = " center " ;
2009-09-14 03:02:44 +02:00
$table -> head [ 7 ] = __ ( 'Data' );
$table -> align [ 7 ] = " left " ;
$table -> head [ 8 ] = __ ( 'Timestamp' );
$table -> align [ 8 ] = " 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 ;
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 ) {
$policyInfo = infoModulePolicy ( $row [ 'id_agente_modulo' ]);
if ( $policyInfo === false )
$data [ 0 ] = '' ;
else {
$linked = isModuleLinked ( $row [ 'id_agente_modulo' ]);
2010-10-14 17:09:29 +02:00
$adopt = false ;
if ( isModuleAdopt ( $row [ 'id_agente_modulo' ])) {
$adopt = true ;
}
2010-10-06 14:24:21 +02:00
if ( $linked ) {
2010-10-14 17:09:29 +02:00
if ( $adopt ) {
$img = 'images/policies_brick.png' ;
$title = __ ( '(Adopt) ' ) . $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
}
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' ] . '">' .
2010-10-06 14:24:21 +02:00
print_image ( $img , true , array ( 'title' => $title )) .
'</a>' ;
}
}
2010-11-11 Raúl Mateos <raulofpandora@gmail.com>
* general/error_install.php, general/error_perms.php, general/header.php,
general/logon_menu.php, general/logon_ok.php, include/functions_menu.php,
include/functions_ui.php, extensions/agents_modules.php,
operation/menu.php, godmode/menu.php, operation/estado_agente.php,
operation/agentes/estado_agente.php, operation/agentes/status_monitor.php,
operation/agentes/estado_monitores.php,
operation/agentes/estado_ultimopaquete.php,
operation/agentes/estado_generalagente.php, pandoradb_data.sql: Closed
some HTML tags, autoclose others, added alt to images, and changed some
& to "&" to help validation for XHTML 1.0 Transitional. Tested and
not error found, but needs more tests...
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3572 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-11-11 12:16:09 +01:00
$data [ 1 ] = '<strong><a href="index.php?sec=estado&sec2=operation/agentes/ver_agente&id_agente=' . $row [ " id_agent " ] . '">' ;
2010-05-31 13:41:10 +02:00
$data [ 1 ] .= substr ( $row [ " agent_name " ], 0 , 25 );
2008-10-29 21:03:42 +01:00
$data [ 1 ] .= '</a></strong>' ;
2011-02-04 14:30:50 +01:00
$data [ 2 ] = print_image ( " images/ " . show_icon_type ( $row [ " module_type " ]), true );
2008-10-29 21:03:42 +01:00
2010-11-14 02:32:21 +01:00
$data [ 3 ] = mb_strimwidth ( safe_output ( $row [ " module_name " ]), 0 , 30 );
2009-04-24 11:19:35 +02:00
$data [ 4 ] = ( $row [ 'module_interval' ] == 0 ) ? $row [ 'agent_interval' ] : $row [ 'module_interval' ];
2010-08-04 13:08:16 +02:00
if ( $row [ 'utimestamp' ] == 0 && (( $row [ 'module_type' ] < 21 || $row [ 'module_type' ] > 23 ) && $row [ 'module_type' ] != 100 )){
$data [ 5 ] = 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 ) {
2010-08-04 13:08:16 +02:00
$data [ 5 ] = 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 ) {
2010-08-04 13:08:16 +02:00
$data [ 5 ] = 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 ) {
2010-08-04 13:08:16 +02:00
$data [ 5 ] = 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 {
2010-08-04 13:08:16 +02:00
$last_status = get_agentmodule_last_status ( $row [ 'id_agente_modulo' ]);
switch ( $last_status ) {
case 0 :
$data [ 5 ] = print_status_image ( STATUS_MODULE_OK , __ ( 'UNKNOWN' ) . " - " . __ ( 'Last status' ) . " " . __ ( 'NORMAL' ) . " : " . $row [ " datos " ], true );
break ;
case 1 :
$data [ 5 ] = print_status_image ( STATUS_MODULE_CRITICAL , __ ( 'UNKNOWN' ) . " - " . __ ( 'Last status' ) . " " . __ ( 'CRITICAL' ) . " : " . $row [ " datos " ], true );
break ;
case 2 :
$data [ 5 ] = print_status_image ( STATUS_MODULE_WARNING , __ ( 'UNKNOWN' ) . " - " . __ ( 'Last status' ) . " " . __ ( 'WARNING' ) . " : " . $row [ " datos " ], true );
break ;
}
2008-07-17 08:41:39 +02:00
}
2008-10-29 21:03:42 +01:00
2009-09-14 03:02:44 +02:00
$data [ 6 ] = " " ;
if ( $row [ 'history_data' ] == 1 ){
$graph_type = return_graphtype ( $row [ " module_type " ]);
$nombre_tipo_modulo = get_moduletype_name ( $row [ " module_type " ]);
$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 " ]));
2011-03-11 13:33:15 +01:00
$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 . " ') " ;
2009-09-14 03:02:44 +02:00
2011-02-04 14:30:50 +01:00
$data [ 6 ] = '<a href="javascript:' . $link . '">' . print_image ( " images/chart_curve.png " , true , array ( " border " => '0' , " alt " => " " )) . '</a>' ;
$data [ 6 ] .= " <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 " ] . " '> " . print_image ( 'images/binary.png' , true , array ( " style " => '0' , " alt " => '' )) . " </a> " ;
2009-09-14 03:02:44 +02:00
}
if ( is_numeric ( $row [ " datos " ]))
$data [ 7 ] = format_numeric ( $row [ " datos " ]);
else
2009-11-25 10:12:42 +01:00
$data [ 7 ] = " <span title=' " . $row [ 'datos' ] . " ' style='white-space: nowrap;'> " . substr ( safe_output ( $row [ " datos " ]), 0 , 12 ) . " </span> " ;
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 " ];
2010-08-04 13:08:16 +02:00
if ( $row [ 'estado' ] == 3 ){
$option = array ( " html_attr " => 'class="redb"' );
2009-12-02 00:10:00 +01: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
}
2009-09-14 03:02:44 +02:00
$data [ 8 ] = print_timestamp ( $row [ " utimestamp " ], true , $option );
2008-10-29 21:03:42 +01:00
array_push ( $table -> data , $data );
}
if ( ! empty ( $table -> data )) {
print_table ( $table );
2008-01-10 17:40:00 +01:00
} else {
2008-10-29 21:03:42 +01:00
echo '<div class="nf">' . __ ( 'This group doesn\'t have any monitor' ) . '</div>' ;
2008-01-10 17:40:00 +01:00
}
2007-07-28 20:11:48 +02:00
?>