diff --git a/pandora_console/general/alert_enterprise.php b/pandora_console/general/alert_enterprise.php
index 430e9a9127..47a5a4b356 100644
--- a/pandora_console/general/alert_enterprise.php
+++ b/pandora_console/general/alert_enterprise.php
@@ -1,5 +1,13 @@
Enterprise Version for a professional supported system with improved capacity on network monitoring, including distributed servers.");
+ break;
+ case "monitoreventsmodal":
+ echo __("Too much remote modules has been detected on this system. OpenSource version could manage thousands of modules, but performance is limited on high amount of SNMP or ICMP request. Checkout the Enterprise Version for a professional supported system with improved capacity on network monitoring, including distributed servers.");
+ break;
+ case "alertagentmodal":
+ echo __("You have defined a high number of alerts, this may cause you performance problems in the future. In the Enterprise version, you can use event correlation alerts to simplify the alerting system and have easier administration and increased performance.");
+ break;
+ default:
break;
}
diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php
index c624097f18..0b6f3d38ca 100644
--- a/pandora_console/general/header.php
+++ b/pandora_console/general/header.php
@@ -64,7 +64,7 @@ config_check();
$table->style[8] =
$table->style[9] =
$table->style['qr'] =
- 'width: 22px; text-align:center; height: 22px; padding-right: 9px;';
+ 'width: 22px; text-align:center; height: 22px; padding-right: 9px;padding-left: 9px;';
$table->style[7] = 'width: 20px; padding-right: 9px;';
$table->style['searchbar'] = 'width: 180px; min-width: 180px;';
$table->style[11] = 'padding-left: 10px; padding-right: 5px;width: 16px;';
diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php
index beba4053a2..11eaf4582e 100755
--- a/pandora_console/general/login_page.php
+++ b/pandora_console/general/login_page.php
@@ -89,14 +89,14 @@ echo '
';
echo '';
if (defined ('METACONSOLE')) {
- html_print_image ("images/logo_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
}
else if (defined ('PANDORA_ENTERPRISE')) {
- html_print_image ("images/logo_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+ html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
}
else {
- html_print_image ("images/logo_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
- echo " Community edition";
+ html_print_image ("images/custom_logo_login/".$config['custom_logo_login'], false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true);
+echo " Community edition";
}
echo '';
diff --git a/pandora_console/godmode/massive/massive_operations.php b/pandora_console/godmode/massive/massive_operations.php
index 8c543e7449..933c508e4b 100755
--- a/pandora_console/godmode/massive/massive_operations.php
+++ b/pandora_console/godmode/massive/massive_operations.php
@@ -203,9 +203,17 @@ $onheader['policies'] = $policiestab;
$onheader['snmp'] = $snmptab;
$onheader['satellite'] = $satellitetab;
+/* Hello there! :)
+
+We added some of what seems to be "buggy" messages to the openSource version recently. This is not to force open-source users to move to the enterprise version, this is just to inform people using Pandora FMS open source that it requires skilled people to maintain and keep it running smoothly without professional support. This does not imply open-source version is limited in any way. If you check the recently added code, it contains only warnings and messages, no limitations except one: we removed the option to add custom logo in header. In the Update Manager section, it warns about the 'danger’ of applying automated updates without a proper backup, remembering in the process that the Enterprise version comes with a human-tested package. Maintaining an OpenSource version with more than 500 agents is not so easy, that's why someone using a Pandora with 8000 agents should consider asking for support. It's not a joke, we know of many setups with a huge number of agents, and we hate to hear that “its becoming unstable and slow” :(
+
+You can of course remove the warnings, that's why we include the source and do not use any kind of trick. And that's why we added here this comment, to let you know this does not reflect any change in our opensource mentality of does the last 14 years.
+
+*/
+
ui_print_page_header(
__('Massive operations') . ' » '. $options[$option],
- "images/gm_massive_operations.png", false, "", true, $onheader,true, "massive");
+ "images/gm_massive_operations.png", false, "", true, $onheader,true, "massivemodal");
// Checks if the PHP configuration is correctly
if ((get_cfg_var("max_execution_time") != 0)
diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php
index 2fa34b06c9..8ca2ed9f57 100644
--- a/pandora_console/godmode/modules/manage_network_components.php
+++ b/pandora_console/godmode/modules/manage_network_components.php
@@ -38,9 +38,18 @@ if (defined('METACONSOLE')) {
$sec = 'advanced';
}
else {
+
+ /* Hello there! :)
+
+We added some of what seems to be "buggy" messages to the openSource version recently. This is not to force open-source users to move to the enterprise version, this is just to inform people using Pandora FMS open source that it requires skilled people to maintain and keep it running smoothly without professional support. This does not imply open-source version is limited in any way. If you check the recently added code, it contains only warnings and messages, no limitations except one: we removed the option to add custom logo in header. In the Update Manager section, it warns about the 'danger’ of applying automated updates without a proper backup, remembering in the process that the Enterprise version comes with a human-tested package. Maintaining an OpenSource version with more than 500 agents is not so easy, that's why someone using a Pandora with 8000 agents should consider asking for support. It's not a joke, we know of many setups with a huge number of agents, and we hate to hear that “its becoming unstable and slow” :(
+
+You can of course remove the warnings, that's why we include the source and do not use any kind of trick. And that's why we added here this comment, to let you know this does not reflect any change in our opensource mentality of does the last 14 years.
+
+*/
+
ui_print_page_header (__('Module management') . ' » ' .
__('Network component management'), "", false,
- "network_component", true,"sell",true,"module");
+ "network_component", true,"sell",true,"modulemodal");
$sec = 'gmodules';
}
diff --git a/pandora_console/godmode/modules/manage_network_templates.php b/pandora_console/godmode/modules/manage_network_templates.php
index 7d51475f63..db6444bdfd 100644
--- a/pandora_console/godmode/modules/manage_network_templates.php
+++ b/pandora_console/godmode/modules/manage_network_templates.php
@@ -27,7 +27,16 @@ if (! check_acl ($config['id_user'], 0, "PM")) {
}
// Header
-ui_print_page_header (__('Module management')." » ".__('Module template management'), "images/gm_modules.png", false, "template_tab", true,"",true,"module");
+
+/* Hello there! :)
+
+We added some of what seems to be "buggy" messages to the openSource version recently. This is not to force open-source users to move to the enterprise version, this is just to inform people using Pandora FMS open source that it requires skilled people to maintain and keep it running smoothly without professional support. This does not imply open-source version is limited in any way. If you check the recently added code, it contains only warnings and messages, no limitations except one: we removed the option to add custom logo in header. In the Update Manager section, it warns about the 'danger’ of applying automated updates without a proper backup, remembering in the process that the Enterprise version comes with a human-tested package. Maintaining an OpenSource version with more than 500 agents is not so easy, that's why someone using a Pandora with 8000 agents should consider asking for support. It's not a joke, we know of many setups with a huge number of agents, and we hate to hear that “its becoming unstable and slow” :(
+
+You can of course remove the warnings, that's why we include the source and do not use any kind of trick. And that's why we added here this comment, to let you know this does not reflect any change in our opensource mentality of does the last 14 years.
+
+*/
+
+ui_print_page_header (__('Module management')." » ".__('Module template management'), "images/gm_modules.png", false, "template_tab", true,"",true,"modulemodal");
require_once ('include/functions_network_profiles.php');
diff --git a/pandora_console/godmode/setup/setup_visuals.php b/pandora_console/godmode/setup/setup_visuals.php
index 7d4f76463a..c814975e52 100755
--- a/pandora_console/godmode/setup/setup_visuals.php
+++ b/pandora_console/godmode/setup/setup_visuals.php
@@ -173,7 +173,7 @@ $table_styles->data[$row][0] = __('Custom logo in login') . ui_print_help_icon("
$table_styles->data[$row][1] = html_print_select(
list_files('images/custom_logo_login', "png", 1, 0), 'custom_logo_login',
$config["custom_logo_login"], '', '', '',true,false,true,'',$open,'width:240px');
-$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview_', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
+$table_styles->data[$row][1] .= " " . html_print_button(__("View"), 'custom_logo_preview', $open, '', 'class="sub camera"', true,false,$open,'visualmodal');
$row++;
diff --git a/pandora_console/godmode/update_manager/update_manager.online.php b/pandora_console/godmode/update_manager/update_manager.online.php
index f6c34e07bd..73a1c12e1c 100644
--- a/pandora_console/godmode/update_manager/update_manager.online.php
+++ b/pandora_console/godmode/update_manager/update_manager.online.php
@@ -84,6 +84,15 @@ echo "
";
echo "
";
+
+ /* Hello there! :)
+
+We added some of what seems to be "buggy" messages to the openSource version recently. This is not to force open-source users to move to the enterprise version, this is just to inform people using Pandora FMS open source that it requires skilled people to maintain and keep it running smoothly without professional support. This does not imply open-source version is limited in any way. If you check the recently added code, it contains only warnings and messages, no limitations except one: we removed the option to add custom logo in header. In the Update Manager section, it warns about the 'danger’ of applying automated updates without a proper backup, remembering in the process that the Enterprise version comes with a human-tested package. Maintaining an OpenSource version with more than 500 agents is not so easy, that's why someone using a Pandora with 8000 agents should consider asking for support. It's not a joke, we know of many setups with a huge number of agents, and we hate to hear that “its becoming unstable and slow” :(
+
+You can of course remove the warnings, that's why we include the source and do not use any kind of trick. And that's why we added here this comment, to let you know this does not reflect any change in our opensource mentality of does the last 14 years.
+
+*/
+
if($open){
echo "
";
diff --git a/pandora_console/images/custom_logo/pandora_logo_head.png b/pandora_console/images/custom_logo/pandora_logo_head.png
index 2f5b60fb37..5bce825279 100644
Binary files a/pandora_console/images/custom_logo/pandora_logo_head.png and b/pandora_console/images/custom_logo/pandora_logo_head.png differ
diff --git a/pandora_console/images/custom_logo/pandora_logo_head_2.png b/pandora_console/images/custom_logo/pandora_logo_head_2.png
new file mode 100644
index 0000000000..2f5b60fb37
Binary files /dev/null and b/pandora_console/images/custom_logo/pandora_logo_head_2.png differ
diff --git a/pandora_console/images/custom_logo_login/artica_logo.jpg b/pandora_console/images/custom_logo_login/artica_logo.jpg
new file mode 100644
index 0000000000..7db529faa4
Binary files /dev/null and b/pandora_console/images/custom_logo_login/artica_logo.jpg differ
diff --git a/pandora_console/images/custom_logo_login/artica_logo.png b/pandora_console/images/custom_logo_login/artica_logo.png
new file mode 100644
index 0000000000..a3833686bd
Binary files /dev/null and b/pandora_console/images/custom_logo_login/artica_logo.png differ
diff --git a/pandora_console/images/custom_logo_login/logo_login.png b/pandora_console/images/custom_logo_login/logo_login.png
new file mode 100644
index 0000000000..0545d22bde
Binary files /dev/null and b/pandora_console/images/custom_logo_login/logo_login.png differ
diff --git a/pandora_console/images/custom_logo_login/none.jpg b/pandora_console/images/custom_logo_login/none.jpg
new file mode 100644
index 0000000000..53f6f42f3e
Binary files /dev/null and b/pandora_console/images/custom_logo_login/none.jpg differ
diff --git a/pandora_console/images/custom_logo_login/none.png b/pandora_console/images/custom_logo_login/none.png
new file mode 100644
index 0000000000..157dbf59f0
Binary files /dev/null and b/pandora_console/images/custom_logo_login/none.png differ
diff --git a/pandora_console/images/custom_logo_login/pandora_logo_head.png b/pandora_console/images/custom_logo_login/pandora_logo_head.png
new file mode 100644
index 0000000000..2f5b60fb37
Binary files /dev/null and b/pandora_console/images/custom_logo_login/pandora_logo_head.png differ
diff --git a/pandora_console/images/icono_info.png b/pandora_console/images/icono_info.png
new file mode 100644
index 0000000000..590e09fa07
Binary files /dev/null and b/pandora_console/images/icono_info.png differ
diff --git a/pandora_console/images/pandora.ico b/pandora_console/images/pandora.ico
index 2d8994329c..f72d6cee90 100644
Binary files a/pandora_console/images/pandora.ico and b/pandora_console/images/pandora.ico differ
diff --git a/pandora_console/images/pandora_2.ico b/pandora_console/images/pandora_2.ico
new file mode 100644
index 0000000000..2d8994329c
Binary files /dev/null and b/pandora_console/images/pandora_2.ico differ
diff --git a/pandora_console/images/qrcode_icon.jpg b/pandora_console/images/qrcode_icon.jpg
index 450097ccfa..fbaeec1094 100644
Binary files a/pandora_console/images/qrcode_icon.jpg and b/pandora_console/images/qrcode_icon.jpg differ
diff --git a/pandora_console/images/qrcode_icon_2.jpg b/pandora_console/images/qrcode_icon_2.jpg
new file mode 100644
index 0000000000..450097ccfa
Binary files /dev/null and b/pandora_console/images/qrcode_icon_2.jpg differ
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index bba18db580..867465a0bd 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -453,8 +453,25 @@ function config_update_config () {
$error_update[] = __('Font size');
if (!config_update_value ('flash_charts', (bool) get_parameter ('flash_charts')))
$error_update[] = __('Interactive charts');
- if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
- $error_update[] = __('Custom logo');
+
+ if(!enterprise_installed()){
+ $open=true;
+ }
+
+ if(!$open){
+ if (!config_update_value ('custom_logo', (string) get_parameter ('custom_logo')))
+ $error_update[] = __('Custom logo');
+ if (!config_update_value ('custom_logo_login', (string) get_parameter ('custom_logo_login')))
+ $error_update[] = __('Custom logo login');
+
+
+
+ }
+
+
+
+
+
if (!config_update_value ('login_background', (string) get_parameter ('login_background')))
$error_update[] = __('Login background');
if (!config_update_value ('vc_refr', get_parameter('vc_refr')))
@@ -479,6 +496,8 @@ function config_update_config () {
$error_update[] = __('Default icon in GIS');
if (!config_update_value ('autohidden_menu', get_parameter('autohidden_menu')))
$error_update[] = __('Autohidden menu');
+ if (!config_update_value ('fixed_graph', get_parameter('fixed_graph')))
+ $error_update[] = __('Fixed graph');
if (!config_update_value ('fixed_header', get_parameter('fixed_header')))
$error_update[] = __('Fixed header');
if (!config_update_value ('fixed_menu', get_parameter('fixed_menu')))
@@ -1005,13 +1024,26 @@ function config_process_config () {
config_update_value ('fixed_header', false);
}
+ if (!isset ($config["fixed_graph"])) {
+ config_update_value ('fixed_graph', false);
+ }
+
if (!isset ($config["fixed_menu"])) {
config_update_value ('fixed_menu', false);
}
+ if(!$open){
+
+
if (!isset ($config["custom_logo"])) {
config_update_value ('custom_logo', 'pandora_logo_head.png');
}
+ if (!isset ($config["custom_logo_login"])) {
+ config_update_value ('custom_logo_login', 'pandora_logo.png');
+ }
+
+
+}
if (!isset ($config['history_db_enabled'])) {
config_update_value ( 'history_db_enabled', false);
diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php
index 1782de5188..23bd930558 100644
--- a/pandora_console/include/functions_reporting.php
+++ b/pandora_console/include/functions_reporting.php
@@ -5441,13 +5441,17 @@ function reporting_get_stats_alerts($data, $links = false) {
$table_al = html_get_predefined_table();
$tdata = array();
- $tdata[0] = html_print_image('images/bell.png', true, array('title' => __('Defined alerts')));
+ $tdata[0] = html_print_image('images/bell.png', true, array('title' => __('Defined alerts')));
$tdata[1] = $data["monitor_alerts"] <= 0 ? '-' : $data["monitor_alerts"];
$tdata[1] = '' . $tdata[1] . '';
- $tdata[2] = html_print_image('images/bell_error.png', true, array('title' => __('Fired alerts')));
- $tdata[3] = $data["monitor_alerts_fired"] <= 0 ? '-' : $data["monitor_alerts_fired"];
- $tdata[3] = '' . $tdata[3] . '';
+ if($data["monitor_alerts"]>$data["total_agents"] && !enterprise_installed()){
+ $tdata[2] = "
";
}
diff --git a/pandora_console/include/javascript/jquery.pandora.js b/pandora_console/include/javascript/jquery.pandora.js
index 011217a465..ce144d6862 100644
--- a/pandora_console/include/javascript/jquery.pandora.js
+++ b/pandora_console/include/javascript/jquery.pandora.js
@@ -75,12 +75,12 @@ $(document).ready (function () {
// Creacion de ventana modal y botones
- $("#publienterprise").click (function () {
+ $(".publienterprise").click (function () {
$('body').append( "" );
jQuery.get ("ajax.php",
{
"page": "general/alert_enterprise",
- "message":$(this).attr("class")},
+ "message":$(this).attr("id")},
function (data, status) {
$("#alert_messages").hide ()
.empty ()
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index 4f27819b81..a9cc441aeb 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -396,11 +396,20 @@ if ($config["pure"] == 0 || $meta) {
$section_string = __('List');
break;
}
-
+
+
+ /* Hello there! :)
+
+ We added some of what seems to be "buggy" messages to the openSource version recently. This is not to force open-source users to move to the enterprise version, this is just to inform people using Pandora FMS open source that it requires skilled people to maintain and keep it running smoothly without professional support. This does not imply open-source version is limited in any way. If you check the recently added code, it contains only warnings and messages, no limitations except one: we removed the option to add custom logo in header. In the Update Manager section, it warns about the 'danger’ of applying automated updates without a proper backup, remembering in the process that the Enterprise version comes with a human-tested package. Maintaining an OpenSource version with more than 500 agents is not so easy, that's why someone using a Pandora with 8000 agents should consider asking for support. It's not a joke, we know of many setups with a huge number of agents, and we hate to hear that “its becoming unstable and slow” :(
+
+ You can of course remove the warnings, that's why we include the source and do not use any kind of trick. And that's why we added here this comment, to let you know this does not reflect any change in our opensource mentality of does the last 14 years.
+
+ */
+
if (! defined ('METACONSOLE')) {
unset($onheader['history']);
ui_print_page_header (__("Events"), "images/op_events.png",
- false, "eventview", false, $onheader,true, "events");
+ false, "eventview", false, $onheader,true, "eventsmodal");
}
else {
unset($onheader['rss']);