';
$data = reporting_get_group_stats ();
///////////////
diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php
index d8a7da7fcc..fc3bf64b2f 100644
--- a/pandora_console/godmode/agentes/module_manager_editor_common.php
+++ b/pandora_console/godmode/agentes/module_manager_editor_common.php
@@ -739,6 +739,14 @@ $(document).ready (function () {
event.preventDefault();
}
});
+
+ //validate post_process. Change ',' by '.'
+ $("#submit-updbutton").click (function () {
+ validate_post_process();
+ });
+ $("#submit-crtbutton").click (function () {
+ validate_post_process();
+ });
});
@@ -961,6 +969,12 @@ function delete_relation (num_row, id_relation) {
}
}
+function validate_post_process() {
+ var post_process = $("#text-post_process").val();
+ var new_post_process = post_process.replace(',','.');
+ $("#text-post_process").val(new_post_process);
+}
+
/* End of relationship javascript */
/* ]]> */
diff --git a/pandora_console/godmode/modules/manage_network_components.php b/pandora_console/godmode/modules/manage_network_components.php
index 3cafe9fcdf..c75b7a5812 100644
--- a/pandora_console/godmode/modules/manage_network_components.php
+++ b/pandora_console/godmode/modules/manage_network_components.php
@@ -85,7 +85,13 @@ $max_critical = (float) get_parameter ('max_critical');
$str_critical = (string) get_parameter ('str_critical');
$ff_event = (int) get_parameter ('ff_event');
$history_data = (bool) get_parameter ('history_data');
-$post_process = (float) get_parameter('post_process');
+
+// Don't read as (float) because it lost it's decimals when put into MySQL
+// where are very big and PHP uses scientific notation, p.e:
+// 1.23E-10 is 0.000000000123
+
+$post_process = (string) get_parameter ('post_process', 0.0);
+
$unit = (string) get_parameter('unit');
$id = (int) get_parameter ('id');
$wizard_level = get_parameter ('wizard_level', 'nowizard');
diff --git a/pandora_console/godmode/modules/manage_network_components_form_network.php b/pandora_console/godmode/modules/manage_network_components_form_network.php
index 84c0869ed6..6104fa9462 100644
--- a/pandora_console/godmode/modules/manage_network_components_form_network.php
+++ b/pandora_console/godmode/modules/manage_network_components_form_network.php
@@ -100,3 +100,19 @@ $table->colspan['tcp_receive'][1] = 3;
push_table_row ($data, 'tcp_receive');
?>
+
diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php
index 09240b8d4f..c45b61696e 100644
--- a/pandora_console/include/config_process.php
+++ b/pandora_console/include/config_process.php
@@ -22,7 +22,7 @@
/**
* Pandora build version and version
*/
-$build_version = 'PC140922';
+$build_version = 'PC140923';
$pandora_version = 'v5.1';
// Do not overwrite default timezone set if defined.
diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php
index 41b28bb872..4b1c12acf0 100644
--- a/pandora_console/include/functions_custom_graphs.php
+++ b/pandora_console/include/functions_custom_graphs.php
@@ -152,7 +152,7 @@ function custom_graphs_get_user ($id_user = 0, $only_names = false, $returnAllGr
function custom_graphs_print($id_graph, $height, $width, $period,
$stacked = null, $return = false, $date = 0, $only_image = false,
- $background_color = 'white', $modules_param = array()) {
+ $background_color = 'white', $modules_param = array(), $homeurl = '') {
global $config;
@@ -210,7 +210,7 @@ function custom_graphs_print($id_graph, $height, $width, $period,
$stacked,
$date,
$only_image,
- '',
+ $homeurl,
1,
false,
false,
diff --git a/pandora_console/include/help/en/help_postprocess.php b/pandora_console/include/help/en/help_postprocess.php
index 3b5f3b5bcd..985904e475 100644
--- a/pandora_console/include/help/en/help_postprocess.php
+++ b/pandora_console/include/help/en/help_postprocess.php
@@ -5,6 +5,11 @@
?>
Post process
-Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000.
+Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000. Some other interesting examples are:
+
Convert timeticks (SNMP) to Days: 0.000000115740741
+
Convert bytes into MegaBytes: 0,00000095367432
+
Convert bytes into GigaBytes: 0,00000000093132
+
Convert megabits in megabytes: 0,125
+
An empty value, or 0, will disable the usage of post process (default).
diff --git a/pandora_console/include/help/es/help_postprocess.php b/pandora_console/include/help/es/help_postprocess.php
index cd3991156c..1e3b87ec9a 100644
--- a/pandora_console/include/help/es/help_postprocess.php
+++ b/pandora_console/include/help/es/help_postprocess.php
@@ -6,5 +6,13 @@
Posprocesado
El posprocesado es un valor numérico usado después de obtener el dato para posprocesar dicho dato de forma numérica en una multiplicación. Por ejemplo, datos con un valor de 1000 con un valor de Posprocesado de 1024 darán como resultado un valor final de 1024000. Esto es útil para normalizar los datos, convertir entre unidades, etc. Esto también se puede usar para dividir, usando un valor de multiplicador inferior a 1, como, por ejemplo, 0.001 que dividirá el valor actual por 1000.
+
+Algunos ejemplos interesantes, son por ejemplo:
+
Convertir timeticks (SNMP) a Dias: 0.000000115740741
+
Convertir bytes en MegaBytes: 0,00000095367432
+
Convertir bytes en GigaBytes: 0,00000000093132
+
Convertir megabits en megabytes: 0,125
+
+
Un valor vacío o «0» desactivará el uso del posprocesado (predeterminado).
diff --git a/pandora_console/include/javascript/pandora_snmp_browser.js b/pandora_console/include/javascript/pandora_snmp_browser.js
index bfada5f5e6..76661740bb 100644
--- a/pandora_console/include/javascript/pandora_snmp_browser.js
+++ b/pandora_console/include/javascript/pandora_snmp_browser.js
@@ -22,9 +22,9 @@ function snmpBrowse () {
var snmp3_auth_user = $('#text-snmp3_browser_auth_user').val();
var snmp3_security_level = $('#snmp3_browser_security_level').val();
var snmp3_auth_method = $('#snmp3_browser_auth_method').val();
- var snmp3_auth_pass = $('#text-snmp3_browser_auth_pass').val();
+ var snmp3_auth_pass = $('#password-snmp3_browser_auth_pass').val();
var snmp3_privacy_method = $('#snmp3_browser_privacy_method').val();
- var snmp3_privacy_pass = $('#text-snmp3_browser_privacy_pass').val();
+ var snmp3_privacy_pass = $('#password-snmp3_browser_privacy_pass').val();
var ajax_url = $('#hidden-ajax_url').val();
// Prepare the AJAX call
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 00baa4c3c6..3411c6a6bb 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -2724,7 +2724,7 @@ table#policy_modules td * {
}
#news_board {
- width: 750px;
+ width: 530px;
}
#right_column_logon_ok {
diff --git a/pandora_console/install.php b/pandora_console/install.php
index 39c1951703..2d454e5eaf 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -63,7 +63,7 @@
";
+ $side_layer_params['body_text'] .=__('Please, make your changes and apply with the Reload button');
+
+ // MENU
+ $side_layer_params['body_text'] .= '';
+ $side_layer_params['body_text'] .= '
'; // outer
+
+ // ICONS
+ $side_layer_params['icon_closed'] = '/images/graphmenu_arrow_hide.png';
+ $side_layer_params['icon_open'] = '/images/graphmenu_arrow.png';
+
+ // SIZE
+ $side_layer_params['width'] = 500;
+
+ // POSITION
+ $side_layer_params['position'] = 'left';
+
+ html_print_side_layer($side_layer_params);
+
+ // Hidden div to forced title
+ html_print_div(array('id' => 'forced_title_layer', 'class' => 'forced_title_layer', 'hidden' => true));
+?>
+
+
+
+
diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec
index 20431b89d3..d8a6ed18fd 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 5.1
-%define release 140922
+%define release 140923
# 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 6dad7f6119..9dec35f2b5 100644
--- a/pandora_console/pandora_console.spec
+++ b/pandora_console/pandora_console.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 5.1
-%define release 140922
+%define release 140923
%define httpd_name httpd
# User and Group under which Apache is running
%define httpd_name apache2
diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql
index 17d1547707..63ab1e88f2 100644
--- a/pandora_console/pandoradb.sql
+++ b/pandora_console/pandoradb.sql
@@ -203,7 +203,7 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` (
`plugin_pass` text,
`plugin_parameter` text,
`id_plugin` int(10) default '0',
- `post_process` double(18,15) default 0,
+ `post_process` double(24,15) default 0,
`prediction_module` bigint(14) default '0',
`max_timeout` int(4) unsigned default '0',
`max_retries` int(4) unsigned default '0',
@@ -707,7 +707,7 @@ CREATE TABLE IF NOT EXISTS `tnetwork_component` (
`custom_string_3` text,
`custom_integer_1` int(10) default 0,
`custom_integer_2` int(10) default 0,
- `post_process` double(18,15) default 0,
+ `post_process` double(24,15) default 0,
`unit` text,
`wizard_level` enum('basic','advanced','nowizard') default 'nowizard',
`macros` text,
diff --git a/pandora_console/pandoradb_data.sql b/pandora_console/pandoradb_data.sql
index 03d12441a2..141161bf82 100644
--- a/pandora_console/pandoradb_data.sql
+++ b/pandora_console/pandoradb_data.sql
@@ -38,7 +38,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
('graph_res','5'),
('step_compact','1'),
('db_scheme_version','5.1'),
-('db_scheme_build','PD140922'),
+('db_scheme_build','PD140923'),
('show_unknown','0'),
('show_lastalerts','1'),
('style','pandora'),
diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control
index 3ea7346363..d4b832c690 100644
--- a/pandora_server/DEBIAN/control
+++ b/pandora_server/DEBIAN/control
@@ -1,10 +1,10 @@
package: pandorafms-server
-Version: 5.1-140922
+Version: 5.1-140923
Architecture: all
Priority: optional
Section: admin
Installed-Size: 640
Maintainer: Miguel de Dios
Homepage: http://pandorafms.org/
-Depends: perl (>= 5.8), libdbi-perl, libdbd-mysql-perl, libtime-format-perl, libnetaddr-ip-perl, libtime-format-perl, libxml-simple-perl, libxml-twig-perl, libhtml-parser-perl, snmp, snmpd, traceroute, xprobe2, nmap, sudo, libwww-perl, libsocket6-perl, libio-socket-inet6-perl, snmp-mibs-downloader, libjson-perl, libnet-telnet-perl
+Depends: perl (>= 5.8), libdbi-perl, libdbd-mysql-perl, libtime-format-perl, libnetaddr-ip-perl, libtime-format-perl, libxml-simple-perl, libxml-twig-perl, libhtml-parser-perl, snmp, snmpd, traceroute, xprobe2, nmap, sudo, libwww-perl, libsocket6-perl, libio-socket-inet6-perl, snmp-mibs-downloader, libjson-perl, libnet-telnet-perl, libencode-locale-perl
Description: Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments. This is the server package. Server makes the remote checks and process information transfer by Pandora FMS agents to the server.
diff --git a/pandora_server/DEBIAN/make_deb_package.sh b/pandora_server/DEBIAN/make_deb_package.sh
index cf2eb1f17f..7fba1f2876 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="5.1-140922"
+pandora_version="5.1-140923"
package_cpan=0
package_pandora=1
diff --git a/pandora_server/bin/pandora_server b/pandora_server/bin/pandora_server
index a46d1e806a..5c296b35f8 100755
--- a/pandora_server/bin/pandora_server
+++ b/pandora_server/bin/pandora_server
@@ -516,7 +516,7 @@ sub main() {
pandora_startup ();
# Start thread to execute server tasks on the master server
- threads->create('pandora_server_tasks', (\%Config))->detach() if ($Config{"master"} == 1);
+ threads->create('pandora_server_tasks', (\%Config))->detach() if ($Config{"pandora_master"} == 1);
# Generate 'going up' events
foreach my $server (@Servers) {
diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm
index 84871c48b7..9e26113577 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 = "5.1";
-my $pandora_build = "140922";
+my $pandora_build = "140923";
our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash
diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec
index 7d54cda645..f29c772217 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 5.1
-%define release 140922
+%define release 140923
Summary: Pandora FMS Server
Name: %{name}
@@ -28,7 +28,7 @@ Requires: perl-XML-Simple perl-XML-Twig net-snmp-utils
Requires: perl-NetAddr-IP net-snmp net-tools
Requires: perl-IO-Socket-INET6 perl-Socket6 perl-Net-Telnet
Requires: nmap wmic sudo perl-JSON
-Requires: perl-Time-HiRes
+Requires: perl-Time-HiRes perl-Encode-Locale
%description
Pandora FMS is a monitoring system for big IT environments. It uses remote tests, or local agents to grab information. Pandora supports all standard OS (Linux, AIX, HP-UX, Solaris and Windows XP,2000/2003), and support multiple setups in HA enviroments.
diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec
index a5e26cc899..db4e65fdcb 100644
--- a/pandora_server/pandora_server.spec
+++ b/pandora_server/pandora_server.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 5.1
-%define release 140922
+%define release 140923
Summary: Pandora FMS Server
Name: %{name}
@@ -26,6 +26,7 @@ Requires: perl-DBI perl-DBD-mysql perl-libwww-perl
Requires: perl-NetAddr-IP net-snmp net-tools perl-XML-Twig
Requires: nmap wmic sudo perl-HTML-Tree perl-XML-Simple perl-Net-Telnet
Requires: perl-IO-Socket-INET6 perl-Socket6 snmp-mibs perl-JSON
+Requires: perl-Encode-Locale
%description
diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl
index 98d865d64c..53798069e1 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 = "5.1 PS140922";
+my $version = "5.1 PS140923";
# Pandora server configuration
my %conf;
diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl
index ac9eaa0b8a..7d862d9021 100644
--- a/pandora_server/util/pandora_manage.pl
+++ b/pandora_server/util/pandora_manage.pl
@@ -34,7 +34,7 @@ use Encode::Locale;
Encode::Locale::decode_argv;
# version: define current version
-my $version = "5.1 PS140922";
+my $version = "5.1 PS140923";
# save program name for logging
my $progname = basename($0);