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
|
|
|
|
// ==================================================
|
|
|
|
// Copyright (c) 2005-2009 Artica Soluciones Tecnologicas
|
|
|
|
// Please see http://pandorafms.org for full contribution list
|
2008-04-03 17:43:34 +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-04-03 17:43:34 +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.
|
2009-06-08 20:15:58 +02:00
|
|
|
|
2010-04-05 17:54:17 +02:00
|
|
|
global $config;
|
2006-03-27 05:37:27 +02:00
|
|
|
|
2010-04-05 17:54:17 +02:00
|
|
|
// Login check
|
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
|
|
|
check_login ();
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
require_once ("include/functions_agents.php");
|
2009-10-21 22:25:26 +02:00
|
|
|
$isFunctionPolicies = enterprise_include_once ('include/functions_policies.php');
|
2009-01-15 11:21:38 +01:00
|
|
|
|
2009-10-21 22:25:26 +02:00
|
|
|
$filter = get_parameter ("filter", "undefined");
|
2009-01-05 19:41:14 +01:00
|
|
|
$offset = (int) get_parameter_get ("offset", 0);
|
|
|
|
$id_group = (int) get_parameter ("ag_group", 1); //1 is the All group (selects all groups)
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
$sec2 = get_parameter_get ('sec2');
|
|
|
|
$sec2 = safe_url_extraclean ($sec2);
|
|
|
|
|
|
|
|
$sec = get_parameter_get ('sec');
|
|
|
|
$sec = safe_url_extraclean ($sec);
|
|
|
|
|
|
|
|
$url = 'index.php?sec='.$sec.'&sec2='.$sec2.'&refr='.$config["refr"].'&filter='.$filter.'&ag_group='.$id_group;
|
2007-10-03 14:41:29 +02:00
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
// Force alert execution
|
|
|
|
$flag_alert = (bool) get_parameter ('force_execution');
|
2009-03-27 13:03:41 +01:00
|
|
|
$alert_validate = (bool) get_parameter ('alert_validate');
|
|
|
|
|
|
|
|
if ($flag_alert == 1 && give_acl ($config['id_user'], $id_group, "AW")) {
|
2009-01-15 11:21:38 +01:00
|
|
|
require_once ("include/functions_alerts.php");
|
|
|
|
$id_alert = (int) get_parameter ('id_alert');
|
|
|
|
set_alerts_agent_module_force_execution ($id_alert);
|
|
|
|
}
|
2007-05-28 21:15:44 +02:00
|
|
|
|
2009-03-27 13:03:41 +01:00
|
|
|
if ($alert_validate) {
|
|
|
|
$ids = (array) get_parameter_post ("validate", array ());
|
|
|
|
$compound_ids = (array) get_parameter_post ("validate_compound", array ());
|
|
|
|
|
|
|
|
if (! empty ($ids) || ! empty ($compound_ids)) {
|
|
|
|
require_once ("include/functions_alerts.php");
|
|
|
|
$result1 = validate_alert_agent_module ($ids);
|
|
|
|
$result2 = validate_alert_compound ($compound_ids);
|
|
|
|
$result == $result1 || $result2;
|
|
|
|
|
|
|
|
print_result_message ($result,
|
|
|
|
__('Alert(s) validated'),
|
|
|
|
__('Error processing alert(s)'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
// Show alerts for specific agent
|
|
|
|
if (isset ($_GET["id_agente"])) {
|
|
|
|
$id_agent = (int) get_parameter_get ("id_agente", 0);
|
|
|
|
$url = $url.'&id_agente='.$id_agent;
|
|
|
|
|
|
|
|
$id_group = get_group_agents ($id_agent);
|
|
|
|
|
|
|
|
if (give_acl ($config["id_user"], $id_group, "AR") == 0) {
|
|
|
|
audit_db ($config["id_user"], $config["remote_addr"], "ACL Violation","Trying to access alert view");
|
|
|
|
require ("general/noaccess.php");
|
|
|
|
exit;
|
2007-05-28 21:15:44 +02:00
|
|
|
}
|
2007-10-03 14:41:29 +02:00
|
|
|
|
2009-11-30 18:28:08 +01:00
|
|
|
$alerts_simple = get_agent_alerts_simple ($id_agent, $filter, false, '', false, 'agent_module_name');
|
2009-02-11 17:55:04 +01:00
|
|
|
$alerts_combined = get_agent_alerts_compound ($id_agent, $filter);
|
2009-01-15 11:21:38 +01:00
|
|
|
$print_agent = false;
|
2009-09-26 19:05:46 +02:00
|
|
|
$inside_main = 1;
|
2009-10-21 22:25:26 +02:00
|
|
|
|
|
|
|
if ($filter == "undefined")
|
|
|
|
$filter = "all";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if ($filter == "undefined")
|
|
|
|
$filter = "all_enabled";
|
|
|
|
|
2009-04-02 Sancho Lerena <slerena@artica.es>
* pandoradb.sql: Final DB changes proposed for closing this month the DB
scheme. tagente-> new server_name field to assign server (old fields will
be removed). talert_templates has two new types (warning, critical).
tevento has "user_comment" new field. Tserver has three new fields,
server_type (so some old fields will be deleted), threads and queued_modules
this last two are for statistical options. Tusuario add language type to
override global language.
* update_manager/main.php: Minor changes for correct ACL usage. Non PM
users could see in what revision it the system, but only that.
* pandoradb_migrate_v2.x_to_v3.0.sql: Updated script for new DB changes.
* general/noaccess.php: Added footer and ending div. Page was very ugly
when showing noaccess errors, nobody see it ???.
* godmode/menu.php: A LOT of ACL fixes on several options.
* godmode/agentes/agent_manager.php: Fixed a crazy floating icon.
* godmode/agentes/manage_config_remote.php: A LOT of changes, rewriting
stuff, because was not working. This also adds a lot of ACL checks.
* godmode/agentes/massive_config.php, massive*: ACL changes.
* godmode/agentes/modificar_agente.php: Fixed ACL problems.
* godmode/agentes/module_manager_editor.php: Fixed bad module categories for
some types (data, plugin and prediction).
* godmode/alerts/alert_list.php: Fixed ACL problem.
* godmode/reporting/graph_builder.php: Added ACl restriction for
non-viewable agents for current user. Seems to be a problem with data
with more than 2 sources.
* godmode/reporting/map_builder.php: ACL checks improved.
* godmode/reporting/reporting_builder.php: ACL checks added (was missing),
some code ported from 2.1, other is new. New fields shown in list.
* include/functions.php: Fixed the annoying bug of "bad counters" in
function human_time_description_raw(). Function used,format_numeric() should
not be used never to calculate nothing, only to print formatted strings.
* include/functions_db.php: Added function user_access_to_agent() to know
if a given user has access to a given agent.
* include/functioins_report.php: get_report() should let admin to watch any
report. Fixed.
* agentes/alerts_status.php: Fixed ACL problem for view alert.
* operation/incidents/incident.php: Bad call for pagination() was giving
problems to pagination call. Somebody changes pagination() interface and
make this broken. Please if you change any interface, be sure that is compatible
with old code or make a post in the list about this !
* godmode/users/user_edit.php: Additional ACL check to do not let anybody
to watch non accesible users. Even for see the username or description.
* reporting/pchart_graph.php:Progress bar shown text in white when > 60%.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1594 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-04-02 21:16:59 +02:00
|
|
|
if (!give_acl ($config["id_user"], 0, "AR")) {
|
2009-01-05 19:41:14 +01:00
|
|
|
audit_db ($config["id_user"], $config["remote_addr"], "ACL Violation","Trying to access alert view");
|
|
|
|
require ("general/noaccess.php");
|
2009-02-11 17:55:04 +01:00
|
|
|
return;
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
2007-05-28 21:15:44 +02:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
$alerts_simple = array ();
|
|
|
|
$alerts_combined = array ();
|
2007-05-28 21:15:44 +02:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
$agents = array_keys (get_group_agents ($id_group));
|
2008-09-16 20:16:09 +02:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
foreach ($agents as $id_agent) {
|
|
|
|
$simple = get_agent_alerts_simple ($id_agent, $filter);
|
2009-02-11 17:55:04 +01:00
|
|
|
$combined = get_agent_alerts_compound ($id_agent, $filter);
|
2009-01-05 19:41:14 +01:00
|
|
|
|
|
|
|
$alerts_simple = array_merge ($alerts_simple, $simple);
|
|
|
|
$alerts_combined = array_merge ($alerts_combined, $combined);
|
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
|
|
|
}
|
2008-09-16 20:16:09 +02:00
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$print_agent = true;
|
2009-09-26 19:05:46 +02:00
|
|
|
$inside_main = 0;
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2009-09-26 19:05:46 +02:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
$tab = get_parameter_get ("tab");
|
|
|
|
if ($tab != '') {
|
|
|
|
$url = $url.'&tab='.$tab;
|
|
|
|
}
|
2007-04-19 20:50:07 +02:00
|
|
|
|
2009-09-26 19:05:46 +02:00
|
|
|
|
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
|
|
|
if ($inside_main == 1 || $tab == 'alert') {
|
2009-09-26 19:05:46 +02:00
|
|
|
echo "<h3>";
|
|
|
|
echo __('Alerts');
|
|
|
|
echo "</h3>";
|
|
|
|
|
|
|
|
} else {
|
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 (__('Alert detail'), "images/bricks.png", false, "alert_validation");
|
2009-09-26 19:05:46 +02:00
|
|
|
}
|
2009-01-15 11:21:38 +01:00
|
|
|
|
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
|
|
|
// Filter form
|
2009-01-15 11:21:38 +01:00
|
|
|
echo '<form method="post" action="'.$url.'">';
|
|
|
|
if ($print_agent) {
|
|
|
|
$table->width = '90%';
|
|
|
|
$table->data = array ();
|
|
|
|
$table->style = array ();
|
2009-01-05 19:41:14 +01:00
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$table->data[0][0] = __('Group');
|
|
|
|
$table->data[0][1] = print_select (get_user_groups (), "ag_group", $id_group,
|
|
|
|
'javascript:this.form.submit();', '', '', true);
|
|
|
|
|
2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:57:00 +01:00
|
|
|
$alert_status_filter = array();
|
2009-10-21 22:25:26 +02:00
|
|
|
$alert_status_filter['all_enabled'] = __('All (Enabled)');
|
2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:57:00 +01:00
|
|
|
$alert_status_filter['all'] = __('All');
|
|
|
|
$alert_status_filter['fired'] = __('Fired');
|
|
|
|
$alert_status_filter['notfired'] = __('Not fired');
|
|
|
|
$alert_status_filter['disabled'] = __('Disabled');
|
2009-01-15 11:21:38 +01:00
|
|
|
|
2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:57:00 +01:00
|
|
|
$table->data[0][2] = __('Status');
|
|
|
|
$table->data[0][3] = print_select ($alert_status_filter, "filter", $filter, 'javascript:this.form.submit();', '', '', true);
|
2009-01-15 11:21:38 +01:00
|
|
|
print_table ($table);
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
2009-03-04 Sancho Lerena <slerena@artica.es>
* extras/: New directory with extra contents (scripts, tools, samples)
* index.php: Add new permission check for /attachment directory. Probably
could be extended and wrapped into a function. This should be only called
once, this is the reason why is placed here and not in config_process.
* pandora_console_upgrade: Force MYSQL run, even if SQL return error (useful
for applying over a older 3.0 version for example).
* pandoradb_data.sql: Was missing some tconfig variables.
* extras/*.sql: Missing somre tconfig variables and other minor issues fixed
* extensions/update_manager/main.php: Description of update manager patch
wider. Probably needs more formatting in the future.
* extras/sample_login.php: Sample on how to implement autologin feature.
* footer.php: I hope solve the frakkin image problem.
* godmode/agents/agent_manager.php: proper ACL check notice.
* godmode/alerts/alert_list.php: Fixed notice.
* godmode/reporting/map_builder.php: Added link to wizard and item count.
* godmode/reporting/map_builder_wizard.php: Added new feature, a wizard
to populate the visual map, using agents from a combo, depending on the
map selected. Could have a lot of improvements, it's a basic start. Allow
to choose agents and image maps and space between images. Puts in a reticle
automatically adjusting at 600px width.
* godmode/setup.php: Checkbox for trap_forward was bad, fixed.
* config_process.php: Fixed version to 3.0-dev
* functions_html.php: Default of 0 in text boxes makes them unusable on
default values, funny :-)
* include/functions_reporting.php: Fixed a notice on unknown variable
on function get_group_stat().
* operation/agentes/alerts_status.php: Filter on module status is made now
with combos, like the rest of the filters in the GUI.
* operation/events/events.php: a missing div makes graph float outside the
filter box. TODO: Hidder filter makes free-width style buggy here.
* operation/reporting/reporting_viewer.php: Fixed layout issue.
* operation/visual_console/render_view.php: Added ACL check.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1510 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-03-04 18:57:00 +01:00
|
|
|
echo '</form>';
|
2009-01-05 19:41:14 +01:00
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$table->width = '90%';
|
2009-01-05 19:41:14 +01:00
|
|
|
$table->class = "databox";
|
2009-10-21 22:25:26 +02:00
|
|
|
|
2009-03-27 13:03:41 +01:00
|
|
|
$table->size = array ();
|
2009-10-21 22:25:26 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|
|
|
$table->size[0] = '20px';
|
|
|
|
$table->size[1] = '20px';
|
|
|
|
$table->size[2] = '25%';
|
|
|
|
$table->size[3] = '50%';
|
|
|
|
$table->size[4] = '25%';
|
|
|
|
$table->size[5] = '20px';
|
|
|
|
$table->size[6] = '60px';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$table->size[0] = '20px';
|
|
|
|
$table->size[1] = '25%';
|
|
|
|
$table->size[2] = '50%';
|
|
|
|
$table->size[3] = '25%';
|
|
|
|
$table->size[4] = '20px';
|
|
|
|
$table->size[5] = '60px';
|
|
|
|
}
|
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
$table->head = array ();
|
2009-10-21 22:25:26 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|
|
|
$table->head[0] = "<span title='" . __('Policy') . "'>" . __('P.') . "</span>";
|
|
|
|
$table->head[1] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
|
|
|
$table->head[2] = ''; //Placeholder for name
|
|
|
|
$table->head[3] = __('Template');
|
2009-11-25 12:00:59 +01:00
|
|
|
$table->head[4] = __('Action');
|
|
|
|
$table->head[5] = __('Last fired');
|
|
|
|
$table->head[6] = __('Status');
|
|
|
|
$table->head[7] = __('Validate');
|
2009-10-21 22:25:26 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$table->head[0] = "<span title='" . __('Force execution') . "'>" . __('F.') . "</span>";
|
|
|
|
$table->head[1] = ''; //Placeholder for name
|
|
|
|
$table->head[2] = __('Template');
|
2009-11-25 12:00:59 +01:00
|
|
|
$table->head[3] = __('Action');
|
|
|
|
$table->head[4] = __('Last fired');
|
|
|
|
$table->head[5] = __('Status');
|
|
|
|
$table->head[6] = __('Validate');
|
2009-10-21 22:25:26 +02:00
|
|
|
}
|
2009-01-05 19:41:14 +01:00
|
|
|
$table->title = __('Single alerts');
|
2009-11-04 18:11:12 +01:00
|
|
|
$table->titlestyle = "background-color:#799E48;";
|
2009-01-15 11:21:38 +01:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
if ($print_agent == 0) {
|
2009-10-21 22:25:26 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK)
|
|
|
|
$table->head[2] = __('Module');
|
|
|
|
else
|
|
|
|
$table->head[1] = __('Module');
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK)
|
|
|
|
$table->head[2] = __('Agent');
|
|
|
|
else
|
|
|
|
$table->head[1] = __('Agent');
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
2009-01-15 11:21:38 +01:00
|
|
|
$table->align = array ();
|
2009-10-21 22:25:26 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|
|
|
$table->align[6] = 'center';
|
2009-11-25 12:00:59 +01:00
|
|
|
$table->align[7] = 'center';
|
2009-10-21 22:25:26 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
$table->align[5] = 'center';
|
2009-11-25 12:00:59 +01:00
|
|
|
$table->align[6] = 'center';
|
2009-10-21 22:25:26 +02:00
|
|
|
}
|
2009-01-05 19:41:14 +01:00
|
|
|
$table->data = array ();
|
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$total = 0;
|
|
|
|
$printed = 0;
|
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;
|
2009-01-05 19:41:14 +01:00
|
|
|
foreach ($alerts_simple as $alert) {
|
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++;
|
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$total++;
|
|
|
|
if (empty ($alert) || $printed >= $config["block_size"] || $total <= $offset) {
|
2009-01-05 19:41:14 +01:00
|
|
|
continue;
|
2008-09-16 20:16:09 +02:00
|
|
|
}
|
2009-01-15 11:21:38 +01:00
|
|
|
$printed++;
|
2009-02-11 17:55:04 +01:00
|
|
|
array_push ($table->data, format_alert_row ($alert, false, $print_agent, $url));
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
|
|
|
|
2009-03-27 13:03:41 +01:00
|
|
|
echo '<form method="post" action="'.$url.'">';
|
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
if (!empty ($table->data)) {
|
2009-05-07 16:44:26 +02:00
|
|
|
pagination ($total, $url);
|
2009-01-05 19:41:14 +01:00
|
|
|
print_table ($table);
|
|
|
|
} else {
|
|
|
|
echo '<div class="nf">'.__('No simple alerts found').'</div>';
|
|
|
|
}
|
|
|
|
|
2009-02-11 17:55:04 +01:00
|
|
|
$table->title = __('Compound alerts');
|
2009-11-04 18:11:12 +01:00
|
|
|
$table->titlestyle = "background-color:#799E48;";
|
|
|
|
|
2009-10-21 22:25:26 +02:00
|
|
|
if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
|
|
|
|
$table->head[0] = '';
|
|
|
|
$table->head[1] = '';
|
|
|
|
$table->head[2] = __('Agent');
|
|
|
|
$table->head[3] = __('Description');
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
$table->head[0] = '';
|
|
|
|
$table->head[1] = __('Agent');
|
|
|
|
$table->head[2] = __('Description');
|
|
|
|
}
|
2009-01-05 19:41:14 +01:00
|
|
|
$table->data = array ();
|
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
$combined_total = 0;
|
|
|
|
$combined_printed = 0;
|
2009-01-05 19:41:14 +01:00
|
|
|
foreach ($alerts_combined as $alert) {
|
2009-01-15 11:21:38 +01:00
|
|
|
$combined_total++;
|
|
|
|
if (empty ($alert) || $combined_printed >= $config["block_size"] || $combined_total <= $offset) {
|
2009-01-05 19:41:14 +01:00
|
|
|
continue;
|
2008-02-21 16:16:54 +01:00
|
|
|
}
|
2009-01-15 11:21:38 +01:00
|
|
|
$combined_printed++;
|
2009-02-11 17:55:04 +01:00
|
|
|
array_push ($table->data, format_alert_row ($alert, true, $print_agent));
|
2009-01-05 19:41:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!empty ($table->data)) {
|
2009-01-15 11:21:38 +01:00
|
|
|
pagination ($total, $url, $offset);
|
2009-01-05 19:41:14 +01:00
|
|
|
print_table ($table);
|
|
|
|
}
|
|
|
|
|
2009-01-15 11:21:38 +01:00
|
|
|
if ($printed > 0 || $combined_total > 0) {
|
|
|
|
echo '<div class="action-buttons" style="width: '.$table->width.';">';
|
2009-01-05 19:41:14 +01:00
|
|
|
print_submit_button (__('Validate'), 'alert_validate', false, 'class="sub upd"', false);
|
|
|
|
echo '</div>';
|
|
|
|
}
|
2009-01-15 11:21:38 +01:00
|
|
|
|
2009-01-05 19:41:14 +01:00
|
|
|
echo '</form>';
|
2007-05-21 15:24:17 +02:00
|
|
|
?>
|
2009-01-15 11:21:38 +01:00
|
|
|
<link rel="stylesheet" href="include/styles/cluetip.css" type="text/css" />
|
|
|
|
<script type="text/javascript" src="include/javascript/jquery.cluetip.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready (function () {
|
|
|
|
$("a.template_details").cluetip ({
|
|
|
|
arrows: true,
|
|
|
|
attribute: 'href',
|
2009-02-11 17:55:04 +01:00
|
|
|
cluetipClass: 'default'
|
2009-01-15 11:21:38 +01:00
|
|
|
}).click (function () {
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|