' .
+ html_print_select_groups(
+ $config['id_user'],
+ "VR",
+ true,
+ 'element_group',
+ __('All'),
+ '',
+ '',
+ 0,
+ true) .
ui_print_help_tip (
__("If selected, restrict visualization of this item in the visual console to users who have access to selected group. This is also used on calculating child visual consoles."), true) .
'
';
diff --git a/pandora_console/include/graphs/functions_pchart.php b/pandora_console/include/graphs/functions_pchart.php
index fcbd67f00a..0114d36e32 100644
--- a/pandora_console/include/graphs/functions_pchart.php
+++ b/pandora_console/include/graphs/functions_pchart.php
@@ -522,7 +522,7 @@ function pch_pie_graph ($graph_type, $data_values, $legend_values, $width,
if ($legend_position != 'hidden') {
// This is a hardcore adjustment to match most of the graphs, please don't alter
- $legend_with_aprox = 32 + (4.5 * $max_chars);
+ $legend_with_aprox = 32 + (9.5 * $max_chars);
$PieChart->drawPieLegend($width - $legend_with_aprox, 5, array("R"=>255,"G"=>255,"B"=>255, "BoxSize"=>10));
}
diff --git a/pandora_console/include/graphs/pandora.d3.js b/pandora_console/include/graphs/pandora.d3.js
index 98d4a54557..300ff0b665 100644
--- a/pandora_console/include/graphs/pandora.d3.js
+++ b/pandora_console/include/graphs/pandora.d3.js
@@ -2334,7 +2334,7 @@ var digitPattern = [
digit.select("path:nth-child(5)").classed("lit", function(d) { return digitPattern[4][d]; });
digit.select("path:nth-child(6)").classed("lit", function(d) { return digitPattern[5][d]; });
digit.select("path:nth-child(7)").classed("lit", function(d) { return digitPattern[6][d]; });
- separator.classed("lit", seconds & 1);
+ separator.classed("lit", seconds);
setTimeout(tick, 1000 - now % 1000);
})();
diff --git a/pandora_console/include/javascript/pandora_snmp_browser.js b/pandora_console/include/javascript/pandora_snmp_browser.js
index fd202ad4dc..60f914c9e9 100644
--- a/pandora_console/include/javascript/pandora_snmp_browser.js
+++ b/pandora_console/include/javascript/pandora_snmp_browser.js
@@ -203,8 +203,9 @@ function hideOIDData() {
// Empty previous OID data
$("#snmp_data").empty();
-
+
$("#snmp_data").css('display', 'none');
+ $(".forced_title_layer").css('display', 'none');
}
// Search the SNMP tree for a matching string
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index ca555e3bd5..1b2cda24bf 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -4621,8 +4621,16 @@ form ul.form_flex li ul li{
margin:0 auto;
}
+#snmp_data {
+ background: #f9faf9;
+}
+#snmp_data .databox {
+ border: 0px;
+}
+
.tickLabel {
white-space: nowrap;
overflow-x: hidden;
line-height: 1.05em!important;
}
+
diff --git a/pandora_console/install.php b/pandora_console/install.php
index 0a3ac1acf9..3725bf6847 100755
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -71,7 +71,7 @@
$field['id_field'],
- 'id_agent' => $id_agente));
-
- if ($custom_value === false || $custom_value == '') {
- $custom_value = '-'.__('empty').'-';
+ $custom_value = db_get_all_rows_sql("select tagent_custom_data.description,tagent_custom_fields.is_password_type from tagent_custom_fields
+ INNER JOIN tagent_custom_data ON tagent_custom_fields.id_field = tagent_custom_data.id_field where tagent_custom_fields.id_field = ".$field['id_field']." and tagent_custom_data.id_agent = ".$id_agente);
+
+ if ($custom_value[0]['description'] === false || $custom_value[0]['description'] == '') {
+ $custom_value[0]['description'] = '-'.__('empty').'-';
}
else {
- $custom_value = ui_bbcode_to_html($custom_value);
+ $custom_value[0]['description'] = ui_bbcode_to_html($custom_value[0]['description']);
}
- $data[2] = $custom_value;
+ if($custom_value[0]['is_password_type']){
+ $data[2] = '••••••••';
+ }
+ else{
+ $data[2] = $custom_value[0]['description'];
+ }
array_push ($table->data, $data);
}
diff --git a/pandora_console/operation/agentes/ver_agente.php b/pandora_console/operation/agentes/ver_agente.php
index b94a7733db..52ad3766bc 100644
--- a/pandora_console/operation/agentes/ver_agente.php
+++ b/pandora_console/operation/agentes/ver_agente.php
@@ -44,12 +44,16 @@ if (is_ajax ()) {
$get_agentmodule_status_tooltip = (bool) get_parameter ("get_agentmodule_status_tooltip");
$get_group_status_tooltip = (bool) get_parameter ("get_group_status_tooltip");
$get_agent_id = (bool) get_parameter ("get_agent_id");
+ $cluster_mode = (bool) get_parameter ("cluster_mode",0);
+ $agent_alias = get_parameter('alias', '');
+ $agents_inserted = get_parameter('agents_inserted', array());
$id_group = (int) get_parameter('id_group');
if ($get_agents_group_json) {
$id_group = (int) get_parameter('id_group');
$recursion = get_parameter ('recursion');
$id_os = get_parameter('id_os', '');
$agent_name = get_parameter('name', '');
+
$privilege = (string) get_parameter ('privilege', "AR");
// Is is possible add keys prefix to avoid auto sorting in js object conversion
$keys_prefix = (string) get_parameter ('keys_prefix', '');
@@ -75,6 +79,8 @@ if (is_ajax ()) {
$filter['id_os'] = $id_os;
if (!empty($agent_name))
$filter['nombre'] = '%' . $agent_name . '%';
+ if (!empty($agent_alias))
+ $filter['alias'] = '%' . $agent_alias . '%';
switch ($status_agents) {
case AGENT_STATUS_NORMAL:
@@ -98,6 +104,43 @@ if (is_ajax ()) {
}
$filter['order'] = "alias ASC";
+ if($cluster_mode){
+
+ $agent_id_os = db_get_all_rows_sql('select id_os from tconfig_os where id_os != 100');
+
+ foreach ($agent_id_os as $key => $value) {
+ $agent_id_os_array[] = $agent_id_os[$key]['id_os'];
+ }
+
+ $filter['id_os'] = $agent_id_os_array;
+
+ if($agents_inserted[0] != ''){
+
+ $agents_id_list = '';
+
+ foreach($agents_inserted as $elem) {
+
+ if ($elem === end($agents_inserted)) {
+ $agents_id_list .= $elem;
+ }
+ else{
+ $agents_id_list .= $elem.',';
+ }
+
+ }
+
+ $agent_id_agente = db_get_all_rows_sql('select id_agente from tagente where id_agente not in ('.$agents_id_list.')');
+
+ foreach ($agent_id_agente as $key => $value) {
+ $agent_id_agente_array[] = $agent_id_agente[$key]['id_agente'];
+ }
+
+ $filter['id_agente'] = $agent_id_agente_array;
+
+ }
+
+ }
+
// Build fields
$fields = array('id_agente', 'alias');
diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php
index a7e6523c7e..9564e87b5e 100644
--- a/pandora_console/operation/events/events.php
+++ b/pandora_console/operation/events/events.php
@@ -275,7 +275,7 @@ if ($id_agent != 0) {
}
$text_module = (string) get_parameter('module_search', '');
-$id_agent_module = get_parameter('module_search_hidden', 0);
+$id_agent_module = get_parameter('module_search_hidden', get_parameter('id_agent_module',0));
if ($id_agent_module != 0) {
$text_module = db_get_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id_agent_module);
if ($text_module == false) {
diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec
index b1397231d1..f014ac5dbf 100644
--- a/pandora_console/pandora_console.redhat.spec
+++ b/pandora_console/pandora_console.redhat.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 7.0NG.720
-%define release 180321
+%define release 180322
# User and Group under which Apache is running
%define httpd_name httpd
diff --git a/pandora_console/pandora_console.spec b/pandora_console/pandora_console.spec
index 443fbc28e8..d8681212eb 100644
--- a/pandora_console/pandora_console.spec
+++ b/pandora_console/pandora_console.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 7.0NG.720
-%define release 180321
+%define release 180322
%define httpd_name httpd
# User and Group under which Apache is running
%define httpd_name apache2
diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control
index 5bf6ce8c9b..b004cf734e 100644
--- a/pandora_server/DEBIAN/control
+++ b/pandora_server/DEBIAN/control
@@ -1,5 +1,5 @@
package: pandorafms-server
-Version: 7.0NG.720-180321
+Version: 7.0NG.720-180322
Architecture: all
Priority: optional
Section: admin
diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh
index 6ca7a40a8c..bb5d6efaf5 100644
--- a/pandora_server/DEBIAN/make_deb_package.sh
+++ b/pandora_server/DEBIAN/make_deb_package.sh
@@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
-pandora_version="7.0NG.720-180321"
+pandora_version="7.0NG.720-180322"
package_cpan=0
package_pandora=1
diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm
index b8364fdb6d..6f3e48961a 100644
--- a/pandora_server/lib/PandoraFMS/Config.pm
+++ b/pandora_server/lib/PandoraFMS/Config.pm
@@ -43,7 +43,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.720";
-my $pandora_build = "180321";
+my $pandora_build = "180322";
our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash
diff --git a/pandora_server/lib/PandoraFMS/PluginTools.pm b/pandora_server/lib/PandoraFMS/PluginTools.pm
index b31e623c40..c65a36c6a3 100644
--- a/pandora_server/lib/PandoraFMS/PluginTools.pm
+++ b/pandora_server/lib/PandoraFMS/PluginTools.pm
@@ -31,7 +31,7 @@ our @ISA = qw(Exporter);
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.720";
-my $pandora_build = "180321";
+my $pandora_build = "180322";
our $VERSION = $pandora_version." ".$pandora_build;
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec
index c7f2e5d382..9a87ae5704 100644
--- a/pandora_server/pandora_server.redhat.spec
+++ b/pandora_server/pandora_server.redhat.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 7.0NG.720
-%define release 180321
+%define release 180322
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec
index a190e8b030..80a197e3b4 100644
--- a/pandora_server/pandora_server.spec
+++ b/pandora_server/pandora_server.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 7.0NG.720
-%define release 180321
+%define release 180322
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer
index cfa1cf7d0f..5b362ab884 100755
--- a/pandora_server/pandora_server_installer
+++ b/pandora_server/pandora_server_installer
@@ -9,7 +9,7 @@
# **********************************************************************
PI_VERSION="7.0NG.720"
-PI_BUILD="180321"
+PI_BUILD="180322"
MODE=$1
if [ $# -gt 1 ]; then
diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl
index 87db9b804f..dbf37ee39f 100644
--- a/pandora_server/util/pandora_db.pl
+++ b/pandora_server/util/pandora_db.pl
@@ -33,7 +33,7 @@ use PandoraFMS::Tools;
use PandoraFMS::DB;
# version: define current version
-my $version = "7.0NG.720 PS180321";
+my $version = "7.0NG.720 PS180322";
# Pandora server configuration
my %conf;
diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl
index 201ce190ba..cdb88b534d 100644
--- a/pandora_server/util/pandora_manage.pl
+++ b/pandora_server/util/pandora_manage.pl
@@ -36,7 +36,7 @@ use Encode::Locale;
Encode::Locale::decode_argv;
# version: define current version
-my $version = "7.0NG.720 PS180321";
+my $version = "7.0NG.720 PS180322";
# save program name for logging
my $progname = basename($0);