diff --git a/pandora_agents/unix/DEBIAN/control b/pandora_agents/unix/DEBIAN/control
index 8313837b17..5deb440991 100644
--- a/pandora_agents/unix/DEBIAN/control
+++ b/pandora_agents/unix/DEBIAN/control
@@ -1,5 +1,5 @@
package: pandorafms-agent-unix
-Version: 7.0NG.767-221215
+Version: 7.0NG.767-221216
Architecture: all
Priority: optional
Section: admin
diff --git a/pandora_agents/unix/DEBIAN/make_deb_package.sh b/pandora_agents/unix/DEBIAN/make_deb_package.sh
index 29cbbaf2fe..e0878747c0 100644
--- a/pandora_agents/unix/DEBIAN/make_deb_package.sh
+++ b/pandora_agents/unix/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.767-221215"
+pandora_version="7.0NG.767-221216"
echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent
index e4f0f320dd..24d37049f3 100755
--- a/pandora_agents/unix/pandora_agent
+++ b/pandora_agents/unix/pandora_agent
@@ -1015,7 +1015,7 @@ my $Sem = undef;
my $ThreadSem = undef;
use constant AGENT_VERSION => '7.0NG.767';
-use constant AGENT_BUILD => '221215';
+use constant AGENT_BUILD => '221216';
# Agent log default file size maximum and instances
use constant DEFAULT_MAX_LOG_SIZE => 600000;
diff --git a/pandora_agents/unix/pandora_agent.redhat.spec b/pandora_agents/unix/pandora_agent.redhat.spec
index 5a518db4fe..7f06901243 100644
--- a/pandora_agents/unix/pandora_agent.redhat.spec
+++ b/pandora_agents/unix/pandora_agent.redhat.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 7.0NG.767
-%define release 221215
+%define release 221216
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}
diff --git a/pandora_agents/unix/pandora_agent.spec b/pandora_agents/unix/pandora_agent.spec
index dc8856f915..fb8258680b 100644
--- a/pandora_agents/unix/pandora_agent.spec
+++ b/pandora_agents/unix/pandora_agent.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 7.0NG.767
-%define release 221215
+%define release 221216
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}
diff --git a/pandora_agents/unix/pandora_agent_installer b/pandora_agents/unix/pandora_agent_installer
index 64edaceb41..3f1c287ce0 100755
--- a/pandora_agents/unix/pandora_agent_installer
+++ b/pandora_agents/unix/pandora_agent_installer
@@ -10,7 +10,7 @@
# **********************************************************************
PI_VERSION="7.0NG.767"
-PI_BUILD="221215"
+PI_BUILD="221216"
OS_NAME=`uname -s`
FORCE=0
diff --git a/pandora_agents/win32/installer/pandora.mpi b/pandora_agents/win32/installer/pandora.mpi
index 14f984071d..b7fa8b178f 100644
--- a/pandora_agents/win32/installer/pandora.mpi
+++ b/pandora_agents/win32/installer/pandora.mpi
@@ -186,7 +186,7 @@ UpgradeApplicationID
{}
Version
-{221215}
+{221216}
ViewReadme
{Yes}
diff --git a/pandora_agents/win32/pandora.cc b/pandora_agents/win32/pandora.cc
index bd52d550d9..dadf0a01aa 100644
--- a/pandora_agents/win32/pandora.cc
+++ b/pandora_agents/win32/pandora.cc
@@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1
-#define PANDORA_VERSION ("7.0NG.767 Build 221215")
+#define PANDORA_VERSION ("7.0NG.767 Build 221216")
string pandora_path;
string pandora_dir;
diff --git a/pandora_agents/win32/versioninfo.rc b/pandora_agents/win32/versioninfo.rc
index 6dc892b926..d8e730a7d5 100644
--- a/pandora_agents/win32/versioninfo.rc
+++ b/pandora_agents/win32/versioninfo.rc
@@ -11,7 +11,7 @@ BEGIN
VALUE "LegalCopyright", "Artica ST"
VALUE "OriginalFilename", "PandoraAgent.exe"
VALUE "ProductName", "Pandora FMS Windows Agent"
- VALUE "ProductVersion", "(7.0NG.767(Build 221215))"
+ VALUE "ProductVersion", "(7.0NG.767(Build 221216))"
VALUE "FileVersion", "1.0.0.0"
END
END
diff --git a/pandora_console/DEBIAN/control b/pandora_console/DEBIAN/control
index 9ff1bec468..73fc08a7c3 100644
--- a/pandora_console/DEBIAN/control
+++ b/pandora_console/DEBIAN/control
@@ -1,5 +1,5 @@
package: pandorafms-console
-Version: 7.0NG.767-221215
+Version: 7.0NG.767-221216
Architecture: all
Priority: optional
Section: admin
diff --git a/pandora_console/DEBIAN/make_deb_package.sh b/pandora_console/DEBIAN/make_deb_package.sh
index e78289119f..f90b2d5b3c 100644
--- a/pandora_console/DEBIAN/make_deb_package.sh
+++ b/pandora_console/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.767-221215"
+pandora_version="7.0NG.767-221216"
package_pear=0
package_pandora=1
diff --git a/pandora_console/extras/mr/60.sql b/pandora_console/extras/mr/60.sql
index 638c4b3031..c263f37864 100644
--- a/pandora_console/extras/mr/60.sql
+++ b/pandora_console/extras/mr/60.sql
@@ -1,5 +1,8 @@
START TRANSACTION;
+ALTER TABLE treport_content ADD COLUMN use_prefix_notation tinyint(1) default '1';
+ALTER TABLE treport_content_template ADD COLUMN use_prefix_notation tinyint(1) default '1';
+
DROP TABLE IF EXISTS `tphase`;
DROP TABLE IF EXISTS `ttransaction`;
diff --git a/pandora_console/godmode/reporting/reporting_builder.item_editor.php b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
index 2eb9ca0c1d..80e72e65cf 100755
--- a/pandora_console/godmode/reporting/reporting_builder.item_editor.php
+++ b/pandora_console/godmode/reporting/reporting_builder.item_editor.php
@@ -169,6 +169,7 @@ $visual_format = 0;
$filter_search = '';
$filter_exclude = '';
+$use_prefix_notation = true;
// Added for select fields.
$total_time = true;
@@ -461,6 +462,7 @@ switch ($action) {
$lapse = $item['lapse'];
$lapse_calc = $item['lapse_calc'];
$visual_format = $item['visual_format'];
+ $use_prefix_notation = $item['use_prefix_notation'];
break;
case 'max_value':
@@ -476,6 +478,7 @@ switch ($action) {
$lapse = $item['lapse'];
$lapse_calc = $item['lapse_calc'];
$visual_format = $item['visual_format'];
+ $use_prefix_notation = $item['use_prefix_notation'];
break;
case 'min_value':
@@ -491,6 +494,7 @@ switch ($action) {
$lapse = $item['lapse'];
$lapse_calc = $item['lapse_calc'];
$visual_format = $item['visual_format'];
+ $use_prefix_notation = $item['use_prefix_notation'];
break;
case 'sumatory':
@@ -504,6 +508,7 @@ switch ($action) {
$idAgentModule = $item['id_agent_module'];
$period = $item['period'];
$uncompressed_module = $item['uncompressed_module'];
+ $use_prefix_notation = $item['use_prefix_notation'];
break;
case 'historical_data':
@@ -773,6 +778,7 @@ switch ($action) {
$show_resume = $item['show_resume'];
$show_graph = $item['show_graph'];
$order_uptodown = $item['order_uptodown'];
+ $use_prefix_notation = $item['use_prefix_notation'];
$text_agent = '';
if (isset($style['text_agent']) === true
@@ -3404,6 +3410,22 @@ $class = 'databox filters';
+
data[$row][1] = ''.__('Example').' '.date($config['date_f
$table_other->data[$row][1] .= html_print_input_text('date_format', $config['date_format'], '', 30, 100, true);
$row++;
+$decimal_separators = [
+ ',' => ',',
+ '.' => '.'
+];
+
+$table_other->data[$row][0] = __('Decimal separator');
+$table_other->data[$row][1] = html_print_select(
+ $decimal_separators,
+ 'decimal_separator',
+ $config['decimal_separator'],
+ '',
+ '',
+ '',
+ true,
+ false,
+ false
+);
+
+
+$row++;
+
if ($config['prominent_time'] == 'comparation') {
$timestamp = false;
$comparation = true;
diff --git a/pandora_console/include/ajax/custom_fields.php b/pandora_console/include/ajax/custom_fields.php
index 3fd81ec4b0..77e79800aa 100644
--- a/pandora_console/include/ajax/custom_fields.php
+++ b/pandora_console/include/ajax/custom_fields.php
@@ -429,7 +429,9 @@ if (check_login()) {
$table_modules->data[$key][1] = remove_right_zeros(
number_format(
$value['datos'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
} else {
diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php
index c43da3e146..8efb03df12 100755
--- a/pandora_console/include/ajax/module.php
+++ b/pandora_console/include/ajax/module.php
@@ -499,7 +499,9 @@ if (check_login()) {
$data[] = remove_right_zeros(
number_format(
$row[$attr[0]],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
}
@@ -507,7 +509,9 @@ if (check_login()) {
$data[] = remove_right_zeros(
number_format(
$row[$attr[0]],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
}
@@ -524,7 +528,9 @@ if (check_login()) {
$data[] = remove_right_zeros(
number_format(
$row[$attr[0]],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
}
diff --git a/pandora_console/include/class/AgentWizard.class.php b/pandora_console/include/class/AgentWizard.class.php
index 5dad75e5ad..7c5a827b51 100644
--- a/pandora_console/include/class/AgentWizard.class.php
+++ b/pandora_console/include/class/AgentWizard.class.php
@@ -2636,6 +2636,8 @@ class AgentWizard extends HTML
*/
private function resultsInterfaceWizard()
{
+ global $config;
+
$generalInterfaceModules = $this->getInterfacesModules();
$generalInterfaceTables = [];
$generalInterfaceModulesUpdated = [];
@@ -2849,7 +2851,12 @@ class AgentWizard extends HTML
// Format current value with thousands and decimals.
if (is_numeric($currentValue) === true) {
$decimals = (is_float($currentValue) === true) ? 2 : 0;
- $currentValue = number_format($currentValue, $decimals);
+ $currentValue = number_format(
+ $currentValue,
+ $decimals,
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ );
}
// It unit of measure have data, attach to current value.
diff --git a/pandora_console/include/class/Diagnostics.class.php b/pandora_console/include/class/Diagnostics.class.php
index a8f84f04be..db9f459f00 100644
--- a/pandora_console/include/class/Diagnostics.class.php
+++ b/pandora_console/include/class/Diagnostics.class.php
@@ -987,7 +987,7 @@ class Diagnostics extends Wizard
],
'tablesFragmentationValue' => [
'name' => __('Tables fragmentation (current value)'),
- 'value' => number_format($tFragmentationValue, 2).'%',
+ 'value' => number_format($tFragmentationValue, 2, $config['decimal_separator'], $config['thousand_separator']).'%',
],
'tablesFragmentationStatus' => [
'name' => __('Table fragmentation status'),
@@ -1122,7 +1122,9 @@ class Diagnostics extends Wizard
if ($totalModuleIntervalTime !== false) {
$averageTime = number_format(
((int) $totalNetworkModules / (int) $totalModuleIntervalTime),
- 3
+ 3,
+ $config['decimal_separator'],
+ $config['thousand_separator']
);
}
@@ -1749,7 +1751,7 @@ class Diagnostics extends Wizard
$sizeServerLog = number_format($fileSize);
$sizeServerLog = (0 + str_replace(',', '', $sizeServerLog));
- $value = number_format(($fileSize / $mega), 3);
+ $value = number_format(($fileSize / $mega), 3, $config['decimal_separator'], $config['thousand_separator']);
$message = __('You have more than 10 MB of logs');
$status = 0;
if ($sizeServerLog <= $tenMega) {
diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php
index d8bce9b9bd..cf35d1164e 100644
--- a/pandora_console/include/config_process.php
+++ b/pandora_console/include/config_process.php
@@ -20,7 +20,7 @@
/**
* Pandora build version and version
*/
-$build_version = 'PC221215';
+$build_version = 'PC221216';
$pandora_version = 'v7.0NG.767';
// Do not overwrite default timezone set if defined.
diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php
index 3ee1815e08..eadd275bcc 100644
--- a/pandora_console/include/functions.php
+++ b/pandora_console/include/functions.php
@@ -219,6 +219,8 @@ function list_files($directory, $stringSearch, $searchHandler, $return=false)
*/
function format_numeric($number, $decimals=1)
{
+ global $config;
+
// Translate to float in case there are characters in the string so
// fmod doesn't throw a notice
$number = (float) $number;
@@ -227,17 +229,11 @@ function format_numeric($number, $decimals=1)
return 0;
}
- // Translators: This is separator of decimal point
- $dec_point = __('.');
- // Translators: This is separator of decimal point
- $thousands_sep = __(',');
-
- // If has decimals
if (fmod($number, 1) > 0) {
- return number_format($number, $decimals, $dec_point, $thousands_sep);
+ return number_format($number, $decimals, $config['decimal_separator'], $config['thousand_separator']);
}
- return number_format($number, 0, $dec_point, $thousands_sep);
+ return number_format($number, 0, $config['decimal_separator'], $config['thousand_separator']);
}
@@ -4084,14 +4080,18 @@ function series_type_graph_array($data, $show_elements_graph)
$data_return['legend'][$key] .= remove_right_zeros(
number_format(
$value['min'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
$data_return['legend'][$key] .= ' '.__('Max:');
$data_return['legend'][$key] .= remove_right_zeros(
number_format(
$value['max'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
$data_return['legend'][$key] .= ' '._('Avg:');
@@ -4099,7 +4099,8 @@ function series_type_graph_array($data, $show_elements_graph)
number_format(
$value['avg'],
$config['graph_precision'],
- $config['csv_decimal_separator']
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
).' '.$str;
}
@@ -4156,7 +4157,9 @@ function series_type_graph_array($data, $show_elements_graph)
$data_return['legend'][$key] .= remove_right_zeros(
number_format(
$value['data'][0][1],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
).' '.$str;
}
diff --git a/pandora_console/include/functions_config.php b/pandora_console/include/functions_config.php
index 5c4184d81e..cc49761959 100644
--- a/pandora_console/include/functions_config.php
+++ b/pandora_console/include/functions_config.php
@@ -1475,6 +1475,15 @@ function config_update_config()
if (config_update_value('use_data_multiplier', get_parameter('use_data_multiplier', '1'), true) === false) {
$error_update[] = __('Use data multiplier');
}
+
+ if (config_update_value('decimal_separator', (string) get_parameter('decimal_separator', '.'), true) === false) {
+ $error_update[] = __('Decimal separator');
+ } else {
+ $thousand_separator = ((string) get_parameter('decimal_separator', '.') === '.') ? ',' : '.';
+ if (config_update_value('thousand_separator', $thousand_separator, true) === false) {
+ $error_update[] = __('Thousand separator');
+ }
+ }
break;
case 'net':
@@ -3479,6 +3488,10 @@ function config_process_config()
config_update_value('module_library_password', '');
}
+ if (!isset($config['decimal_separator'])) {
+ config_update_value('decimal_separator', '.');
+ }
+
// Finally, check if any value was overwritten in a form.
config_update_config();
}
diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php
index 9e0333965d..31c2e5214a 100644
--- a/pandora_console/include/functions_html.php
+++ b/pandora_console/include/functions_html.php
@@ -1950,7 +1950,7 @@ function html_print_extended_select_for_post_process(
$found = false;
if ($selected) {
- if (array_key_exists(number_format($selected, 14, '.', ','), $fields)) {
+ if (array_key_exists(number_format($selected, 14, $config['decimal_separator'], $config['thousand_separator']), $fields)) {
$found = true;
}
}
diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php
index 443e482173..59ead9b943 100755
--- a/pandora_console/include/functions_modules.php
+++ b/pandora_console/include/functions_modules.php
@@ -2589,12 +2589,12 @@ function modules_get_agentmodule_data_for_humans($module)
$salida = human_milliseconds_to_string($module['datos']);
}
} else {
- $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
}
break;
default:
- $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
break;
}
break;
@@ -2613,12 +2613,12 @@ function modules_get_agentmodule_data_for_humans($module)
$salida = human_milliseconds_to_string($module['datos']);
}
} else {
- $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
}
break;
default:
- $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($module['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
break;
}
}
@@ -2900,7 +2900,7 @@ function modules_get_status($id_agent_module, $db_status, $data, &$status, &$tit
}
if (is_numeric($data)) {
- $title .= ': '.remove_right_zeros(number_format($data, $config['graph_precision']));
+ $title .= ': '.remove_right_zeros(number_format($data, $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
} else {
$text = io_safe_output($data);
diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php
index 09322c7a8c..9cd403d69c 100755
--- a/pandora_console/include/functions_reporting.php
+++ b/pandora_console/include/functions_reporting.php
@@ -1833,14 +1833,24 @@ function reporting_event_top_n(
$divisor = get_data_multiplier($units[$key_dt]);
- $data['formated_value'] = format_for_graph(
- $dt,
- 2,
- '.',
- ',',
- $divisor,
- $units[$key_dt]
- );
+ if ((bool) $content['use_prefix_notation'] === false) {
+ $data['formated_value'] = number_format(
+ $dt,
+ 2,
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ ).' '.$units[$key_dt];
+ } else {
+ $data['formated_value'] = format_for_graph(
+ $dt,
+ 2,
+ '.',
+ ',',
+ $divisor,
+ $units[$key_dt]
+ );
+ }
+
$data_return[] = $data;
}
@@ -1901,14 +1911,25 @@ function reporting_event_top_n(
$data['agent'] = $an;
$data['module'] = $module_name[$key_an];
$data['value'] = $data_top[$key_an];
- $data['formated_value'] = format_for_graph(
- $data_top[$key_an],
- 2,
- '.',
- ',',
- $divisor,
- $units[$key_an]
- );
+
+ if ((bool) $content['use_prefix_notation'] === false) {
+ $data['formated_value'] = number_format(
+ $data_top[$key_an],
+ 2,
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ ).' '.$units[$key_an];
+ } else {
+ $data['formated_value'] = format_for_graph(
+ $data_top[$key_an],
+ 2,
+ '.',
+ ',',
+ $divisor,
+ $units[$key_an]
+ );
+ }
+
$data_return[] = $data;
}
@@ -6917,6 +6938,13 @@ function reporting_value($report, $content, $type, $pdf=false)
if (!$config['simple_module_value']) {
$formated_value = $value;
+ } else if ((bool) $content['use_prefix_notation'] === false) {
+ $formated_value = number_format(
+ $value,
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ ).' '.$unit;
} else {
$formated_value = format_for_graph(
$value,
@@ -7077,6 +7105,13 @@ function reporting_value($report, $content, $type, $pdf=false)
);
if (!$config['simple_module_value']) {
$formated_value = $value;
+ } else if ((bool) $content['use_prefix_notation'] === false) {
+ $formated_value = number_format(
+ $value,
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ ).' '.$unit;
} else {
$divisor = get_data_multiplier($unit);
diff --git a/pandora_console/include/functions_reporting_html.php b/pandora_console/include/functions_reporting_html.php
index a468a451fe..c116c3faa8 100644
--- a/pandora_console/include/functions_reporting_html.php
+++ b/pandora_console/include/functions_reporting_html.php
@@ -2292,7 +2292,9 @@ function reporting_html_agent_module_status($table, $item, $pdf=0)
$row['data_module'] = remove_right_zeros(
number_format(
$data['data_module'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
} else {
@@ -2785,7 +2787,7 @@ function reporting_html_historical_data($table, $item, $pdf=0)
} else {
$row = [
$data[__('Date')],
- remove_right_zeros(number_format($data[__('Data')], $config['graph_precision'])),
+ remove_right_zeros(number_format($data[__('Data')], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])),
];
}
@@ -2925,7 +2927,9 @@ function reporting_html_last_value($table, $item, $pdf=0)
$dataDatos = remove_right_zeros(
number_format(
$item['data']['datos'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
} else {
@@ -3470,7 +3474,9 @@ function reporting_html_monitor_report($table, $item, $mini, $pdf=0)
).' '.__('OK').': '.remove_right_zeros(
number_format(
$item['data']['ok']['value'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
).' %';
@@ -3481,7 +3487,9 @@ function reporting_html_monitor_report($table, $item, $mini, $pdf=0)
).' '.__('Not OK').': '.remove_right_zeros(
number_format(
$item['data']['fail']['value'],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
).' % '.'';
}
@@ -3835,7 +3843,9 @@ function reporting_html_value(
remove_right_zeros(
number_format(
$data[__('Maximun')],
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
),
];
diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php
index bcade2452b..e462c3a5c7 100755
--- a/pandora_console/include/functions_treeview.php
+++ b/pandora_console/include/functions_treeview.php
@@ -193,7 +193,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') {
$data = "".human_milliseconds_to_string($last_data['datos']).'';
} else if (is_numeric($last_data['datos'])) {
- $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'])).'';
+ $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])).'';
} else {
$data = ui_print_truncate_text(
io_safe_output($last_data['datos']),
@@ -209,7 +209,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
default:
if (is_numeric($last_data['datos'])) {
- $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'])).'';
+ $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])).'';
} else {
$data = ui_print_truncate_text(
io_safe_output($last_data['datos']),
@@ -232,7 +232,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') {
$data = "".human_milliseconds_to_string($last_data['datos']).'';
} else if (is_numeric($last_data['datos'])) {
- $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'])).'';
+ $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])).'';
} else {
$data = ui_print_truncate_text(
io_safe_output($last_data['datos']),
@@ -248,7 +248,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
default:
if (is_numeric($last_data['datos'])) {
- $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'])).'';
+ $data = "".remove_right_zeros(number_format($last_data['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])).'';
} else {
$data = ui_print_truncate_text(
io_safe_output($last_data['datos']),
@@ -271,7 +271,7 @@ function treeview_printModuleTable($id_module, $server_data=false, $no_head=fals
$data_macro = modules_get_unit_macro($last_data['datos'], $module['unit']);
if ($data_macro) {
if (is_numeric($data_macro)) {
- $last_data_str = "".remove_right_zeros(number_format($data_macro, $config['graph_precision'])).'';
+ $last_data_str = "".remove_right_zeros(number_format($data_macro, $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])).'';
} else {
$last_data_str = ui_print_truncate_text(
io_safe_output($data_macro),
diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php
index f31d02b3c5..52ad703edd 100755
--- a/pandora_console/include/functions_ui.php
+++ b/pandora_console/include/functions_ui.php
@@ -6592,10 +6592,11 @@ function ui_print_comments($comments)
} else {
$rest_time = (time() - $last_comment['utimestamp']);
$time_last = (($rest_time / 60) / 60);
- $comentario = ''.number_format($time_last, 0).' Hours ('.$last_comment['id_user'].'): '.$last_comment['comment'].'';
+
+ $comentario = ''.number_format($time_last, 0, $config['decimal_separator'], $config['thousand_separator']).' Hours ('.$last_comment['id_user'].'): '.$last_comment['comment'].'';
if (strlen($comentario) > '200px') {
- $comentario = ''.number_format($time_last, 0).' Hours ('.$last_comment['id_user'].'): '.$short_comment.'...';
+ $comentario = ''.number_format($time_last, 0, $config['decimal_separator'], $config['thousand_separator']).' Hours ('.$last_comment['id_user'].'): '.$short_comment.'...';
}
}
diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php
index 9b1454ab4b..d1b2e60fdc 100755
--- a/pandora_console/include/functions_visual_map.php
+++ b/pandora_console/include/functions_visual_map.php
@@ -924,7 +924,7 @@ function visual_map_print_item(
$value_text = format_for_graph($module_value, 2);
if ($value_text <= 0) {
- $value_text = remove_right_zeros(number_format($module_value, $config['graph_precision']));
+ $value_text = remove_right_zeros(number_format($module_value, $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
}
if (!empty($unit_text)) {
@@ -1743,7 +1743,7 @@ function visual_map_print_item(
|| (modules_is_boolean($layoutData['id_agente_modulo']) && $layoutData['show_last_value'] != 0)
) {
if (is_numeric($value)) {
- $img_style_title .= ' '.__('Last value: ').remove_right_zeros(number_format($value, $config['graph_precision']));
+ $img_style_title .= ' '.__('Last value: ').remove_right_zeros(number_format($value, $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
} else {
$img_style_title .= ' '.__('Last value: ').$value;
}
@@ -1881,13 +1881,13 @@ function visual_map_print_item(
echo ' |
';
echo "';
$output .= remove_right_zeros(
- number_format($data_module, $config['graph_precision'])
+ number_format($data_module, $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])
);
$output .= '
';
diff --git a/pandora_console/include/lib/Dashboard/Widgets/module_value.php b/pandora_console/include/lib/Dashboard/Widgets/module_value.php
index 41fdd41663..6577ad3c89 100644
--- a/pandora_console/include/lib/Dashboard/Widgets/module_value.php
+++ b/pandora_console/include/lib/Dashboard/Widgets/module_value.php
@@ -439,7 +439,9 @@ class ModuleValueWidget extends Widget
$dataDatos = remove_right_zeros(
number_format(
$data_module,
- $config['graph_precision']
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
)
);
} else {
diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php b/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php
index 27b400db97..50fca70543 100644
--- a/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php
+++ b/pandora_console/include/rest-api/models/VisualConsole/Items/Group.php
@@ -397,10 +397,12 @@ final class Group extends Item
string $groupName,
array $agentStats
): string {
- $critical = \number_format($agentStats['critical'], 2).'%';
- $warning = \number_format($agentStats['warning'], 2).'%';
- $normal = \number_format($agentStats['normal'], 2).'%';
- $unknown = \number_format($agentStats['unknown'], 2).'%';
+ global $config;
+
+ $critical = \number_format($agentStats['critical'], 2, $config['decimal_separator'], $config['thousand_separator']).'%';
+ $warning = \number_format($agentStats['warning'], 2, $config['decimal_separator'], $config['thousand_separator']).'%';
+ $normal = \number_format($agentStats['normal'], 2, $config['decimal_separator'], $config['thousand_separator']).'%';
+ $unknown = \number_format($agentStats['unknown'], 2, $config['decimal_separator'], $config['thousand_separator']).'%';
$html = '';
$html .= '
';
diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/Percentile.php b/pandora_console/include/rest-api/models/VisualConsole/Items/Percentile.php
index 19e14f3456..657f73364d 100644
--- a/pandora_console/include/rest-api/models/VisualConsole/Items/Percentile.php
+++ b/pandora_console/include/rest-api/models/VisualConsole/Items/Percentile.php
@@ -396,8 +396,8 @@ final class Percentile extends Item
$data['value'] = (float) \number_format(
(float) $moduleValue,
(int) $config['graph_precision'],
- '.',
- ''
+ $config['decimal_separator'],
+ $config['thousand_separator']
);
$unit = '';
if ($moduleId !== null && $moduleId !== 0) {
diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php
index adeaa9c29e..4eb1ba3abc 100644
--- a/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php
+++ b/pandora_console/include/rest-api/models/VisualConsole/Items/StaticGraph.php
@@ -281,7 +281,7 @@ final class StaticGraph extends Item
) {
if (\is_numeric($value)) {
$imgTitle .= __('Last value: ').\remove_right_zeros(
- \number_format((float) $value, (int) $config['graph_precision'])
+ \number_format((float) $value, (int) $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])
);
} else {
$imgTitle .= __('Last value: ').$value;
diff --git a/pandora_console/install.php b/pandora_console/install.php
index 542a29756f..e34c26b115 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -129,7 +129,7 @@
z_dash)) {
- $array_filter->z_dash = number_format($scale, 2);
+ $array_filter->z_dash = number_format(
+ $scale,
+ 2,
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ );
}
$filter = json_encode($array_filter);
diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php
index 320282e403..b0c7c3eba1 100644
--- a/pandora_console/operation/agentes/status_monitor.php
+++ b/pandora_console/operation/agentes/status_monitor.php
@@ -1589,7 +1589,7 @@ if (!empty($result)) {
if (is_numeric($row['datos'])) {
$data[6] = ui_print_status_image(
STATUS_MODULE_OK,
- __('NORMAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'])),
+ __('NORMAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])),
true
);
} else {
@@ -1604,7 +1604,12 @@ if (!empty($result)) {
$data[6] = ui_print_status_image(
STATUS_MODULE_CRITICAL,
__('CRITICAL').': '.remove_right_zeros(
- number_format($row['datos'], $config['graph_precision'])
+ number_format(
+ $row['datos'],
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ )
),
true
);
@@ -1620,7 +1625,12 @@ if (!empty($result)) {
$data[6] = ui_print_status_image(
STATUS_MODULE_WARNING,
__('WARNING').': '.remove_right_zeros(
- number_format($row['datos'], $config['graph_precision'])
+ number_format(
+ $row['datos'],
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ )
),
true
);
@@ -1636,7 +1646,12 @@ if (!empty($result)) {
$data[6] = ui_print_status_image(
STATUS_MODULE_UNKNOWN,
__('UNKNOWN').': '.remove_right_zeros(
- number_format($row['datos'], $config['graph_precision'])
+ number_format(
+ $row['datos'],
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ )
),
true
);
@@ -1652,7 +1667,12 @@ if (!empty($result)) {
$data[6] = ui_print_status_image(
STATUS_MODULE_NO_DATA,
__('NO DATA').': '.remove_right_zeros(
- number_format($row['datos'], $config['graph_precision'])
+ number_format(
+ $row['datos'],
+ $config['graph_precision'],
+ $config['decimal_separator'],
+ $config['thousand_separator']
+ )
),
true
);
@@ -1672,7 +1692,7 @@ if (!empty($result)) {
if (is_numeric($row['datos'])) {
$data[6] = ui_print_status_image(
STATUS_MODULE_UNKNOWN,
- __('UNKNOWN').' - '.__('Last status').' '.__('NORMAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'])),
+ __('UNKNOWN').' - '.__('Last status').' '.__('NORMAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])),
true
);
} else {
@@ -1688,7 +1708,7 @@ if (!empty($result)) {
if (is_numeric($row['datos'])) {
$data[6] = ui_print_status_image(
STATUS_MODULE_UNKNOWN,
- __('UNKNOWN').' - '.__('Last status').' '.__('CRITICAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'])),
+ __('UNKNOWN').' - '.__('Last status').' '.__('CRITICAL').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])),
true
);
} else {
@@ -1704,7 +1724,7 @@ if (!empty($result)) {
if (is_numeric($row['datos'])) {
$data[6] = ui_print_status_image(
STATUS_MODULE_UNKNOWN,
- __('UNKNOWN').' - '.__('Last status').' '.__('WARNING').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'])),
+ __('UNKNOWN').' - '.__('Last status').' '.__('WARNING').': '.remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator'])),
true
);
} else {
@@ -1849,12 +1869,12 @@ if (!empty($result)) {
if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') {
$salida = human_milliseconds_to_string($row['datos']);
} else {
- $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
}
break;
default:
- $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
break;
}
break;
@@ -1866,12 +1886,12 @@ if (!empty($result)) {
if ($value == '.1.3.6.1.2.1.1.3.0' || $value == '.1.3.6.1.2.1.25.1.1.0') {
$salida = human_milliseconds_to_string($row['datos']);
} else {
- $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
}
break;
default:
- $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision']));
+ $salida = remove_right_zeros(number_format($row['datos'], $config['graph_precision'], $config['decimal_separator'], $config['thousand_separator']));
break;
}
}
diff --git a/pandora_console/pandora_console.redhat.spec b/pandora_console/pandora_console.redhat.spec
index e1ea1fe942..14cfc5c399 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.767
-%define release 221215
+%define release 221216
# User and Group under which Apache is running
%define httpd_name httpd
diff --git a/pandora_console/pandora_console.rhel7.spec b/pandora_console/pandora_console.rhel7.spec
index 7bc64b4615..5ac0296d06 100644
--- a/pandora_console/pandora_console.rhel7.spec
+++ b/pandora_console/pandora_console.rhel7.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 7.0NG.767
-%define release 221215
+%define release 221216
# 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 dd5d71ae3a..2fbe1c7a85 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.767
-%define release 221215
+%define release 221216
%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 f135db927e..fd51f8f529 100644
--- a/pandora_console/pandoradb.sql
+++ b/pandora_console/pandoradb.sql
@@ -1624,6 +1624,7 @@ CREATE TABLE IF NOT EXISTS `treport_content` (
`ipam_ip_not_assigned_to_agent` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`macros_definition` TEXT,
`render_definition` TEXT,
+ `use_prefix_notation` TINYINT UNSIGNED NOT NULL DEFAULT 1,
PRIMARY KEY(`id_rc`),
FOREIGN KEY (`id_report`) REFERENCES treport(`id_report`)
ON UPDATE CASCADE ON DELETE CASCADE
@@ -3255,6 +3256,7 @@ CREATE TABLE IF NOT EXISTS `treport_content_template` (
`ipam_ip_not_assigned_to_agent` TINYINT UNSIGNED NOT NULL DEFAULT 0,
`macros_definition` TEXT,
`render_definition` TEXT,
+ `use_prefix_notation` TINYINT UNSIGNED NOT NULL DEFAULT 1,
PRIMARY KEY(`id_rc`)
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
diff --git a/pandora_plugins/intel_dcm/extensions/intel_dcm_agent_view.php b/pandora_plugins/intel_dcm/extensions/intel_dcm_agent_view.php
index bdc1186044..737aa70770 100644
--- a/pandora_plugins/intel_dcm/extensions/intel_dcm_agent_view.php
+++ b/pandora_plugins/intel_dcm/extensions/intel_dcm_agent_view.php
@@ -142,26 +142,26 @@ function main_intel_dcm_agent_view()
$sql = "SELECT description FROM tagent_custom_data WHERE id_field = $id_field_derated_power AND id_agent = $id_agent";
$derated_power = db_get_value_sql($sql);
- $percent = number_format((($avg_power / $derated_power) * 100), 2);
+ $percent = number_format((($avg_power / $derated_power) * 100), 2, $config['decimal_separator'], $config['thousand_separator']);
$data[0] = ''.__('Power utilization')." $percent%";
$data[0] .= progress_bar($percent, 400, 30, '', 2);
$data[0] .= '
';
$data[0] .= ''.__('Current stats').'';
$data[0] .= '
';
- $data[0] .= __('Power demand').': '.number_format($avg_power, 2).' Wh';
+ $data[0] .= __('Power demand').': '.number_format($avg_power, 2, $config['decimal_separator'], $config['thousand_separator']).' Wh';
$data[0] .= '
';
- $data[0] .= __('Inlet temp').': '.number_format($avg_temp, 2).' ºC';
+ $data[0] .= __('Inlet temp').': '.number_format($avg_temp, 2, $config['decimal_separator'], $config['thousand_separator']).' ºC';
$data[0] .= '
';
$data[0] .= ''.__('Last week summary').'';
$data[0] .= '
';
- $data[0] .= __('Equipment energy consumed').': '.number_format($mnged_energy, 2).' Wh';
+ $data[0] .= __('Equipment energy consumed').': '.number_format($mnged_energy, 2, $config['decimal_separator'], $config['thousand_separator']).' Wh';
$data[0] .= '
';
- $data[0] .= __('Equipment energy bill').': '.number_format($mnged_energy_bill, 2).' €';
+ $data[0] .= __('Equipment energy bill').': '.number_format($mnged_energy_bill, 2, $config['decimal_separator'], $config['thousand_separator']).' €';
$data[0] .= '
';
- $data[0] .= __('Calculated cooling energy').': '.number_format($cooling_energy, 2).' Wh';
+ $data[0] .= __('Calculated cooling energy').': '.number_format($cooling_energy, 2, $config['decimal_separator'], $config['thousand_separator']).' Wh';
$data[0] .= '
';
- $data[0] .= __('Calculated cooling energy bill').': '.number_format($cooling_energy_bill, 2).' €';
+ $data[0] .= __('Calculated cooling energy bill').': '.number_format($cooling_energy_bill, 2, $config['decimal_separator'], $config['thousand_separator']).' €';
// Print avg. power graph
$start_date = date('Y-m-d');
diff --git a/pandora_server/DEBIAN/control b/pandora_server/DEBIAN/control
index 48a141f6f8..e035321041 100644
--- a/pandora_server/DEBIAN/control
+++ b/pandora_server/DEBIAN/control
@@ -1,5 +1,5 @@
package: pandorafms-server
-Version: 7.0NG.767-221215
+Version: 7.0NG.767-221216
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 f2f90f9bcd..0a5393a93f 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.767-221215"
+pandora_version="7.0NG.767-221216"
package_cpan=0
package_pandora=1
diff --git a/pandora_server/lib/PandoraFMS/Config.pm b/pandora_server/lib/PandoraFMS/Config.pm
index 49b5ccf1bf..736b1c13c5 100644
--- a/pandora_server/lib/PandoraFMS/Config.pm
+++ b/pandora_server/lib/PandoraFMS/Config.pm
@@ -46,7 +46,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.767";
-my $pandora_build = "221215";
+my $pandora_build = "221216";
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 09a6afa350..8d86340a1f 100644
--- a/pandora_server/lib/PandoraFMS/PluginTools.pm
+++ b/pandora_server/lib/PandoraFMS/PluginTools.pm
@@ -34,7 +34,7 @@ our @ISA = qw(Exporter);
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "7.0NG.767";
-my $pandora_build = "221215";
+my $pandora_build = "221216";
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 854c285f62..57e384625a 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.767
-%define release 221215
+%define release 221216
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec
index fd35e83075..ccd8703543 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.767
-%define release 221215
+%define release 221216
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer
index 70d6fca485..ce6a4e858e 100755
--- a/pandora_server/pandora_server_installer
+++ b/pandora_server/pandora_server_installer
@@ -9,7 +9,7 @@
# **********************************************************************
PI_VERSION="7.0NG.767"
-PI_BUILD="221215"
+PI_BUILD="221216"
MODE=$1
if [ $# -gt 1 ]; then
diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl
index 2236c2d98c..96898aa6fa 100755
--- a/pandora_server/util/pandora_db.pl
+++ b/pandora_server/util/pandora_db.pl
@@ -35,7 +35,7 @@ use PandoraFMS::Config;
use PandoraFMS::DB;
# version: define current version
-my $version = "7.0NG.767 Build 221215";
+my $version = "7.0NG.767 Build 221216";
# Pandora server configuration
my %conf;
diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl
index 8366e538d0..42a119a072 100755
--- 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.767 Build 221215";
+my $version = "7.0NG.767 Build 221216";
# save program name for logging
my $progname = basename($0);