pandorafms/pandora_console/godmode/alerts/configure_alert_action.php

471 lines
16 KiB
PHP
Raw Normal View History

<?php
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
// Pandora FMS - http://pandorafms.com
// ==================================================
// Copyright (c) 2005-2010 Artica Soluciones Tecnologicas
// Please see http://pandorafms.org for full contribution list
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation for version 2.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
// Load global vars
global $config;
require_once $config['homedir'].'/include/functions_alerts.php';
require_once $config['homedir'].'/include/functions_users.php';
enterprise_include_once('meta/include/functions_alerts_meta.php');
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
check_login();
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
2015-03-06 12:28:05 +01:00
enterprise_hook('open_meta_frame');
if (! check_acl($config['id_user'], 0, 'LM')) {
db_pandora_audit(
'ACL Violation',
'Trying to access Alert Management'
);
include 'general/noaccess.php';
exit;
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
}
$id = (int) get_parameter('id');
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$al_action = alerts_get_alert_action($id);
$pure = get_parameter('pure', 0);
if (defined('METACONSOLE')) {
$sec = 'advanced';
} else {
$sec = 'galertas';
}
if ($al_action !== false) {
$own_info = get_user_info($config['id_user']);
if ($own_info['is_admin'] || check_acl($config['id_user'], 0, 'PM')) {
$own_groups = array_keys(users_get_groups($config['id_user'], 'LM'));
} else {
$own_groups = array_keys(users_get_groups($config['id_user'], 'LM', false));
}
$is_in_group = in_array($al_action['id_group'], $own_groups);
// Header
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(
__('Alerts').' &raquo; '.__('Configure alert action'),
'images/gm_alerts.png',
false,
'alert_config',
true
);
}
} else {
// Header
if (defined('METACONSOLE')) {
alerts_meta_print_header();
} else {
ui_print_page_header(
__('Alerts').' &raquo; '.__('Configure alert action'),
'images/gm_alerts.png',
false,
'alert_config',
true
);
}
}
2013-05-20 Sergio Martin <sergio.martin@artica.es> * include/functions_html.php include/styles/pandora.css include/functions_visual_map.php include/functions_agents.php include/languages/util-bzr-update include/languages/util-generate-tarball include/languages/util-all include/languages/util-create-po include/languages/util-README include/languages/util-update-po include/languages/util-create-template include/languages/util-compile-mo include/constants.php operation/tree.php operation/visual_console/render_view.php operation/users/user_edit.php operation/events/events.build_table.php operation/events/events_list.php operation/events/events.php operation/agentes/status_monitor.php images/status_sets/faces/severity_warning_pixel.png images/status_sets/faces/agent_critical_ball.png images/status_sets/faces/severity_major_pixel.png images/status_sets/faces/module_warning_ball.png images/status_sets/faces/module_ok_ball.png images/status_sets/faces/agent_no_data_ball.png images/status_sets/faces/severity_minor_pixel.png images/status_sets/faces/agent_ok_ball.png images/status_sets/faces/severity_normal_pixel.png images/status_sets/faces/server_down_ball.png images/status_sets/faces/alert_not_fired_ball.png images/status_sets/faces/severity_informational_pixel.png images/status_sets/faces/agent_down_ball.png.png images/status_sets/faces/module_no_data_ball.png images/status_sets/faces/alert_fired_ball.png images/status_sets/faces/agent_warning_ball.png images/status_sets/faces/severity_maintenance_pixel.png images/status_sets/faces/agent_no_monitors_ball.png images/status_sets/faces/agent_down_ball.png images/status_sets/faces/severity_critical_pixel.png images/status_sets/faces/alert_disabled_ball.png images/status_sets/faces/module_critical_ball.png images/status_sets/faces/server_ok_ball.png images/status_sets/color_text/severity_informational.png images/status_sets/color_text/module_critical.png images/status_sets/color_text/server_ok.png images/status_sets/color_text/alert_not_fired.png images/status_sets/color_text/severity_warning_pixel.png images/status_sets/color_text/agent_critical_ball.png images/status_sets/color_text/severity_major_pixel.png images/status_sets/color_text/module_warning_ball.png images/status_sets/color_text/module_unknown.png images/status_sets/color_text/module_ok_ball.png images/status_sets/color_text/module_alertsfired.png images/status_sets/color_text/module_no_data.png images/status_sets/color_text/severity_maintenance.png images/status_sets/color_text/agent_no_data_ball.png images/status_sets/color_text/severity_minor_pixel.png images/status_sets/color_text/alert_fired.png images/status_sets/color_text/agent_ok_ball.png images/status_sets/color_text/severity_normal_pixel.png images/status_sets/color_text/agent_no_data.png images/status_sets/color_text/severity_critical.png images/status_sets/color_text/agent_no_monitors.png images/status_sets/color_text/agent_ok.png images/status_sets/color_text/server_down_ball.png images/status_sets/color_text/alert_not_fired_ball.png images/status_sets/color_text/severity_informational_pixel.png images/status_sets/color_text/server_down.png images/status_sets/color_text/alert_disabled.png images/status_sets/color_text/module_unknown_ball.png images/status_sets/color_text/severity_warning.png images/status_sets/color_text/severity_major.png images/status_sets/color_text/module_no_data_ball.png images/status_sets/color_text/agent_critical.png images/status_sets/color_text/module_warning.png images/status_sets/color_text/alert_fired_ball.png images/status_sets/color_text/agent_warning_ball.png images/status_sets/color_text/severity_maintenance_pixel.png images/status_sets/color_text/module_ok.png images/status_sets/color_text/agent_no_monitors_ball.png images/status_sets/color_text/severity_minor.png images/status_sets/color_text/agent_down_ball.png images/status_sets/color_text/severity_normal.png images/status_sets/color_text/agent_warning.png images/status_sets/color_text/agent_down.png images/status_sets/color_text/severity_critical_pixel.png images/status_sets/color_text/alert_disabled_ball.png images/status_sets/color_text/module_critical_ball.png images/status_sets/color_text/server_ok_ball.png images/status_sets/default/severity_informational.png images/status_sets/default/module_critical.png images/status_sets/default/server_ok.png images/status_sets/default/alert_not_fired.png images/status_sets/default/severity_warning_pixel.png images/status_sets/default/agent_critical_ball.png images/status_sets/default/severity_major_pixel.png images/status_sets/default/module_warning_ball.png images/status_sets/default/module_unknown.png images/status_sets/default/module_ok_ball.png images/status_sets/default/module_alertsfired.png images/status_sets/default/module_no_data.png images/status_sets/default/severity_maintenance.png images/status_sets/default/agent_no_data_ball.png images/status_sets/default/severity_minor_pixel.png images/status_sets/default/alert_fired.png images/status_sets/default/agent_ok_ball.png images/status_sets/default/severity_normal_pixel.png images/status_sets/default/agent_no_data.png images/status_sets/default/severity_critical.png images/status_sets/default/agent_no_monitors.png images/status_sets/default/agent_ok.png images/status_sets/default/server_down_ball.png images/status_sets/default/alert_not_fired_ball.png images/status_sets/default/severity_informational_pixel.png images/status_sets/default/server_down.png images/status_sets/default/alert_disabled.png images/status_sets/default/severity_warning.png images/status_sets/default/severity_major.png images/status_sets/default/module_no_data_ball.png images/status_sets/default/agent_critical.png images/status_sets/default/module_warning.png images/status_sets/default/alert_fired_ball.png images/status_sets/default/agent_warning_ball.png images/status_sets/default/severity_maintenance_pixel.png images/status_sets/default/module_ok.png images/status_sets/default/agent_no_monitors_ball.png images/status_sets/default/alert_disabled_square.png images/status_sets/default/severity_minor.png images/status_sets/default/agent_down_ball.png images/status_sets/default/severity_normal.png images/status_sets/default/agent_warning.png images/status_sets/default/agent_down.png images/status_sets/default/severity_critical_pixel.png images/status_sets/default/alert_disabled_ball.png images/status_sets/default/module_critical_ball.png images/status_sets/default/server_ok_ball.png godmode/groups/configure_group.php godmode/groups/group_list.php godmode/servers/plugin.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/users/user_list.php godmode/users/profile_list.php godmode/users/configure_user.php godmode/users/configure_profile.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/reporting/visual_console_builder.php godmode/reporting/visual_console_builder.data.php godmode/reporting/reporting_builder.php godmode/reporting/visual_console_builder.editor.php godmode/tag/tag.php godmode/category/category.php: Visual changes in icons and colors. Add visual layers for metaconsole git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8160 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-20 10:42:02 +02:00
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$name = '';
$id_command = '';
$group = 0;
// All group is 0
$action_threshold = 0;
// All group is 0
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
if ($id) {
$action = alerts_get_alert_action($id);
$name = $action['name'];
$id_command = $action['id_alert_command'];
$group = $action['id_group'];
$action_threshold = $action['action_threshold'];
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
}
// Hidden div with help hint to fill with javascript
html_print_div(
[
'id' => 'help_alert_macros_hint',
'content' => ui_print_help_icon('alert_macros', true),
'hidden' => true,
]
);
2015-06-25 10:07:53 +02:00
$table = new stdClass();
2013-04-10 Sergio Martin <sergio.martin@artica.es> * L . L pandora_console L pandora_console/DEBIAN L pandora_console/include M pandora_console/include/functions_html.php L pandora_console/include/styles D pandora_console/include/styles/tip.css M pandora_console/include/styles/menu.css L pandora_console/include/styles/images M pandora_console/include/styles/pandora.css M pandora_console/include/functions_visual_map_editor.php M pandora_console/include/functions_groups.php L pandora_console/include/ajax M pandora_console/include/ajax/events.php M pandora_console/include/ajax/module.php L pandora_console/include/swiftmailer L pandora_console/include/swiftmailer/classes L pandora_console/include/swiftmailer/classes/Swift L pandora_console/include/swiftmailer/classes/Swift/ByteStream L pandora_console/include/swiftmailer/classes/Swift/Encoder L pandora_console/include/swiftmailer/classes/Swift/Plugins L pandora_console/include/swiftmailer/classes/Swift/Plugins/Decorator L pandora_console/include/swiftmailer/classes/Swift/Plugins/Reporters L pandora_console/include/swiftmailer/classes/Swift/Plugins/Pop L pandora_console/include/swiftmailer/classes/Swift/Plugins/Loggers L pandora_console/include/swiftmailer/classes/Swift/Mime L pandora_console/include/swiftmailer/classes/Swift/Mime/HeaderEncoder L pandora_console/include/swiftmailer/classes/Swift/Mime/ContentEncoder L pandora_console/include/swiftmailer/classes/Swift/Mime/Headers L pandora_console/include/swiftmailer/classes/Swift/Transport L pandora_console/include/swiftmailer/classes/Swift/Transport/Esmtp L pandora_console/include/swiftmailer/classes/Swift/Transport/Esmtp/Auth L pandora_console/include/swiftmailer/classes/Swift/CharacterReaderFactory L pandora_console/include/swiftmailer/classes/Swift/KeyCache L pandora_console/include/swiftmailer/classes/Swift/CharacterReader L pandora_console/include/swiftmailer/classes/Swift/StreamFilters L pandora_console/include/swiftmailer/classes/Swift/Events L pandora_console/include/swiftmailer/classes/Swift/CharacterStream L pandora_console/include/swiftmailer/classes/Swift/Mailer L pandora_console/include/swiftmailer/dependency_maps M pandora_console/include/functions_ui.php M pandora_console/include/functions.php M pandora_console/include/functions_agents.php L pandora_console/include/languages L pandora_console/include/languages/datepicker M pandora_console/include/functions_graph.php M pandora_console/include/functions_events.php M pandora_console/include/functions_menu.php L pandora_console/include/graphs L pandora_console/include/graphs/pChart L pandora_console/include/graphs/pChart/palettes L pandora_console/include/graphs/pChart/fonts L pandora_console/include/graphs/pChart/cache L pandora_console/include/graphs/pChart/data M pandora_console/include/graphs/functions_flot.php L pandora_console/include/graphs/flot M pandora_console/include/graphs/functions_gd.php L pandora_console/include/graphs/images_graphs L pandora_console/include/db M pandora_console/include/functions_reporting.php L pandora_console/include/fonts L pandora_console/include/auth L pandora_console/include/javascript M pandora_console/include/javascript/openlayers.pandora.js L pandora_console/include/javascript/tiny_mce L pandora_console/include/javascript/tiny_mce/utils L pandora_console/include/javascript/tiny_mce/plugins L pandora_console/include/javascript/tiny_mce/plugins/media L pandora_console/include/javascript/tiny_mce/plugins/media/langs L pandora_console/include/javascript/tiny_mce/plugins/media/css L pandora_console/include/javascript/tiny_mce/plugins/media/js L pandora_console/include/javascript/tiny_mce/plugins/pagebreak L pandora_console/include/javascript/tiny_mce/plugins/insertdatetime L pandora_console/include/javascript/tiny_mce/plugins/noneditable L pandora_console/include/javascript/tiny_mce/plugins/inlinepopups L pandora_console/include/javascript/tiny_mce/plugins/inlinepopups/skins L pandora_console/include/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2 L pandora_console/include/javascript/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img L pandora_console/include/javascript/tiny_mce/plugins/autolink L pandora_console/include/javascript/tiny_mce/plugins/example_dependency L pandora_console/include/javascript/tiny_mce/plugins/autoresize L pandora_console/include/javascript/tiny_mce/plugins/example L pandora_console/include/javascript/tiny_mce/plugins/example/langs L pandora_console/include/javascript/tiny_mce/plugins/example/img L pandora_console/include/javascript/tiny_mce/plugins/example/js L pandora_console/include/javascript/tiny_mce/plugins/emotions L pandora_console/include/javascript/tiny_mce/plugins/emotions/langs L pandora_console/include/javascript/tiny_mce/plugins/emotions/img L pandora_console/include/javascript/tiny_mce/plugins/emotions/js L pandora_console/include/javascript/tiny_mce/plugins/iespell L pandora_console/include/javascript/tiny_mce/plugins/save L pandora_console/include/javascript/tiny_mce/plugins/lists L pandora_console/include/javascript/tiny_mce/plugins/visualblocks L pandora_console/include/javascript/tiny_mce/plugins/visualblocks/css L pandora_console/include/javascript/tiny_mce/plugins/advhr L pandora_console/include/javascript/tiny_mce/plugins/advhr/langs L pandora_console/include/javascript/tiny_mce/plugins/advhr/css L pandora_console/include/javascript/tiny_mce/plugins/advhr/js L pandora_console/include/javascript/tiny_mce/plugins/advlist L pandora_console/include/javascript/tiny_mce/plugins/tabfocus L pandora_console/include/javascript/tiny_mce/plugins/layer L pandora_console/include/javascript/tiny_mce/plugins/advimage L pandora_console/include/javascript/tiny_mce/plugins/advimage/langs L pandora_console/include/javascript/tiny_mce/plugins/advimage/css L pandora_console/include/javascript/tiny_mce/plugins/advimage/img L pandora_console/include/javascript/tiny_mce/plugins/advimage/js L pandora_console/include/javascript/tiny_mce/plugins/preview L pandora_console/include/javascript/tiny_mce/plugins/preview/jscripts L pandora_console/include/javascript/tiny_mce/plugins/directionality L pandora_console/include/javascript/tiny_mce/plugins/wordcount L pandora_console/include/javascript/tiny_mce/plugins/visualchars L pandora_console/include/javascript/tiny_mce/plugins/legacyoutput L pandora_console/include/javascript/tiny_mce/plugins/autosave L pandora_console/include/javascript/tiny_mce/plugins/table L pandora_console/include/javascript/tiny_mce/plugins/table/langs L pandora_console/include/javascript/tiny_mce/plugins/table/css L pandora_console/include/javascript/tiny_mce/plugins/table/js L pandora_console/include/javascript/tiny_mce/plugins/advlink L pandora_console/include/javascript/tiny_mce/plugins/advlink/langs L pandora_console/include/javascript/tiny_mce/plugins/advlink/css L pandora_console/include/javascript/tiny_mce/plugins/advlink/js L pandora_console/include/javascript/tiny_mce/plugins/print L pandora_console/include/javascript/tiny_mce/plugins/nonbreaking L pandora_console/include/javascript/tiny_mce/plugins/fullpage L pandora_console/include/javascript/tiny_mce/plugins/fullpage/langs L pandora_console/include/javascript/tiny_mce/plugins/fullpage/css L pandora_console/include/javascript/tiny_mce/plugins/fullpage/js L pandora_console/include/javascript/tiny_mce/plugins/style L pandora_console/include/javascript/tiny_mce/plugins/style/langs L pandora_console/include/javascript/tiny_mce/plugins/style/css L pandora_console/include/javascript/tiny_mce/plugins/style/js L pandora_console/include/javascript/tiny_mce/plugins/searchreplace L pandora_console/include/javascript/tiny_mce/plugins/searchreplace/langs L pandora_console/include/javascript/tiny_mce/plugins/searchreplace/css L pandora_console/include/javascript/tiny_mce/plugins/searchreplace/js L pandora_console/include/javascript/tiny_mce/plugins/fullscreen L pandora_console/include/javascript/tiny_mce/plugins/spellchecker L pandora_console/include/javascript/tiny_mce/plugins/spellchecker/includes L pandora_console/include/javascript/tiny_mce/plugins/spellchecker/css L pandora_console/include/javascript/tiny_mce/plugins/spellchecker/img L pandora_console/include/javascript/tiny_mce/plugins/spellchecker/classes L pandora_console/include/javascript/tiny_mce/plugins/spellchecker/classes/utils L pandora_console/include/javascript/tiny_mce/plugins/contextmenu L pandora_console/include/javascript/tiny_mce/plugins/template L pandora_console/include/javascript/tiny_mce/plugins/template/langs L pandora_console/include/javascript/tiny_mce/plugins/template/css L pandora_console/include/javascript/tiny_mce/plugins/template/js L pandora_console/include/javascript/tiny_mce/plugins/paste L pandora_console/include/javascript/tiny_mce/plugins/paste/langs L pandora_console/include/javascript/tiny_mce/plugins/paste/js L pandora_console/include/javascript/tiny_mce/plugins/bbcode L pandora_console/include/javascript/tiny_mce/plugins/xhtmlxtras L pandora_console/include/javascript/tiny_mce/plugins/xhtmlxtras/langs L pandora_console/include/javascript/tiny_mce/plugins/xhtmlxtras/css L pandora_console/include/javascript/tiny_mce/plugins/xhtmlxtras/js L pandora_console/include/javascript/tiny_mce/langs L pandora_console/include/javascript/tiny_mce/themes L pandora_console/include/javascript/tiny_mce/themes/advanced L pandora_console/include/javascript/tiny_mce/themes/advanced/langs L pandora_console/include/javascript/tiny_mce/themes/advanced/skins L pandora_console/include/javascript/tiny_mce/themes/advanced/skins/o2k7 L pandora_console/include/javascript/tiny_mce/themes/advanced/skins/o2k7/img L pandora_console/include/javascript/tiny_mce/themes/advanced/skins/default L pandora_console/include/javascript/tiny_mce/themes/advanced/skins/default/img L pandora_console/include/javascript/tiny_mce/themes/advanced/skins/highcontrast L pandora_console/include/javascript/tiny_mce/themes/advanced/img L pandora_console/include/javascript/tiny_mce/themes/advanced/js L pandora_console/include/javascript/tiny_mce/themes/simple L pandora_console/include/javascript/tiny_mce/themes/simple/langs L pandora_console/include/javascript/tiny_mce/themes/simple/skins L pandora_console/include/javascript/tiny_mce/themes/simple/skins/o2k7 L pandora_console/include/javascript/tiny_mce/themes/simple/skins/o2k7/img L pandora_console/include/javascript/tiny_mce/themes/simple/skins/default L pandora_console/include/javascript/tiny_mce/themes/simple/img M pandora_console/include/javascript/jquery.pandora.js L pandora_console/include/javascript/OpenLayers L pandora_console/include/javascript/OpenLayers/theme L pandora_console/include/javascript/OpenLayers/theme/default L pandora_console/include/javascript/OpenLayers/theme/default/img L pandora_console/include/javascript/OpenLayers/img L pandora_console/include/sounds L pandora_console/include/Image M pandora_console/include/functions_config.php L pandora_console/include/help L pandora_console/include/help/en L pandora_console/include/help/es L pandora_console/include/help/ja M pandora_console/include/functions_snmp_browser.php M pandora_console/include/constants.php M pandora_console/ChangeLog L pandora_console/attachment L pandora_console/attachment/mibs L pandora_console/attachment/plugin M pandora_console/index.php L pandora_console/extensions L pandora_console/extensions/dbmanager M pandora_console/extensions/agents_alerts.php L pandora_console/extensions/module_groups D pandora_console/extensions/module_groups/brick.png M pandora_console/extensions/net_tools.php M pandora_console/extensions/agents_modules.php L pandora_console/extensions/users M pandora_console/extensions/ssh_gateway.php L pandora_console/extensions/net_tools M pandora_console/extensions/net_tools/nettool.png M pandora_console/extensions/vnc_view.php M pandora_console/extensions/dbmanager.php L pandora_console/extensions/agents_modules M pandora_console/extensions/users_connected.php M pandora_console/extensions/module_groups.php L pandora_console/extensions/update_manager L pandora_console/extensions/update_manager/sql L pandora_console/extensions/update_manager/lang L pandora_console/extensions/update_manager/lib M pandora_console/extensions/update_manager/lib/functions.ajax.php L pandora_console/extensions/update_manager/lib/xmlrpc M pandora_console/extensions/update_manager/main.php L pandora_console/extensions/ssh_gateway M pandora_console/extensions/ssh_gateway/secure_console.png L pandora_console/operation L pandora_console/operation/incidents A pandora_console/operation/search_reports.getdata.php A pandora_console/operation/search_users.getdata.php M pandora_console/operation/tree.php L pandora_console/operation/visual_console M pandora_console/operation/visual_console/render_view.php A pandora_console/operation/search_modules.getdata.php A pandora_console/operation/search_main.php L pandora_console/operation/tree L pandora_console/operation/users M pandora_console/operation/users/webchat.php M pandora_console/operation/users/user_edit.php A pandora_console/operation/search_agents.getdata.php L pandora_console/operation/events M pandora_console/operation/events/events.build_table.php M pandora_console/operation/events/event_statistics.php M pandora_console/operation/events/events_list.php M pandora_console/operation/events/events.php A pandora_console/operation/search_graphs.getdata.php L pandora_console/operation/messages M pandora_console/operation/messages/message_edit.php M pandora_console/operation/messages/message_list.php M pandora_console/operation/search_reports.php L pandora_console/operation/reporting M pandora_console/operation/reporting/reporting_viewer.php M pandora_console/operation/reporting/graph_viewer.php M pandora_console/operation/search_users.php M pandora_console/operation/search_results.php A pandora_console/operation/search_alerts.getdata.php M pandora_console/operation/search_modules.php A pandora_console/operation/search_maps.getdata.php L pandora_console/operation/agentes D pandora_console/operation/agentes/datos_agente.php M pandora_console/operation/agentes/alerts_status.php M pandora_console/operation/agentes/estado_generalagente.php M pandora_console/operation/agentes/estado_agente.php M pandora_console/operation/agentes/networkmap.topology.php M pandora_console/operation/agentes/networkmap.groups.php M pandora_console/operation/agentes/exportdata.php M pandora_console/operation/agentes/networkmap_list.php M pandora_console/operation/agentes/agent_fields.php M pandora_console/operation/agentes/tactical.php M pandora_console/operation/agentes/group_view.php M pandora_console/operation/agentes/networkmap.php L pandora_console/operation/servers M pandora_console/operation/servers/recon_view.php M pandora_console/operation/search_agents.php M pandora_console/operation/search_graphs.php L pandora_console/operation/snmpconsole M pandora_console/operation/snmpconsole/snmp_mib_uploader.php M pandora_console/operation/snmpconsole/snmp_browser.php M pandora_console/operation/snmpconsole/snmp_view.php L pandora_console/operation/integria_incidents L pandora_console/operation/gis_maps M pandora_console/operation/gis_maps/render_view.php M pandora_console/operation/gis_maps/index.php M pandora_console/operation/search_alerts.php M pandora_console/operation/search_maps.php L pandora_console/operation/netflow M pandora_console/operation/netflow/nf_live_view.php L pandora_console/images M pandora_console/images/global.png A pandora_console/images/op_events.png A pandora_console/images/zoom_mc.png A pandora_console/images/input_zoom.png M pandora_console/images/pencil.png A pandora_console/images/menu_op_mark.png M pandora_console/images/unlinkpolicy.png A pandora_console/images/gm_setup.png M pandora_console/images/min.png M pandora_console/images/zoom.png M pandora_console/images/max.png A pandora_console/images/builder.png A pandora_console/images/policies_mc.png A pandora_console/images/op_workspace.png M pandora_console/images/user_green.png A pandora_console/images/agent.png A pandora_console/images/performance.png M pandora_console/images/ok.png A pandora_console/images/event_responses.png A pandora_console/images/agent_warning.png A pandora_console/images/module_critical.png A pandora_console/images/op_recon.png A pandora_console/images/email_mc.png A pandora_console/images/add_mc.png M pandora_console/images/go_first.png A pandora_console/images/gm_alerts.png A pandora_console/images/filter.png A pandora_console/images/header_user.png A pandora_console/images/gm_massive_operations.png M pandora_console/images/add.disabled.png A pandora_console/images/gm_netflow.png M pandora_console/images/percentile_item.disabled.png A pandora_console/images/alerts_extern.png M pandora_console/images/vnc.png A pandora_console/images/op_alerts.png A pandora_console/images/op_inventory.png M pandora_console/images/chart_curve.png L pandora_console/images/custom_logo M pandora_console/images/email_open.png A pandora_console/images/button_background.png M pandora_console/images/link2.png A pandora_console/images/control_stop_col.png M pandora_console/images/target.png M pandora_console/images/box.png M pandora_console/images/zoom_cross.png M pandora_console/images/cross.disabled.png A pandora_console/images/filter_mc.png M pandora_console/images/note.png M pandora_console/images/rss.png A pandora_console/images/blade.png A pandora_console/images/lock_mc.png A pandora_console/images/agent_critical.png M pandora_console/images/bell_pause.png M pandora_console/images/chart_curve.disabled.png L pandora_console/images/backgrounds A pandora_console/images/enterprise.png L pandora_console/images/skin L pandora_console/images/skin/skin_default L pandora_console/images/skin/skin_default/include L pandora_console/images/skin/skin_default/include/styles M pandora_console/images/skin/skin_default/include/styles/menu.css M pandora_console/images/skin/skin_default/include/styles/pandora.css L pandora_console/images/skin/skin_default/images A pandora_console/images/skin/skin_default/images/operating_system.png A pandora_console/images/skin/skin_default/images/snmp_wizard.png A pandora_console/images/skin/skin_default/images/global.png A pandora_console/images/skin/skin_default/images/op_events.png A pandora_console/images/skin/skin_default/images/bell_extern.png A pandora_console/images/skin/skin_default/images/go_next.png A pandora_console/images/skin/skin_default/images/policies.png A pandora_console/images/skin/skin_default/images/pencil.png A pandora_console/images/skin/skin_default/images/header_ready.png A pandora_console/images/skin/skin_default/images/agent_unknown.png A pandora_console/images/skin/skin_default/images/bell.png A pandora_console/images/skin/skin_default/images/policies_error.png A pandora_console/images/skin/skin_default/images/unlinkpolicy.png A pandora_console/images/skin/skin_default/images/gm_setup.png A pandora_console/images/skin/skin_default/images/policies_mc.png A pandora_console/images/skin/skin_default/images/builder.png A pandora_console/images/skin/skin_default/images/camera.png A pandora_console/images/skin/skin_default/images/go_last.png A pandora_console/images/skin/skin_default/images/gm_policies.png A pandora_console/images/skin/skin_default/images/op_workspace.png A pandora_console/images/skin/skin_default/images/box.disabled.png A pandora_console/images/skin/skin_default/images/agent.png A pandora_console/images/skin/skin_default/images/setup.png A pandora_console/images/skin/skin_default/images/sitemap_color.png A pandora_console/images/skin/skin_default/images/go_previous.png A pandora_console/images/skin/skin_default/images/performance.png A pandora_console/images/skin/skin_default/images/control_next.png A pandora_console/images/skin/skin_default/images/policies_brick.png A pandora_console/images/skin/skin_default/images/event_responses.png A pandora_console/images/skin/skin_default/images/services.png A pandora_console/images/skin/skin_default/images/email_outbox.png A pandora_console/images/skin/skin_default/images/lock.png A pandora_console/images/skin/skin_default/images/sound.png L pandora_console/images/skin/skin_default/images/os_icons A pandora_console/images/skin/skin_default/images/god1.png A pandora_console/images/skin/skin_default/images/gm_modules.png A pandora_console/images/skin/skin_default/images/plugin.png A pandora_console/images/skin/skin_default/images/god7.png A pandora_console/images/skin/skin_default/images/html.png A pandora_console/images/skin/skin_default/images/op_recon.png A pandora_console/images/skin/skin_default/images/control_play.png A pandora_console/images/skin/skin_default/images/gm_gis.png A pandora_console/images/skin/skin_default/images/header_refresh.png A pandora_console/images/skin/skin_default/images/email_mc.png A pandora_console/images/skin/skin_default/images/add_mc.png A pandora_console/images/skin/skin_default/images/op_reporting.png A pandora_console/images/skin/skin_default/images/config.disabled.png A pandora_console/images/skin/skin_default/images/list.png A pandora_console/images/skin/skin_default/images/tag_red.disabled.png A pandora_console/images/skin/skin_default/images/go_first.png A pandora_console/images/skin/skin_default/images/gm_servers.png A pandora_console/images/skin/skin_default/images/gm_alerts.png A pandora_console/images/skin/skin_default/images/linkpolicy.png A pandora_console/images/skin/skin_default/images/books.png A pandora_console/images/skin/skin_default/images/reporting32.png A pandora_console/images/skin/skin_default/images/op_gis.png A pandora_console/images/skin/skin_default/images/version.png A pandora_console/images/skin/skin_default/images/policies_error_db.png A pandora_console/images/skin/skin_default/images/filter.png A pandora_console/images/skin/skin_default/images/chart_bar.png A pandora_console/images/skin/skin_default/images/grid.png A pandora_console/images/skin/skin_default/images/header_user.png A pandora_console/images/skin/skin_default/images/bell_error.png A pandora_console/images/skin/skin_default/images/normal_screen.png A pandora_console/images/skin/skin_default/images/brick.png A pandora_console/images/skin/skin_default/images/gm_massive_operations.png A pandora_console/images/skin/skin_default/images/policies_ok.png A pandora_console/images/skin/skin_default/images/gm_netflow.png A pandora_console/images/skin/skin_default/images/advanced.png A pandora_console/images/skin/skin_default/images/csv_mc.png A pandora_console/images/skin/skin_default/images/op_snmp.png A pandora_console/images/skin/skin_default/images/save_mc.png A pandora_console/images/skin/skin_default/images/snmp.png A pandora_console/images/skin/skin_default/images/load.png A pandora_console/images/skin/skin_default/images/alerts_extern.png A pandora_console/images/skin/skin_default/images/header_logout.png A pandora_console/images/skin/skin_default/images/vnc.png A pandora_console/images/skin/skin_default/images/op_alerts.png A pandora_console/images/skin/skin_default/images/grid.disabled.png A pandora_console/images/skin/skin_default/images/chart_bar.disabled.png A pandora_console/images/skin/skin_default/images/op_inventory.png A pandora_console/images/skin/skin_default/images/photo.disabled.png A pandora_console/images/skin/skin_default/images/disk.disabled.png A pandora_console/images/skin/skin_default/images/chart_curve.png A pandora_console/images/skin/skin_default/images/recon.png A pandora_console/images/skin/skin_default/images/camera_mc.png A pandora_console/images/skin/skin_default/images/gm_db.png A pandora_console/images/skin/skin_default/images/reporting.png A pandora_console/images/skin/skin_default/images/custom_field.png A pandora_console/images/skin/skin_default/images/control_pause.png A pandora_console/images/skin/skin_default/images/key.png L pandora_console/images/skin/skin_default/images/mimetypes A pandora_console/images/skin/skin_default/images/wmi.png A pandora_console/images/skin/skin_default/images/link.png A pandora_console/images/skin/skin_default/images/cross.disabled.png A pandora_console/images/skin/skin_default/images/header_email.png A pandora_console/images/skin/skin_default/images/control_play_col.png A pandora_console/images/skin/skin_default/images/filter_mc.png A pandora_console/images/skin/skin_default/images/blade.png A pandora_console/images/skin/skin_default/images/lock_mc.png A pandora_console/images/skin/skin_default/images/bell_pause.png A pandora_console/images/skin/skin_default/images/chart_curve.disabled.png A pandora_console/images/skin/skin_default/images/header_down.png A pandora_console/images/skin/skin_default/images/enterprise.png A pandora_console/images/skin/skin_default/images/profiles.png A pandora_console/images/skin/skin_default/images/gm_users.png A pandora_console/images/skin/skin_default/images/email_inbox.png A pandora_console/images/skin/skin_default/images/header_chat.png A pandora_console/images/skin/skin_default/images/wand_sla.png A pandora_console/images/skin/skin_default/images/collection.png A pandora_console/images/skin/skin_default/images/god2.png A pandora_console/images/skin/skin_default/images/god4.png A pandora_console/images/skin/skin_default/images/inventory.png A pandora_console/images/skin/skin_default/images/header_user_admin.png A pandora_console/images/skin/skin_default/images/god6.png A pandora_console/images/skin/skin_default/images/header_help.png A pandora_console/images/skin/skin_default/images/gm_log.png A pandora_console/images/skin/skin_default/images/tag.png A pandora_console/images/skin/skin_default/images/control_prev.png A pandora_console/images/skin/skin_default/images/agent_mc.png A pandora_console/images/skin/skin_default/images/delete_mc.png A pandora_console/images/skin/skin_default/images/pen.png A pandora_console/images/skin/skin_default/images/plus.png L pandora_console/images/skin/skin_default/images/groups_small A pandora_console/images/skin/skin_default/images/module.png A pandora_console/images/skin/skin_default/images/gm_events.png A pandora_console/images/skin/skin_default/images/photo.png A pandora_console/images/skin/skin_default/images/csv.png A pandora_console/images/skin/skin_default/images/new_message.png A pandora_console/images/skin/skin_default/images/templates.png A pandora_console/images/skin/skin_default/images/book_edit.png A pandora_console/images/skin/skin_default/images/events_list.png A pandora_console/images/skin/skin_default/images/policies_cog.png A pandora_console/images/skin/skin_default/images/operation.png A pandora_console/images/skin/skin_default/images/xml.png A pandora_console/images/skin/skin_default/images/full_screen.png A pandora_console/images/skin/skin_default/images/module_group.png A pandora_console/images/skin/skin_default/images/policies_not_brick.png A pandora_console/images/skin/skin_default/images/heart.png A pandora_console/images/skin/skin_default/images/gm_monitoring.png A pandora_console/images/skin/skin_default/images/custom_columns.png A pandora_console/images/skin/skin_default/images/control_pause_col.png A pandora_console/images/skin/skin_default/images/custom_field_col.png A pandora_console/images/skin/skin_default/images/header_events.png A pandora_console/images/skin/skin_default/images/op_netflow.png A pandora_console/images/skin/skin_default/images/header_warning.png A pandora_console/images/skin/skin_default/images/plugin_mc.png A pandora_console/images/skin/skin_default/images/sla.png M pandora_console/images/skin/skin_default/images/binary.png A pandora_console/images/skin/skin_default/images/op_network.png A pandora_console/images/skin/skin_default/images/binary.disabled.png M pandora_console/images/profiles.png A pandora_console/images/collection.png A pandora_console/images/inventory.png A pandora_console/images/gm_log.png M pandora_console/images/images.png M pandora_console/images/cog.png A pandora_console/images/tag.png A pandora_console/images/mc_plugin.png A pandora_console/images/enterprise_icon.png M pandora_console/images/photo.png M pandora_console/images/refresh.png A pandora_console/images/events_list.png A pandora_console/images/operation.png A pandora_console/images/full_screen.png A pandora_console/images/chart_curve_overview.disabled.png M pandora_console/images/heart.png A pandora_console/images/input_add.png A pandora_console/images/gm_monitoring.png M pandora_console/images/percentile_item.png A pandora_console/images/module_warning.png A pandora_console/images/custom_field_col.png A pandora_console/images/plugin_mc.png M pandora_console/images/snmp_wizard.png M pandora_console/images/link_break.png M pandora_console/images/go_next.png M pandora_console/images/policies.png M pandora_console/images/bell.png M pandora_console/images/policies_error.png A pandora_console/images/agent_ok.png M pandora_console/images/go_last.png A pandora_console/images/services.png A pandora_console/images/sound.png L pandora_console/images/os_icons A pandora_console/images/tab_green_bg.png M pandora_console/images/plugin.png A pandora_console/images/header_refresh.png A pandora_console/images/op_reporting.png A pandora_console/images/list.png A pandora_console/images/gm_servers.png M pandora_console/images/books.png A pandora_console/images/reporting32.png A pandora_console/images/input_delete.png M pandora_console/images/div.png A pandora_console/images/input_go.png M pandora_console/images/policies_error_db.png A pandora_console/images/normal_screen.png A pandora_console/images/dashboard.png A pandora_console/images/donut.png M pandora_console/images/network.disabled.png M pandora_console/images/policies_ok.png A pandora_console/images/submenu_tree_first.png M pandora_console/images/lightning_go.png A pandora_console/images/csv_mc.png M pandora_console/images/snmp.png A pandora_console/images/recon_icon.png M pandora_console/images/default_list.png A pandora_console/images/database_history.png M pandora_console/images/chart_bar.disabled.png A pandora_console/images/help_icon.png A pandora_console/images/input_update.png A pandora_console/images/agent_notinit.png M pandora_console/images/control_pause.png A pandora_console/images/key.png L pandora_console/images/mimetypes M pandora_console/images/link.png A pandora_console/images/header_email.png M pandora_console/images/delete.png L pandora_console/images/networkmap A pandora_console/images/input_wand.png A pandora_console/images/input_tick.png M pandora_console/images/bricks.png A pandora_console/images/write_paper.png M pandora_console/images/world.png M pandora_console/images/wand_sla.png M pandora_console/images/wand.png M pandora_console/images/disk.png M pandora_console/images/group.png A pandora_console/images/header_user_admin.png A pandora_console/images/header_help.png A pandora_console/images/category.png M pandora_console/images/house.png A pandora_console/images/module.png A pandora_console/images/export25.png A pandora_console/images/xml.png A pandora_console/images/op_netflow.png L pandora_console/images/console L pandora_console/images/console/background L pandora_console/images/console/icons L pandora_console/images/console/icons/old_icons M pandora_console/images/cross.png A pandora_console/images/operating_system.png M pandora_console/images/application_edit.png M pandora_console/images/camera.png M pandora_console/images/sub.png A pandora_console/images/gm_policies.png A pandora_console/images/box.disabled.png M pandora_console/images/setup.png M pandora_console/images/go_previous.png A pandora_console/images/module_mc.png M pandora_console/images/tag_red.png A pandora_console/images/submenu_tree_middle.png A pandora_console/images/visual_console.png A pandora_console/images/email_outbox.png M pandora_console/images/attachment.png A pandora_console/images/module_notinit.png L pandora_console/images/gis_map L pandora_console/images/gis_map/icons A pandora_console/images/submenu2_tree_middle.png A pandora_console/images/html.png M pandora_console/images/control_play.png M pandora_console/images/tag_red.disabled.png M pandora_console/images/lightbulb.png A pandora_console/images/version.png M pandora_console/images/bell_error.png M pandora_console/images/brick.png M pandora_console/images/tip.png A pandora_console/images/op_snmp.png M pandora_console/images/pandora_header_logo_enterprise.png A pandora_console/images/load.png M pandora_console/images/chart_curve_threshold.png A pandora_console/images/chart.png M pandora_console/images/copy.png A pandora_console/images/op_monitoring.png M pandora_console/images/mul.png A pandora_console/images/menu_gm_mark.png A pandora_console/images/menu_lk_mark.png A pandora_console/images/gm_users.png A pandora_console/images/email_inbox.png A pandora_console/images/header_chat.png M pandora_console/images/network.png M pandora_console/images/extensions.png A pandora_console/images/submenu2_tree_last.png M pandora_console/images/database.png A pandora_console/images/delete_mc.png A pandora_console/images/input_config.png L pandora_console/images/groups_small A pandora_console/images/server_export_mc.png A pandora_console/images/input_cog.png M pandora_console/images/add.png A pandora_console/images/csv.png A pandora_console/images/module_group.png D pandora_console/images/lupa.png A pandora_console/images/control_pause_col.png A pandora_console/images/custom_columns.png A pandora_console/images/header_warning.png D pandora_console/images/user.png M pandora_console/images/binary.png A pandora_console/images/op_network.png A pandora_console/images/home.png A pandora_console/images/bell_extern.png A pandora_console/images/tab_grey_bg.png A pandora_console/images/header_blackout.png A pandora_console/images/header_ready.png A pandora_console/images/agent_unknown.png M pandora_console/images/config.png M pandora_console/images/pdf.png A pandora_console/images/control_next.png A pandora_console/images/submenu_tree_last.png M pandora_console/images/comments.png A pandora_console/images/control_stop.png M pandora_console/images/email.png M pandora_console/images/lock.png M pandora_console/images/error.png A pandora_console/images/gm_modules.png A pandora_console/images/gm_gis.png M pandora_console/images/data.png M pandora_console/images/config.disabled.png M pandora_console/images/linkpolicy.png A pandora_console/images/op_gis.png M pandora_console/images/clean.png M pandora_console/images/chart_bar.png D pandora_console/images/lupa_15x15.png L pandora_console/images/help A pandora_console/images/advanced.png A pandora_console/images/save_mc.png A pandora_console/images/module_ok.png A pandora_console/images/header_logout.png M pandora_console/images/user_suit.png M pandora_console/images/file.disabled.png L pandora_console/images/status_sets L pandora_console/images/status_sets/faces L pandora_console/images/status_sets/color_text L pandora_console/images/status_sets/default M pandora_console/images/photo.disabled.png M pandora_console/images/recon.png M pandora_console/images/lightbulb_off.png A pandora_console/images/camera_mc.png A pandora_console/images/gm_db.png M pandora_console/images/attachment_del.png A pandora_console/images/custom_field.png M pandora_console/images/eye.png M pandora_console/images/wmi.png M pandora_console/images/camera.disabled.png A pandora_console/images/control_play_col.png M pandora_console/images/sum.png M pandora_console/images/pandora_header_logo.png M pandora_console/images/avg.png A pandora_console/images/header_down.png M pandora_console/images/zoom_cross.disabled.png A pandora_console/images/module_unknown.png M pandora_console/images/server_export.png A pandora_console/images/bin.png A pandora_console/images/input_cross.png A pandora_console/images/control_prev.png A pandora_console/images/agent_mc.png A pandora_console/images/pen.png A pandora_console/images/plus.png D pandora_console/images/log-out.png A pandora_console/images/gm_events.png A pandora_console/images/new_message.png A pandora_console/images/templates.png A pandora_console/images/sla.png M pandora_console/images/binary.disabled.png M pandora_console/images/chart_curve_overview.png A pandora_console/images/mg_modules.png L pandora_console/extras L pandora_console/mobile L pandora_console/mobile/operation L pandora_console/mobile/include L pandora_console/mobile/include/style L pandora_console/mobile/images L pandora_console/general L pandora_console/general/license M pandora_console/general/login_page.php M pandora_console/general/logon_ok.php M pandora_console/general/main_menu.php L pandora_console/general/ui M pandora_console/general/header.php L pandora_console/godmode L pandora_console/godmode/groups M pandora_console/godmode/groups/modu_group_list.php M pandora_console/godmode/groups/configure_group.php M pandora_console/godmode/groups/configure_modu_group.php M pandora_console/godmode/groups/group_list.php M pandora_console/godmode/admin_access_logs.php M pandora_console/godmode/extensions.php L pandora_console/godmode/db M pandora_console/godmode/db/db_main.php M pandora_console/godmode/db/db_audit.php M pandora_console/godmode/db/db_sanity.php M pandora_console/godmode/db/db_refine.php M pandora_console/godmode/db/db_info.php M pandora_console/godmode/db/db_event.php M pandora_console/godmode/db/db_purge.php L pandora_console/godmode/agentes M pandora_console/godmode/agentes/fields_manager.php M pandora_console/godmode/agentes/planned_downtime.list.php M pandora_console/godmode/agentes/planned_downtime.editor.php M pandora_console/godmode/agentes/modificar_agente.php M pandora_console/godmode/agentes/configurar_agente.php M pandora_console/godmode/agentes/configure_field.php M pandora_console/godmode/agentes/agent_manager.php L pandora_console/godmode/servers M pandora_console/godmode/servers/recon_script.php M pandora_console/godmode/servers/plugin.php A pandora_console/godmode/servers/servers.build_table.php M pandora_console/godmode/servers/manage_recontask.php M pandora_console/godmode/servers/modificar_server.php M pandora_console/godmode/servers/manage_recontask_form.php L pandora_console/godmode/alerts M pandora_console/godmode/alerts/alert_list.php M pandora_console/godmode/alerts/configure_alert_template.php M pandora_console/godmode/alerts/alert_templates.php M pandora_console/godmode/alerts/configure_alert_action.php M pandora_console/godmode/alerts/configure_alert_command.php M pandora_console/godmode/alerts/alert_actions.php M pandora_console/godmode/alerts/alert_special_days.php M pandora_console/godmode/alerts/alert_commands.php M pandora_console/godmode/alerts/configure_alert_special_days.php L pandora_console/godmode/snmpconsole M pandora_console/godmode/snmpconsole/snmp_trap_generator.php M pandora_console/godmode/snmpconsole/snmp_alert.php M pandora_console/godmode/snmpconsole/snmp_filters.php L pandora_console/godmode/setup M pandora_console/godmode/setup/setup_general.php M pandora_console/godmode/setup/links.php M pandora_console/godmode/setup/setup.php M pandora_console/godmode/setup/os.php L pandora_console/godmode/users M pandora_console/godmode/users/user_list.php M pandora_console/godmode/users/profile_list.php M pandora_console/godmode/users/configure_user.php M pandora_console/godmode/users/configure_profile.php L pandora_console/godmode/gis_maps M pandora_console/godmode/gis_maps/configure_gis_map.php M pandora_console/godmode/gis_maps/index.php L pandora_console/godmode/events M pandora_console/godmode/events/event_edit_filter.php M pandora_console/godmode/events/events.php L pandora_console/godmode/massive M pandora_console/godmode/massive/massive_copy_modules.php M pandora_console/godmode/massive/massive_operations.php L pandora_console/godmode/modules M pandora_console/godmode/modules/manage_network_templates.php M pandora_console/godmode/modules/module_list.php L pandora_console/godmode/reporting M pandora_console/godmode/reporting/visual_console_builder.php M pandora_console/godmode/reporting/graph_builder.php M pandora_console/godmode/reporting/reporting_builder.php M pandora_console/godmode/reporting/map_builder.php M pandora_console/godmode/reporting/graphs.php L pandora_console/godmode/tag M pandora_console/godmode/tag/tag.php M pandora_console/godmode/tag/edit_tag.php L pandora_console/godmode/category M pandora_console/godmode/category/category.php M pandora_console/godmode/category/edit_category.php L pandora_console/godmode/netflow M pandora_console/godmode/netflow/nf_edit_form.php M pandora_console/godmode/netflow/nf_item_list.php M pandora_console/godmode/netflow/nf_edit.php: Changing whole visual style including icons and css git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7951 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-04-10 09:57:54 +02:00
$table->id = 'table_macros';
2015-06-16 16:09:50 +02:00
$table->width = '100%';
$table->class = 'databox filters';
if (defined('METACONSOLE')) {
if ($id) {
$table->head[0] = __('Update Action');
} else {
$table->head[0] = __('Create Action');
}
$table->head_colspan[0] = 4;
$table->headstyle[0] = 'text-align: center';
2015-03-06 12:28:05 +01:00
}
$table->style = [];
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$table->style[0] = 'font-weight: bold';
$table->size = [];
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$table->size[0] = '20%';
$table->data = [];
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$table->data[0][0] = __('Name');
$table->data[0][1] = html_print_input_text('name', $name, '', 35, 255, true);
if (io_safe_output($name) == 'Monitoring Event') {
$table->data[0][1] .= '&nbsp;&nbsp;'.ui_print_help_tip(
__('This action may stop working, if you change its name.'),
true,
'images/header_yellow.png'
);
}
$table->colspan[0][1] = 2;
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
$table->data[1][0] = __('Group');
$own_info = get_user_info($config['id_user']);
2019-12-05 16:43:26 +01:00
$table->data[1][1] = html_print_select_groups(false, 'LW', true, 'group', $group, '', '', 0, true);
$table->colspan[1][1] = 2;
$table->data[2][0] = __('Command');
2018-10-23 10:53:09 +02:00
$commands_sql = db_get_all_rows_filter(
'talert_commands',
['id_group' => array_keys(users_get_groups(false, 'LW'))],
[
'id',
'name',
],
'AND',
false,
true
2018-10-23 10:53:09 +02:00
);
$table->data[2][1] = html_print_select_from_sql(
$commands_sql,
'id_command',
$id_command,
'',
__('None'),
0,
true
2018-10-23 10:53:09 +02:00
);
$table->data[2][1] .= ' ';
if (check_acl($config['id_user'], 0, 'PM')) {
$table->data[2][1] .= __('Create Command');
2019-12-05 16:43:26 +01:00
$table->data[2][1] .= '<a href="index.php?sec='.$sec.'&sec2=godmode/alerts/configure_alert_command&pure='.$pure.'">';
$table->data[2][1] .= html_print_image('images/add.png', true);
$table->data[2][1] .= '</a>';
2011-02-16 Juan Manuel Ramon <juanmanuel.ramon@artica.es> * include/functions_alerts.php: New function get_alert_actions_filter. * operation/agentes/estado_agente.php: If user is not admin or doesn't have 'PM' privileges then don't display alerts of others groups. * godmode/alerts/configure_alert_template.php: If user is not admin or doesn't have 'PM' privileges then don't display templates of others groups. * godmode/alerts/configure_alert_action.php: Don't show "create command" option in this view if current user is not administrator or or doesn't have 'PM' privileges. * godmode/alerts/alert_list.builder.php: If user is not admin or doesn't have 'PM' privileges then don't display alerts of others groups. Fixes: #3182557, 3182566 * include/functions_visual_map.php: Added a parameter in function get_user_layouts for return All group or not. * godmode/reporting/visual_console_builder.data.php: In map creation only display "All" group if user has 'PM' privileges or is administrator. * godmode/reporting/map_builder.php: If user is not admin or doesn't have 'PM' privileges then don't display maps of others groups. * operation/visual_console/index.php: If user is not admin or doesn't have 'PM' privileges then don't display maps of others groups. Fixes: #3175721, 3175730 * godmode/users/configure_user.php: Only are shown "pandora management" and "database management" profiles if current user is not administrator or or doesn't have 'PM' privileges. * godmode/alerts/alert_list.list.php: Fixed query for alert search. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3887 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2011-02-16 19:39:28 +01:00
}
$table->data[2][1] .= '<div id="command_description" style=""></div>';
$table->colspan[2][1] = 2;
$table->data[3][0] = __('Threshold');
$table->data[3][1] = html_print_extended_select_for_time(
'action_threshold',
$action_threshold,
'',
'',
'',
false,
true,
false,
true,
'',
false,
false,
'',
false,
true
);
$table->colspan[3][1] = 2;
$table->data[4][0] = '';
$table->data[4][1] = __('Firing');
$table->data[4][2] = __('Recovery');
$table->cellstyle[4][1] = 'font-weight: bold;';
$table->cellstyle[4][2] = 'font-weight: bold;';
$table->data[5][0] = __('Command preview');
$table->data[5][1] = html_print_textarea(
'command_preview',
5,
30,
'',
'disabled="disabled"',
true
);
$table->data[5][2] = html_print_textarea(
'command_recovery_preview',
5,
30,
'',
'disabled="disabled"',
true
);
for ($i = 1; $i <= $config['max_macro_fields']; $i++) {
$table->data['field'.$i][0] = html_print_image(
'images/spinner.gif',
true
);
$table->data['field'.$i][1] = html_print_image(
'images/spinner.gif',
true
);
$table->data['field'.$i][2] = html_print_image(
'images/spinner.gif',
true
);
// Store the value in a hidden to keep it on first execution
$table->data['field'.$i][1] .= html_print_input_hidden(
'field'.$i.'_value',
!empty($action['field'.$i]) ? $action['field'.$i] : '',
true
);
$table->data['field'.$i][2] .= html_print_input_hidden(
'field'.$i.'_recovery_value',
!empty($action['field'.$i.'_recovery']) ? $action['field'.$i.'_recovery'] : '',
true
);
}
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
echo '<form method="post" action="'.'index.php?sec='.$sec.'&'.'sec2=godmode/alerts/alert_actions&'.'pure='.$pure.'">';
$table_html = html_print_table($table, true);
//
// Hack to hook the bubble dialog of clippy in any place, the intro.js
// fails with new elements in the dom from javascript code
// ----------------------------------------------------------------------
/*
$table_html = str_replace(
"</table>",
"</div>",
$table_html);
$table_html = str_replace(
'<tr id="table_macros-field1" style="" class="datos2">',
"</tbody></table>
<div id=\"clippy_fields\">
<table>
<tbody>
<tr id=\"table_macros-field1\" class=\"datos\">",
$table_html);
*/
//
echo $table_html;
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
echo '<div class="action-buttons" style="width: '.$table->width.'">';
if ($id) {
html_print_input_hidden('id', $id);
if ($al_action['id_group'] == 0) {
// then must have "PM" access privileges
if (check_acl($config['id_user'], 0, 'PM')) {
html_print_input_hidden('update_action', 1);
html_print_submit_button(__('Update'), 'create', false, 'class="sub upd"');
}
} else {
html_print_input_hidden('update_action', 1);
html_print_submit_button(__('Update'), 'create', false, 'class="sub upd"');
}
} else {
html_print_input_hidden('create_action', 1);
html_print_submit_button(__('Create'), 'create', false, 'class="sub wand"');
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
}
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
echo '</div>';
echo '</form>';
2013-05-20 Sergio Martin <sergio.martin@artica.es> * include/functions_html.php include/styles/pandora.css include/functions_visual_map.php include/functions_agents.php include/languages/util-bzr-update include/languages/util-generate-tarball include/languages/util-all include/languages/util-create-po include/languages/util-README include/languages/util-update-po include/languages/util-create-template include/languages/util-compile-mo include/constants.php operation/tree.php operation/visual_console/render_view.php operation/users/user_edit.php operation/events/events.build_table.php operation/events/events_list.php operation/events/events.php operation/agentes/status_monitor.php images/status_sets/faces/severity_warning_pixel.png images/status_sets/faces/agent_critical_ball.png images/status_sets/faces/severity_major_pixel.png images/status_sets/faces/module_warning_ball.png images/status_sets/faces/module_ok_ball.png images/status_sets/faces/agent_no_data_ball.png images/status_sets/faces/severity_minor_pixel.png images/status_sets/faces/agent_ok_ball.png images/status_sets/faces/severity_normal_pixel.png images/status_sets/faces/server_down_ball.png images/status_sets/faces/alert_not_fired_ball.png images/status_sets/faces/severity_informational_pixel.png images/status_sets/faces/agent_down_ball.png.png images/status_sets/faces/module_no_data_ball.png images/status_sets/faces/alert_fired_ball.png images/status_sets/faces/agent_warning_ball.png images/status_sets/faces/severity_maintenance_pixel.png images/status_sets/faces/agent_no_monitors_ball.png images/status_sets/faces/agent_down_ball.png images/status_sets/faces/severity_critical_pixel.png images/status_sets/faces/alert_disabled_ball.png images/status_sets/faces/module_critical_ball.png images/status_sets/faces/server_ok_ball.png images/status_sets/color_text/severity_informational.png images/status_sets/color_text/module_critical.png images/status_sets/color_text/server_ok.png images/status_sets/color_text/alert_not_fired.png images/status_sets/color_text/severity_warning_pixel.png images/status_sets/color_text/agent_critical_ball.png images/status_sets/color_text/severity_major_pixel.png images/status_sets/color_text/module_warning_ball.png images/status_sets/color_text/module_unknown.png images/status_sets/color_text/module_ok_ball.png images/status_sets/color_text/module_alertsfired.png images/status_sets/color_text/module_no_data.png images/status_sets/color_text/severity_maintenance.png images/status_sets/color_text/agent_no_data_ball.png images/status_sets/color_text/severity_minor_pixel.png images/status_sets/color_text/alert_fired.png images/status_sets/color_text/agent_ok_ball.png images/status_sets/color_text/severity_normal_pixel.png images/status_sets/color_text/agent_no_data.png images/status_sets/color_text/severity_critical.png images/status_sets/color_text/agent_no_monitors.png images/status_sets/color_text/agent_ok.png images/status_sets/color_text/server_down_ball.png images/status_sets/color_text/alert_not_fired_ball.png images/status_sets/color_text/severity_informational_pixel.png images/status_sets/color_text/server_down.png images/status_sets/color_text/alert_disabled.png images/status_sets/color_text/module_unknown_ball.png images/status_sets/color_text/severity_warning.png images/status_sets/color_text/severity_major.png images/status_sets/color_text/module_no_data_ball.png images/status_sets/color_text/agent_critical.png images/status_sets/color_text/module_warning.png images/status_sets/color_text/alert_fired_ball.png images/status_sets/color_text/agent_warning_ball.png images/status_sets/color_text/severity_maintenance_pixel.png images/status_sets/color_text/module_ok.png images/status_sets/color_text/agent_no_monitors_ball.png images/status_sets/color_text/severity_minor.png images/status_sets/color_text/agent_down_ball.png images/status_sets/color_text/severity_normal.png images/status_sets/color_text/agent_warning.png images/status_sets/color_text/agent_down.png images/status_sets/color_text/severity_critical_pixel.png images/status_sets/color_text/alert_disabled_ball.png images/status_sets/color_text/module_critical_ball.png images/status_sets/color_text/server_ok_ball.png images/status_sets/default/severity_informational.png images/status_sets/default/module_critical.png images/status_sets/default/server_ok.png images/status_sets/default/alert_not_fired.png images/status_sets/default/severity_warning_pixel.png images/status_sets/default/agent_critical_ball.png images/status_sets/default/severity_major_pixel.png images/status_sets/default/module_warning_ball.png images/status_sets/default/module_unknown.png images/status_sets/default/module_ok_ball.png images/status_sets/default/module_alertsfired.png images/status_sets/default/module_no_data.png images/status_sets/default/severity_maintenance.png images/status_sets/default/agent_no_data_ball.png images/status_sets/default/severity_minor_pixel.png images/status_sets/default/alert_fired.png images/status_sets/default/agent_ok_ball.png images/status_sets/default/severity_normal_pixel.png images/status_sets/default/agent_no_data.png images/status_sets/default/severity_critical.png images/status_sets/default/agent_no_monitors.png images/status_sets/default/agent_ok.png images/status_sets/default/server_down_ball.png images/status_sets/default/alert_not_fired_ball.png images/status_sets/default/severity_informational_pixel.png images/status_sets/default/server_down.png images/status_sets/default/alert_disabled.png images/status_sets/default/severity_warning.png images/status_sets/default/severity_major.png images/status_sets/default/module_no_data_ball.png images/status_sets/default/agent_critical.png images/status_sets/default/module_warning.png images/status_sets/default/alert_fired_ball.png images/status_sets/default/agent_warning_ball.png images/status_sets/default/severity_maintenance_pixel.png images/status_sets/default/module_ok.png images/status_sets/default/agent_no_monitors_ball.png images/status_sets/default/alert_disabled_square.png images/status_sets/default/severity_minor.png images/status_sets/default/agent_down_ball.png images/status_sets/default/severity_normal.png images/status_sets/default/agent_warning.png images/status_sets/default/agent_down.png images/status_sets/default/severity_critical_pixel.png images/status_sets/default/alert_disabled_ball.png images/status_sets/default/module_critical_ball.png images/status_sets/default/server_ok_ball.png godmode/groups/configure_group.php godmode/groups/group_list.php godmode/servers/plugin.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/users/user_list.php godmode/users/profile_list.php godmode/users/configure_user.php godmode/users/configure_profile.php godmode/modules/manage_network_components_form_common.php godmode/modules/manage_network_components.php godmode/modules/manage_nc_groups.php godmode/reporting/visual_console_builder.php godmode/reporting/visual_console_builder.data.php godmode/reporting/reporting_builder.php godmode/reporting/visual_console_builder.editor.php godmode/tag/tag.php godmode/category/category.php: Visual changes in icons and colors. Add visual layers for metaconsole git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8160 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2013-05-20 10:42:02 +02:00
enterprise_hook('close_meta_frame');
ui_require_javascript_file('pandora_alerts');
ui_require_javascript_file('tiny_mce', 'include/javascript/tiny_mce/');
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
?>
<script type="text/javascript">
$(document).ready (function () {
var original_command;
var origicommand_descriptionnal_command;
if (<?php echo (int) $id_command; ?>) {
original_command = "<?php echo addslashes(io_safe_output(alerts_get_alert_command_command($id_command))); ?>";
render_command_preview(original_command);
command_description = "<?php echo str_replace("\r\n", '<br>', addslashes(io_safe_output(alerts_get_alert_command_description($id_command)))); ?>";
render_command_description(command_description);
}
$("#id_command").change (function () {
values = Array ();
values.push({
name: "page",
value: "godmode/alerts/alert_commands"});
values.push({
name: "get_alert_command",
value: "1"});
values.push({
name: "id",
value: this.value});
jQuery.post (<?php echo "'".ui_get_full_url('ajax.php', false, false, false)."'"; ?>,
values,
function (data, status) {
original_command = data["command"];
render_command_preview (original_command);
command_description = data["description"];
2019-12-05 16:43:26 +01:00
if (command_description != undefined) {
render_command_description(command_description);
} else {
render_command_description('');
}
var max_fields = parseInt('<?php echo $config['max_macro_fields']; ?>');
// Change the selected group
$("#group option").each(function(index, value) {
var current_group = $(value).val();
});
if (data.id_group != 0 && $("#group").val() != data.id_group) {
$("#group").val(0);
}
for (i = 1; i <= max_fields; i++) {
var old_value = '';
var old_recovery_value = '';
var field_row = data["fields_rows"][i];
var $table_macros_field = $('#table_macros-field' + i);
// If the row is empty, hide it
if (field_row == '') {
$table_macros_field.hide();
continue;
}
old_value = '';
old_recovery_value = '';
// Only keep the value if is provided from hidden (first time)
if (($("[name=field" + i + "_value]").attr('id'))
== ("hidden-field" + i + "_value")) {
old_value = $("[name=field" + i + "_value]").val();
}
if (($("[name=field" + i + "_recovery_value]").attr('id'))
== ("hidden-field" + i + "_recovery_value")) {
old_recovery_value =
$("[name=field" + i + "_recovery_value]").val();
}
// Replace the old column with the new
$table_macros_field.replaceWith(field_row);
if (old_value != '' || old_recovery_value != '') {
var inputType = $("[name=field" + i + "_value]").attr('type')
if (inputType == 'radio') {
if(old_value == 'text/plain'){
if ($("[name=field" + i + "_value]").val() == 'text/plain') {
$("[name=field" + i + "_value]").attr('checked','checked');
}
}
else{
if($("[name=field" + i + "_value]").val() == 'text/html') {
$("[name=field" + i + "_value]").attr('checked','checked');
}
}
if(old_recovery_value == 'text/plain'){
if ($("[name=field" + i + "_recovery_value]").val() == 'text/plain') {
$("[name=field" + i + "_recovery_value]").attr('checked','checked');
}
}
else{
if ($("[name=field" + i + "_recovery_value]").val() == 'text/html') {
$("[name=field" + i + "_recovery_value]").attr('checked','checked');
}
}
}
else {
$("[name=field" + i + "_value]").val(old_value);
$("[name=field" + i + "_recovery_value]").val(old_recovery_value);
}
}
else {
if ($("[name=field" + i + "_value]").val() != 'text/plain') {
$("[name=field" + i + "_value]")
.val($("[name=field" + i + "_value]")
.val());
$("[name=field" + i + "_recovery_value]")
.val($("[name=field" + i + "_recovery_value]")
.val());
}
}
// Add help hint only in first field
if (i == 1) {
var td_content = $table_macros_field.find('td').eq(0);
$(td_content)
.html(
$(td_content).html() +
$('#help_alert_macros_hint').html());
}
$table_macros_field.show();
}
tinyMCE.init({
selector: 'textarea.tiny-mce-editor',
theme : "advanced",
plugins : "preview, print, table, searchreplace, nonbreaking, xhtmlxtras, noneditable",
theme_advanced_buttons1 : "bold,italic,underline,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsize,select",
theme_advanced_buttons2 : "search,replace,|,bullist,numlist,|,undo,redo,|,link,unlink,image,|,cleanup,code,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,
theme_advanced_statusbar_location : "bottom",
force_p_newlines : false,
forced_root_block : '',
inline_styles : true,
valid_children : "+body[style]",
element_format : "html"
});
render_command_preview(original_command);
render_command_recovery_preview(original_command);
$(".fields").keyup(function() {
render_command_preview(original_command);
});
$(".fields_recovery").keyup(function() {
render_command_recovery_preview(original_command);
});
$("select.fields").change(function() {
render_command_preview(original_command);
});
$("select.fields_recovery").change(function() {
render_command_recovery_preview(original_command);
});
},
"json"
);
}).change();
2009-01-12 Esteban Sanchez <estebans@artica.es> * godmode/agentes/alert_manager.php: Complete rewritten of the alert system when assigned alerts to an agent. * pandoradb.sql: New tables for alert system. These are: talert_commands, talert_actions, talert_templates, talert_template_modules, talert_template_module_actions. No migration tool is available yet. * godmode/alerts/configure_alert_template.php, godmode/alerts/configure_alert_action.php, godmode/alerts/alert_templates.php, godmode/alerts/configure_alert_command.php, godmode/alerts/alert_actions.php: Added to repository. Administration interface to new alert system. * godmode/alerts/modify_alert.php: Deleted from repository. * godmode/setup/setup.php: Added an example of the date format. Main table has now percentage width. * godmode/menu.php, operation/menu.php: Added new alert options. Removed refr value when it's not neccesary. * include/styles/pandora.css: Added width to textarea elements. Style correction and cleanup. Tables doesn't have a odd-even pattern, but the hovered row now changes its colour. New styles for alert pages. * include/functions_custom_graphs.php: Added to repository. custom graphs functions moved here. * include/functions_incidents.php, include/functions_events.php: Moved to LGPL. Style comment corrections. * include/functions_html.php: Documentation style correction. Added print_input_file() and print_label(). * include/functions_ui.php: Doc style correction. * operation/reporting/graph_viewer.php: Include new function file with custom graphs. Use generic functions. * index.php: Unset pass from POST and REQUEST arrays. * include/functions_db.php: Some documentation updated to new format. Added format_array_to_update_sql() to generate SQL sentences for updates. Style correction. * godmode/agentes/configurar_agente.php: Variables renamed to have a meaning. * extensions/update_manager/main.php: Mark an string translatable. * extensions/update_manager/lib/libupdate_manager_client.php, godmode/alerts/configure_alert.php, include/functions.php, godmode/agentes/module_manager.php, operation/agentes/networkmap.php, operation/reporting/reporting_viewer.php, godmode/agentes/manage_config.php: Style correction. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1331 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2009-01-12 15:31:01 +01:00
});
</script>