2013-06-06 Sergio Martin <sergio.martin@artica.es>

* include/functions_config.php: Replaced netflow and
	visual console flags updation in setup by a new customize
	sections values

	* include/config_process.php: Added specific metaconsole
	autorefresh whitelisted sections

	* extensions/snmp_explorer.php: Change wrong 
	snmp branch in interfaces explorer



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8263 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2013-06-06 15:57:11 +00:00
parent 37f3a29853
commit c633d091be
4 changed files with 32 additions and 7 deletions

View File

@ -1,3 +1,15 @@
2013-06-06 Sergio Martin <sergio.martin@artica.es>
* include/functions_config.php: Replaced netflow and
visual console flags updation in setup by a new customize
sections values
* include/config_process.php: Added specific metaconsole
autorefresh whitelisted sections
* extensions/snmp_explorer.php: Change wrong
snmp branch in interfaces explorer
2013-06-06 Sergio Martin <sergio.martin@artica.es>
* include/ajax/events.php: Fix the info of the

View File

@ -56,7 +56,7 @@ function snmp_explorer() {
$snmpis = get_snmpwalk($ip_target, $snmp_version, $snmp_community, $snmp3_auth_user,
$snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass,
$snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1", $tcp_port);
$snmp3_privacy_method, $snmp3_privacy_pass, 0, ".1.3.6.1.2.1.2", $tcp_port);
if ($snmpis === false) {
$snmpis = array();

View File

@ -222,6 +222,15 @@ $config['autorefresh_white_list'] = array(
'operation/agentes/networkmap',
'enterprise/operation/services/services',
'operation/events/events');
// Specific metaconsole autorefresh white list sections
if (defined('METACONSOLE')) {
$config['autorefresh_white_list'][] = 'monitoring/tactical';
$config['autorefresh_white_list'][] = 'monitoring/group_view';
$config['autorefresh_white_list'][] = 'operation/tree';
$config['autorefresh_white_list'][] = 'screens/screens';
}
//======================================================================

View File

@ -973,17 +973,21 @@ function config_process_config () {
}
if(defined('METACONSOLE')) {
if (!isset ($config['show_vc'])) {
config_update_value('show_vc', 1);
// Customizable sections (Metaconsole)
enterprise_include_once ('include/functions_enterprise.php');
$customizable_sections = enterprise_hook('enterprise_get_customizable_sections');
if($customizable_sections != ENTERPRISE_NOT_HOOK) {
foreach($customizable_sections as $k => $v) {
if (!isset ($config[$k])) {
config_update_value($k, $v['default']);
}
}
}
if (!isset ($config['meta_num_elements'])) {
config_update_value('meta_num_elements', 100);
}
if (!isset ($config['enable_metaconsole_netflow'])) {
config_update_value('enable_metaconsole_netflow', 0);
}
}
if (!isset ($config['relative_path']) && (isset ($_POST['nick'])