2019-01-30 12:07:17 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Extension to manage a list of gateways and the node address where they should
|
|
|
|
* point to.
|
|
|
|
*
|
|
|
|
* @category Extensions
|
|
|
|
* @package Pandora FMS
|
|
|
|
* @subpackage Community
|
|
|
|
* @version 1.0.0
|
|
|
|
* @license See below
|
|
|
|
*
|
|
|
|
* ______ ___ _______ _______ ________
|
|
|
|
* | __ \.-----.--.--.--| |.-----.----.-----. | ___| | | __|
|
|
|
|
* | __/| _ | | _ || _ | _| _ | | ___| |__ |
|
|
|
|
* |___| |___._|__|__|_____||_____|__| |___._| |___| |__|_|__|_______|
|
|
|
|
*
|
|
|
|
* ============================================================================
|
2020-11-27 13:52:35 +01:00
|
|
|
* Copyright (c) 2005-2021 Artica Soluciones Tecnologicas
|
2019-01-30 12:07:17 +01:00
|
|
|
* Please see http://pandorafms.org for full contribution list
|
|
|
|
* 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.
|
2010-03-03 18:10:37 +01:00
|
|
|
global $config;
|
2021-01-27 13:03:57 +01:00
|
|
|
require_once $config['homedir'].'/include/config.php';
|
|
|
|
require_once $config['homedir'].'/vendor/autoload.php';
|
|
|
|
|
|
|
|
use PandoraFMS\Core\Config;
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
check_login();
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
if (! check_acl($config['id_user'], 0, 'PM')
|
|
|
|
&& ! is_user_admin($config['id_user'])
|
|
|
|
) {
|
2022-02-01 13:39:18 +01:00
|
|
|
db_pandora_audit(
|
|
|
|
AUDIT_LOG_ACL_VIOLATION,
|
|
|
|
'Trying to access Setup Management'
|
|
|
|
);
|
2019-01-30 12:07:17 +01:00
|
|
|
include 'general/noaccess.php';
|
|
|
|
return;
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
}
|
|
|
|
|
2021-03-16 13:00:24 +01:00
|
|
|
// Load needed resources.
|
|
|
|
ui_require_css_file('setup.multicolumn');
|
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
$update_config = get_parameter('update_config', 0);
|
|
|
|
if ($update_config == 1 && $config['history_db_enabled'] == 1) {
|
|
|
|
if (! isset($config['history_db_connection'])
|
|
|
|
|| $config['history_db_connection'] === false
|
|
|
|
) {
|
|
|
|
$config['history_db_connection'] = db_connect(
|
|
|
|
$config['history_db_host'],
|
|
|
|
$config['history_db_name'],
|
|
|
|
$config['history_db_user'],
|
|
|
|
io_output_password($config['history_db_pass']),
|
|
|
|
$config['history_db_port'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($config['history_db_connection'] !== false) {
|
|
|
|
$historical_days_purge = get_parameter('historical_days_purge', 0);
|
|
|
|
$historical_days_compact = get_parameter('historical_days_compact', 0);
|
|
|
|
$historical_step_compact = get_parameter('historical_step_compact', 0);
|
|
|
|
$historical_event_purge = get_parameter('historical_event_purge', 0);
|
|
|
|
$historical_string_purge = get_parameter('historical_string_purge', 0);
|
|
|
|
|
2019-02-14 16:31:19 +01:00
|
|
|
$history_connect = @mysql_db_process_sql(
|
2020-11-23 20:16:11 +01:00
|
|
|
'DESCRIBE tconfig',
|
2019-01-30 12:07:17 +01:00
|
|
|
'affected_rows',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
|
2019-02-14 16:31:19 +01:00
|
|
|
$config_history = false;
|
|
|
|
if ($history_connect !== false) {
|
|
|
|
$config_history = mysql_db_process_sql(
|
|
|
|
'SELECT * FROM tconfig',
|
|
|
|
'affected_rows',
|
2019-01-30 12:07:17 +01:00
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
2019-02-14 16:31:19 +01:00
|
|
|
|
|
|
|
if (!$config_history) {
|
|
|
|
$sql = "INSERT INTO tconfig (token, `value`) VALUES
|
|
|
|
('days_purge', ".$historical_days_purge."),
|
|
|
|
('days_compact', ".$historical_days_compact."),
|
|
|
|
('step_compact', ".$historical_step_compact."),
|
|
|
|
('event_purge', ".$historical_event_purge."),
|
|
|
|
('string_purge', ".$historical_string_purge."),
|
|
|
|
('history_db_enabled', 0)";
|
|
|
|
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'insert_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
$sql = 'UPDATE tconfig SET `value` = '.$historical_days_purge." WHERE token = 'days_purge'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
$sql = 'UPDATE tconfig SET `value` = '.$historical_days_compact." WHERE token = 'days_compact'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
$sql = 'UPDATE tconfig SET `value` = '.$historical_step_compact." WHERE token = 'step_compact'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
$sql = 'UPDATE tconfig SET `value` = '.$historical_event_purge." WHERE token = 'event_purge'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
$sql = 'UPDATE tconfig SET `value` = '.$historical_string_purge." WHERE token = 'string_purge'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
$sql = "UPDATE tconfig SET `value` = 0 WHERE token = 'history_db_enabled'";
|
|
|
|
mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'update_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
2019-01-30 12:07:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$table_status = new StdClass();
|
|
|
|
$table_status->width = '100%';
|
|
|
|
$table_status->class = 'databox filters';
|
|
|
|
$table_status->style[0] = 'font-weight: bold';
|
|
|
|
$table_status->size[0] = '10%';
|
|
|
|
|
|
|
|
$table_status->data = [];
|
|
|
|
|
|
|
|
$sql = "SELECT UNIX_TIMESTAMP(NOW()) - `value` AS updated_at
|
|
|
|
FROM tconfig
|
|
|
|
WHERE token = 'db_maintance'";
|
|
|
|
|
|
|
|
$time_pandora_db_active = db_get_sql($sql);
|
|
|
|
|
2019-02-14 16:31:19 +01:00
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
if ($time_pandora_db_active < SECONDS_12HOURS) {
|
|
|
|
$table_status->data[0][0] = html_print_image(
|
|
|
|
'images/dot_green.png',
|
|
|
|
true
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
$table_status->data[0][0] = html_print_image(
|
|
|
|
'images/dot_red.png',
|
|
|
|
true
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
$table_status->data[0][0] .= ' '.__('Pandora_db running in active database.');
|
|
|
|
$table_status->data[0][0] .= ' '.__('Executed:').' ';
|
|
|
|
$table_status->data[0][0] .= human_time_description_raw(
|
|
|
|
$time_pandora_db_active,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_status->data[0][0] .= ' '.__('ago').'.';
|
|
|
|
|
|
|
|
if ($config['history_db_enabled'] == 1) {
|
|
|
|
if (! isset($config['history_db_connection'])
|
|
|
|
|| $config['history_db_connection'] === false
|
|
|
|
) {
|
|
|
|
$config['history_db_connection'] = db_connect(
|
|
|
|
$config['history_db_host'],
|
|
|
|
$config['history_db_name'],
|
|
|
|
$config['history_db_user'],
|
|
|
|
io_output_password($config['history_db_pass']),
|
|
|
|
$config['history_db_port'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-02-14 16:31:19 +01:00
|
|
|
$history_connect = @mysql_db_process_sql(
|
|
|
|
'SELECT 1 FROM tconfig',
|
|
|
|
'affected_rows',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
|
|
|
|
$time_pandora_db_history = false;
|
2019-04-22 12:00:06 +02:00
|
|
|
if ($history_connect) {
|
|
|
|
if ($config['history_db_connection']) {
|
2019-02-14 16:31:19 +01:00
|
|
|
$time_pandora_db_history = mysql_db_process_sql(
|
|
|
|
$sql,
|
|
|
|
'insert_id',
|
|
|
|
$config['history_db_connection'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
2019-01-30 12:07:17 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if ($time_pandora_db_history !== false
|
|
|
|
&& $time_pandora_db_history[0]['updated_at'] < SECONDS_12HOURS
|
|
|
|
) {
|
|
|
|
$table_status->data[1][0] = html_print_image(
|
|
|
|
'images/dot_green.png',
|
|
|
|
true
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
$table_status->data[1][0] = html_print_image(
|
|
|
|
'images/dot_red.png',
|
|
|
|
true
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
$table_status->data[1][0] .= ' '.__('Pandora_db running in historical database.');
|
|
|
|
$table_status->data[1][0] .= ' '.__('Executed:').' ';
|
|
|
|
if ($time_pandora_db_history !== false) {
|
|
|
|
$table_status->data[1][0] .= human_time_description_raw(
|
|
|
|
$time_pandora_db_history[0]['updated_at'],
|
|
|
|
true
|
|
|
|
).' '.__('ago').'.';
|
|
|
|
} else {
|
|
|
|
$table_status->data[1][0] .= __('not executed');
|
|
|
|
}
|
|
|
|
}
|
2015-06-08 13:13:09 +02:00
|
|
|
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2015-06-25 10:07:53 +02:00
|
|
|
$table = new StdClass();
|
|
|
|
$table->width = '100%';
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->class = 'databox filters';
|
|
|
|
$table->data = [];
|
|
|
|
$table->style[0] = 'font-weight: bold';
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2012-04-25 14:02:36 +02:00
|
|
|
$table->size[0] = '70%';
|
|
|
|
$table->size[1] = '30%';
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2019-03-05 13:17:21 +01:00
|
|
|
// enterprise_hook('enterprise_warnings_history_days');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[1][0] = __('Max. days before delete events');
|
|
|
|
|
|
|
|
$table->data[1][1] = html_print_input_text(
|
|
|
|
'event_purge',
|
|
|
|
$config['event_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
|
|
|
$table->data[2][0] = __('Max. days before delete traps');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[2][1] = html_print_input_text(
|
|
|
|
'trap_purge',
|
|
|
|
$config['trap_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
|
|
|
$table->data[3][0] = __('Max. days before delete audit events');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[3][1] = html_print_input_text(
|
|
|
|
'audit_purge',
|
|
|
|
$config['audit_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
|
|
|
$table->data[4][0] = __('Max. days before delete string data');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[4][1] = html_print_input_text(
|
|
|
|
'string_purge',
|
|
|
|
$config['string_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2010-03-10 18:58:29 +01:00
|
|
|
$table->data[5][0] = __('Max. days before delete GIS data');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[5][1] = html_print_input_text(
|
|
|
|
'gis_purge',
|
|
|
|
$config['gis_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table->data[6][0] = __('Max. days before purge');
|
|
|
|
$table->data[6][1] = html_print_input_text(
|
|
|
|
'days_purge',
|
|
|
|
$config['days_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2010-03-10 18:58:29 +01:00
|
|
|
$table->data[7][0] = __('Max. days before compact data');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[7][1] = html_print_input_text(
|
|
|
|
'days_compact',
|
|
|
|
$config['days_compact'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2012-04-25 14:02:36 +02:00
|
|
|
$table->data[8][0] = __('Max. days before delete unknown modules');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[8][1] = html_print_input_text(
|
|
|
|
'days_delete_unknown',
|
|
|
|
$config['days_delete_unknown'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2012-04-25 14:02:36 +02:00
|
|
|
|
2016-06-03 11:58:13 +02:00
|
|
|
$table->data[9][0] = __('Max. days before delete autodisabled agents');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table->data[9][1] = html_print_input_text(
|
|
|
|
'days_autodisable_deletion',
|
|
|
|
$config['days_autodisable_deletion'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table->data[10][0] = __('Retention period of past special days');
|
|
|
|
$table->data[10][1] = html_print_input_text(
|
|
|
|
'num_past_special_days',
|
|
|
|
$config['num_past_special_days'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table->data[11][0] = __('Max. macro data fields');
|
|
|
|
$table->data[11][1] = html_print_input_text(
|
|
|
|
'max_macro_fields',
|
|
|
|
$config['max_macro_fields'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true,
|
|
|
|
false,
|
|
|
|
false,
|
|
|
|
'onChange="change_macro_fields()"'
|
|
|
|
);
|
|
|
|
|
|
|
|
if (enterprise_installed()) {
|
|
|
|
$table->data[12][0] = __('Max. days before delete inventory data');
|
|
|
|
$table->data[12][1] = html_print_input_text(
|
|
|
|
'inventory_purge',
|
|
|
|
$config['inventory_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
}
|
2017-02-06 16:20:39 +01:00
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
if ($config['history_db_enabled'] == 1) {
|
|
|
|
if (! isset($config['history_db_connection'])
|
|
|
|
|| $config['history_db_connection'] === false
|
|
|
|
) {
|
|
|
|
$config['history_db_connection'] = db_connect(
|
|
|
|
$config['history_db_host'],
|
|
|
|
$config['history_db_name'],
|
|
|
|
$config['history_db_user'],
|
|
|
|
io_output_password($config['history_db_pass']),
|
|
|
|
$config['history_db_port'],
|
|
|
|
false
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2021-01-27 13:03:57 +01:00
|
|
|
$config_history['days_purge'] = Config::get('days_purge', 180, true);
|
|
|
|
$config_history['days_compact'] = Config::get('days_compact', 120, true);
|
|
|
|
$config_history['step_compact'] = Config::get('step_compact', 1, true);
|
|
|
|
$config_history['event_purge'] = Config::get('event_purge', 180, true);
|
|
|
|
$config_history['string_purge'] = Config::get('string_purge', 180, true);
|
2019-01-30 12:07:17 +01:00
|
|
|
|
|
|
|
$table_historical = new StdClass();
|
|
|
|
$table_historical->width = '100%';
|
|
|
|
$table_historical->class = 'databox filters';
|
|
|
|
$table_historical->data = [];
|
|
|
|
$table_historical->style[0] = 'font-weight: bold';
|
|
|
|
|
|
|
|
$table_historical->size[0] = '70%';
|
|
|
|
$table_historical->size[1] = '30%';
|
|
|
|
|
|
|
|
enterprise_hook('enterprise_warnings_history_days');
|
|
|
|
|
|
|
|
$table_historical->data[0][0] = __('Max. days before purge');
|
|
|
|
$table_historical->data[0][1] = html_print_input_text(
|
|
|
|
'historical_days_purge',
|
|
|
|
$config_history['days_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_historical->data[1][0] = __('Max. days before compact data');
|
|
|
|
$table_historical->data[1][1] = html_print_input_text(
|
|
|
|
'historical_days_compact',
|
|
|
|
$config_history['days_compact'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_historical->data[2][0] = __('Compact interpolation in hours (1 Fine-20 bad)');
|
|
|
|
$table_historical->data[2][1] = html_print_input_text(
|
|
|
|
'historical_step_compact',
|
|
|
|
$config_history['step_compact'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_historical->data[3][0] = __('Max. days before delete events');
|
|
|
|
$table_historical->data[3][1] = html_print_input_text(
|
|
|
|
'historical_event_purge',
|
|
|
|
$config_history['event_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_historical->data[4][0] = __('Max. days before delete string data');
|
|
|
|
$table_historical->data[4][1] = html_print_input_text(
|
|
|
|
'historical_string_purge',
|
|
|
|
$config_history['string_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_historical->data[4][1] .= html_print_input_hidden(
|
|
|
|
'historical_history_db_enabled',
|
|
|
|
0,
|
|
|
|
true
|
|
|
|
);
|
2016-12-14 13:02:10 +01:00
|
|
|
}
|
|
|
|
|
2019-02-13 14:43:55 +01:00
|
|
|
$table->data[] = [
|
|
|
|
__('Max. days before delete old messages'),
|
|
|
|
html_print_input_text(
|
|
|
|
'delete_old_messages',
|
|
|
|
$config['delete_old_messages'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
),
|
|
|
|
];
|
|
|
|
|
2019-03-01 12:39:55 +01:00
|
|
|
|
|
|
|
$table->data[] = [
|
|
|
|
__('Max. days before delete old network matrix data'),
|
|
|
|
html_print_input_text(
|
|
|
|
'delete_old_network_matrix',
|
|
|
|
$config['delete_old_network_matrix'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
),
|
|
|
|
];
|
|
|
|
|
2015-06-26 11:20:08 +02:00
|
|
|
$table_other = new stdClass();
|
2015-06-25 10:07:53 +02:00
|
|
|
$table_other->width = '100%';
|
|
|
|
$table_other->class = 'databox filters';
|
2019-01-30 12:07:17 +01:00
|
|
|
$table_other->data = [];
|
|
|
|
$table_other->style[0] = 'font-weight: bold';
|
2012-04-25 14:02:36 +02:00
|
|
|
|
|
|
|
$table_other->size[0] = '70%';
|
|
|
|
$table_other->size[1] = '30%';
|
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
$table_other->data[1][0] = __('Item limit for realtime reports');
|
|
|
|
$table_other->data[1][1] = html_print_input_text(
|
|
|
|
'report_limit',
|
|
|
|
$config['report_limit'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_other->data[2][0] = __('Compact interpolation in hours (1 Fine-20 bad)');
|
|
|
|
$table_other->data[2][1] = html_print_input_text(
|
|
|
|
'step_compact',
|
|
|
|
$config['step_compact'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$intervals = [];
|
2012-07-10 Miguel de Dios <miguel.dedios@artica.es>
* include/constants.php: added more constants into the constants
block of time conversion to seconds.
* godmode/alerts/alert_commands.php, godmode/setup/performance.php,
include/help/en/help_date_format.php, include/functions_netflow.php,
include/functions_tags.php, include/graphs/functions_pchart.php,
include/functions_modules.php, extensions/agents_modules.php,
extensions/update_manager.php, extensions/resource_exportation.php,
extensions/module_groups.php,
extensions/update_manager/lib/libupdate_manager_client.php,
extensions/system_info.php, operation/events/events_rss.php,
operation/events/export_csv.php, mobile/operation/events/events.php,
mobile/include/system.class.php: used the new constants time instead
the magic numbers, and cleaned source code style.
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6762 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-07-10 15:31:34 +02:00
|
|
|
$intervals[SECONDS_1HOUR] = __('1 hour');
|
|
|
|
$intervals[SECONDS_12HOURS] = __('12 hours');
|
|
|
|
$intervals[SECONDS_1DAY] = __('Last day');
|
|
|
|
$intervals[SECONDS_2DAY] = __('2 days');
|
|
|
|
$intervals[SECONDS_10DAY] = __('10 days');
|
|
|
|
$intervals[SECONDS_1WEEK] = __('Last week');
|
|
|
|
$intervals[SECONDS_2WEEK] = __('2 weeks');
|
|
|
|
$intervals[SECONDS_1MONTH] = __('Last month');
|
2011-11-24 17:51:49 +01:00
|
|
|
|
2012-04-25 14:02:36 +02:00
|
|
|
$table_other->data[3][0] = __('Default hours for event view');
|
2019-01-30 12:07:17 +01:00
|
|
|
$table_other->data[3][1] = html_print_input_text(
|
|
|
|
'event_view_hr',
|
|
|
|
$config['event_view_hr'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2012-04-25 14:02:36 +02:00
|
|
|
$table_other->data[5][0] = __('Use realtime statistics');
|
2019-02-26 12:04:18 +01:00
|
|
|
$table_other->data[5][1] = html_print_checkbox_switch(
|
2019-01-30 12:07:17 +01:00
|
|
|
'realtimestats',
|
|
|
|
1,
|
|
|
|
$config['realtimestats'],
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_other->data[6][0] = __('Batch statistics period (secs)');
|
|
|
|
$table_other->data[6][1] = html_print_input_text(
|
|
|
|
'stats_interval',
|
|
|
|
$config['stats_interval'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
2019-04-29 14:36:02 +02:00
|
|
|
$table_other->data[7][0] = __('Use agent access graph');
|
2019-02-26 12:04:18 +01:00
|
|
|
$table_other->data[7][1] = html_print_checkbox_switch('agentaccess', 1, $config['agentaccess'], true);
|
2019-01-30 12:07:17 +01:00
|
|
|
|
|
|
|
$table_other->data[8][0] = __('Max. recommended number of files in attachment directory');
|
|
|
|
$table_other->data[8][1] = html_print_input_text(
|
|
|
|
'num_files_attachment',
|
|
|
|
$config['num_files_attachment'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2011-07-08 13:21:49 +02:00
|
|
|
|
2014-09-17 14:13:51 +02:00
|
|
|
$table_other->data[9][0] = __('Delete not init modules');
|
2019-02-26 12:04:18 +01:00
|
|
|
$table_other->data[9][1] = html_print_checkbox_switch('delete_notinit', 1, $config['delete_notinit'], true);
|
2019-01-30 12:07:17 +01:00
|
|
|
|
|
|
|
$table_other->data[10][0] = __('Big Operation Step to purge old data');
|
|
|
|
$table_other->data[10][1] = html_print_input_text(
|
|
|
|
'big_operation_step_datos_purge',
|
|
|
|
$config['big_operation_step_datos_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_other->data[11][0] = __('Small Operation Step to purge old data');
|
|
|
|
$table_other->data[11][1] = html_print_input_text(
|
|
|
|
'small_operation_step_datos_purge',
|
|
|
|
$config['small_operation_step_datos_purge'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$table_other->data[12][0] = __('Graph container - Max. Items');
|
|
|
|
$table_other->data[12][1] = html_print_input_text(
|
|
|
|
'max_graph_container',
|
|
|
|
$config['max_graph_container'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
2014-09-17 14:13:51 +02:00
|
|
|
|
2019-02-19 12:14:42 +01:00
|
|
|
$table_other->data[13][0] = __('Events response max. execution');
|
|
|
|
$table_other->data[13][1] = html_print_input_text(
|
|
|
|
'max_execution_event_response',
|
|
|
|
$config['max_execution_event_response'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
5,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
2020-12-02 10:13:22 +01:00
|
|
|
$table_other->data[14][0] = __('Row limit in csv log');
|
|
|
|
$table_other->data[14][1] = html_print_input_text(
|
|
|
|
'row_limit_csv',
|
|
|
|
$config['row_limit_csv'],
|
|
|
|
'',
|
|
|
|
5,
|
|
|
|
10,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
2021-02-04 13:11:47 +01:00
|
|
|
$table_other->data[15][0] = __('SNMP walk binary');
|
|
|
|
$table_other->data[15][1] = html_print_input_text(
|
|
|
|
'snmpwalk',
|
|
|
|
$config['snmpwalk'],
|
|
|
|
'',
|
|
|
|
50,
|
|
|
|
10,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
|
|
|
$tip = ui_print_help_tip(
|
|
|
|
__('SNMP bulk walk is not able to request V1 SNMP, this option will be used instead (by default snmpwalk, slower).'),
|
|
|
|
true
|
|
|
|
);
|
|
|
|
$table_other->data[16][0] = __('SNMP walk binary (fallback)').$tip;
|
|
|
|
$table_other->data[16][1] = html_print_input_text(
|
|
|
|
'snmpwalk_fallback',
|
|
|
|
$config['snmpwalk_fallback'],
|
|
|
|
'',
|
|
|
|
50,
|
|
|
|
10,
|
|
|
|
true
|
|
|
|
);
|
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
echo '<form id="form_setup" method="post">';
|
2016-05-27 09:37:58 +02:00
|
|
|
|
2021-03-16 13:00:24 +01:00
|
|
|
echo '<fieldset class="full-column">';
|
2019-04-29 14:36:02 +02:00
|
|
|
echo '<legend>'.__('Database maintenance status').' '.ui_print_help_icon('database_maintenance_status_tab', true).'</legend>';
|
2019-01-30 12:07:17 +01:00
|
|
|
html_print_table($table_status);
|
|
|
|
echo '</fieldset>';
|
|
|
|
|
|
|
|
echo '<fieldset>';
|
2019-04-29 14:36:02 +02:00
|
|
|
echo '<legend>'.__('Database maintenance options').' '.ui_print_help_icon('database_maintenance_options_tab', true).'</legend>';
|
2019-01-30 12:07:17 +01:00
|
|
|
html_print_table($table);
|
|
|
|
echo '</fieldset>';
|
|
|
|
|
|
|
|
if ($config['history_db_enabled'] == 1) {
|
|
|
|
echo '<fieldset>';
|
2019-04-29 14:36:02 +02:00
|
|
|
echo '<legend>'.__('Historical database maintenance options').' '.ui_print_help_icon('historical_database_maintenance_options_tab', true).'</legend>';
|
2019-01-30 12:07:17 +01:00
|
|
|
html_print_table($table_historical);
|
|
|
|
echo '</fieldset>';
|
|
|
|
}
|
2016-05-27 09:37:58 +02:00
|
|
|
|
2019-01-30 12:07:17 +01:00
|
|
|
echo '<fieldset>';
|
2019-04-29 14:36:02 +02:00
|
|
|
echo '<legend>'.__('Others').' '.ui_print_help_icon('others_database_maintenance_options_tab', true).'</legend>';
|
2019-01-30 12:07:17 +01:00
|
|
|
html_print_table($table_other);
|
|
|
|
echo '</fieldset>';
|
2017-05-23 17:13:47 +02:00
|
|
|
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
echo '<div class="action-buttons" style="width: '.$table->width.'">';
|
2019-01-30 12:07:17 +01:00
|
|
|
html_print_input_hidden('update_config', 1);
|
|
|
|
html_print_submit_button(
|
|
|
|
__('Update'),
|
|
|
|
'update_button',
|
|
|
|
false,
|
|
|
|
'class="sub upd"'
|
|
|
|
);
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
echo '</div>';
|
|
|
|
echo '</form>';
|
|
|
|
?>
|
|
|
|
|
2017-02-06 16:20:39 +01:00
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
|
|
|
|
function change_macro_fields() {
|
2019-01-30 12:07:17 +01:00
|
|
|
var value = $("#text-max_macro_fields").val();
|
|
|
|
if (value <= 0) {
|
|
|
|
$("#text-max_macro_fields").val(1);
|
|
|
|
}
|
2020-09-25 10:47:36 +02:00
|
|
|
else if (value > 20) {
|
|
|
|
$("#text-max_macro_fields").val(20);
|
2019-01-30 12:07:17 +01:00
|
|
|
}
|
2017-02-06 16:20:39 +01:00
|
|
|
}
|
2010-02-19 Sancho Lerena <slerena@artica.es>
* functions_events.php: Fixed typo (switched meaning) in two labels.
* include/styles/pandora.css: Changed background color of th default style.
* include/functions_reporting.php: Improved function get_group_stats(). Now
supports stats from batch-mode and get realtime stats in a more efficient
way. Fixed get_fired_alerts_reporting_table() to avoid problems in external
reporting (PDF & XML).
* include/functions_servers.php: get_server_performance() now uses batch mode
stats reporting, and improved also the realtime stats generation. Same with
function get_server_info().
* include/functions_config.php: Added new config tokens (not fully
implemented yet) for event, trap, strings and audit automatic purge.
* include/functions_ui.php: Added new print_page_header() function to set
the new standard header in all pages, using the "tabbed" format to show
the title, subtitle and other options like help, or custom-tabs for the page
* pandoradb.sql: Added tserver.stat_utimestamp field. Added indexes to
tsession table. Fixed typo in field name in tgroup_stat: agents_uknown to
agents_unknown.
* extensions/ext_backup: New directory to place "deleted" extensions.
* extensions/dbmanager/dbmanager.css: Table names now are in it's original
lowercase/uppercase format.
* extensions/dbmanager.php: Updated headers, and now return "empty" when
a search is empty, instead "error" as before.
* extensions/users_connected.php
extensions/module_groups.php
extensions/plugin_registration.php
extensions/pandora_logs.php
operation/incidents/incident.php
operation/snmpconsole/snmp_view.php
operation/users/user.php
operation/users/user_edit.php
godmode/agentes/planned_downtime.php
operation/events/events.php
operation/visual_console/index.php
operation/agentes/estado_generalagente.php
operation/agentes/estado_agente.php
operation/agentes/exportdata.php
operation/agentes/ver_agente.php
operation/agentes/status_monitor.php
operation/agentes/alerts_status.php
operation/users/user_statistics.php: Added new header format.
* operation/agentes/estado_grupo.php: Removed old group view.
* operation/agentes/tactical.php: Adapted to use new realtime/batch
statistical system. Placed events above server info. Showing only pending
events and other minor changes.
* operation/agentes/group_view.php: NEW screen, replacing old one. Probably
most ugly, but much more useful than before.
* operation/agentes/networkmap.php: Added title.
* operation/messages/message.php: Added title and adding some exists in
code was missing before.
* operation/reporting/reporting_viewer.php: Added title.
* operation/reporting/graph_viewer.php: Added title.
* operation/reporting/custom_reporting.php: Added title.
* operation/servers/view_server.php:
* operation/menu.php: Replaced old group view with new (this has english
name). Removed autorefresh "by default" in server view.
* extras/pandoradb_migrate_v3.0_to_v3.1.sql: Fixed typo.
* extras/pandora_diag.php: Minor changes, removed some info and added other.
* general/logon_ok.php: Minor aesthetic changes.
* general/header.php: Fixed missing ";"
* operation/extensions.php,
godmode/extensions.php: Added support for delete extensions.
* godmode/menu.php: New setup items.
* godmode/setup/setup.php,
godmode/setup/performance.php,
godmode/setup/setup_visuals.php: Reordered setup options, new setup section
"Performance", added new performance options to set "realtime" statistics
or "batchmode" with it's own interval. Some setup info is now shared with
the servers (but it it's any change in setup, servers should be restarted
anyway).
git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2390 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2010-02-19 16:16:03 +01:00
|
|
|
|
2017-02-06 16:20:39 +01:00
|
|
|
</script>
|