mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 17:25:26 +02:00
Merge remote-tracking branch 'origin/develop' into 2784-Pantalla_por_dispositivos_filtrado_por_custom_fields
This commit is contained in:
commit
afaa6ad2ba
@ -1,5 +1,5 @@
|
||||
package: pandorafms-agent-unix
|
||||
Version: 7.0NG.728-181107
|
||||
Version: 7.0NG.728-181112
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
@ -14,7 +14,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.728-181107"
|
||||
pandora_version="7.0NG.728-181112"
|
||||
|
||||
echo "Test if you has the tools for to make the packages."
|
||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||
|
@ -42,7 +42,7 @@ my $Sem = undef;
|
||||
my $ThreadSem = undef;
|
||||
|
||||
use constant AGENT_VERSION => '7.0NG.728';
|
||||
use constant AGENT_BUILD => '181107';
|
||||
use constant AGENT_BUILD => '181112';
|
||||
|
||||
# Agent log default file size maximum and instances
|
||||
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_agent_unix
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_agent_unix
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -10,7 +10,7 @@
|
||||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.728"
|
||||
PI_BUILD="181107"
|
||||
PI_BUILD="181112"
|
||||
OS_NAME=`uname -s`
|
||||
|
||||
FORCE=0
|
||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
||||
{}
|
||||
|
||||
Version
|
||||
{181107}
|
||||
{181112}
|
||||
|
||||
ViewReadme
|
||||
{Yes}
|
||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
||||
using namespace Pandora_Strutils;
|
||||
|
||||
#define PATH_SIZE _MAX_PATH+1
|
||||
#define PANDORA_VERSION ("7.0NG.728(Build 181107)")
|
||||
#define PANDORA_VERSION ("7.0NG.728(Build 181112)")
|
||||
|
||||
string pandora_path;
|
||||
string pandora_dir;
|
||||
|
@ -11,7 +11,7 @@ BEGIN
|
||||
VALUE "LegalCopyright", "Artica ST"
|
||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||
VALUE "ProductVersion", "(7.0NG.728(Build 181107))"
|
||||
VALUE "ProductVersion", "(7.0NG.728(Build 181112))"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
|
@ -1,5 +1,5 @@
|
||||
package: pandorafms-console
|
||||
Version: 7.0NG.728-181107
|
||||
Version: 7.0NG.728-181112
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
@ -14,7 +14,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.728-181107"
|
||||
pandora_version="7.0NG.728-181112"
|
||||
|
||||
package_pear=0
|
||||
package_pandora=1
|
||||
|
@ -54,7 +54,7 @@ $rows = db_get_all_rows_in_table('tupdate_settings');
|
||||
|
||||
$settings = new StdClass;
|
||||
foreach ($rows as $row) {
|
||||
$settings->$row['key'] = $row['value'];
|
||||
$settings->{$row['key']} = $row['value'];
|
||||
}
|
||||
|
||||
echo '<script type="text/javascript">';
|
||||
|
@ -865,7 +865,7 @@ $row++;
|
||||
$table_other->data[$row][0] = __('Show only the group name');
|
||||
$table_other->data[$row][0] .= ui_print_help_tip(
|
||||
__('Show the group name instead the group icon.'), true);
|
||||
html_print_checkbox('show_group_name', 1,
|
||||
$table_other->data[$row][1] = html_print_checkbox('show_group_name', 1,
|
||||
$config['show_group_name'], true);
|
||||
$row++;
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
/**
|
||||
* Pandora build version and version
|
||||
*/
|
||||
$build_version = 'PC181107';
|
||||
$build_version = 'PC181112';
|
||||
$pandora_version = 'v7.0NG.728';
|
||||
|
||||
// Do not overwrite default timezone set if defined.
|
||||
|
@ -1314,7 +1314,7 @@ function agents_get_name ($id_agent, $case = "none") {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get alias of an agent.
|
||||
* Get alias of an agent (cached function).
|
||||
*
|
||||
* @param int $id_agent Agent id.
|
||||
* @param string $case Case (upper, lower, none)
|
||||
@ -1323,6 +1323,13 @@ function agents_get_name ($id_agent, $case = "none") {
|
||||
*/
|
||||
function agents_get_alias ($id_agent, $case = 'none') {
|
||||
global $config;
|
||||
// Prepare cache
|
||||
static $cache = array();
|
||||
if (empty($case)) $case = 'none';
|
||||
|
||||
// Check cache
|
||||
if (isset($cache[$case][$id_agent])) return $cache[$case][$id_agent];
|
||||
|
||||
if($config['dbconnection_cache'] == null && is_metaconsole()){
|
||||
$alias = (string) db_get_value ('alias', 'tmetaconsole_agent', 'id_tagente', (int) $id_agent);
|
||||
} else {
|
||||
@ -1331,13 +1338,15 @@ function agents_get_alias ($id_agent, $case = 'none') {
|
||||
|
||||
switch ($case) {
|
||||
case 'upper':
|
||||
return mb_strtoupper($alias, 'UTF-8');
|
||||
$alias = mb_strtoupper($alias, 'UTF-8');
|
||||
break;
|
||||
case 'lower':
|
||||
return mb_strtolower($alias, 'UTF-8');
|
||||
case 'none':
|
||||
default:
|
||||
return ($alias);
|
||||
$alias = mb_strtolower($alias, 'UTF-8');
|
||||
break;
|
||||
}
|
||||
|
||||
$cache[$case][$id_agent] = $alias;
|
||||
return $alias;
|
||||
}
|
||||
|
||||
function agents_get_alias_by_name ($name, $case = 'none') {
|
||||
|
@ -1015,7 +1015,7 @@ function graphic_combined_module (
|
||||
|
||||
$params['stacked'] = $params_combined['stacked'];
|
||||
|
||||
if(!isset($params_combined['projection'])){
|
||||
if(!isset($params_combined['projection']) || $params_combined['projection'] == false){
|
||||
$params_combined['projection'] = false;
|
||||
}
|
||||
else{
|
||||
|
@ -722,12 +722,12 @@ function planned_downtimes_created ($values) {
|
||||
else if (!$check_id_user){
|
||||
return array('return' => false,
|
||||
'message' => __('Not created. Error inserting data') . ". "
|
||||
. __('User not exist'));
|
||||
. __('There is no user with such id'));
|
||||
}
|
||||
else if (!$check_group && $values['id_group'] != 0) {
|
||||
return array('return' => false,
|
||||
'message' => __('Not created. Error inserting data') . ". "
|
||||
. __('Group not exist'));
|
||||
. __('There is no group with such id'));
|
||||
}
|
||||
else {
|
||||
if (trim(io_safe_output($values['name'])) != '') {
|
||||
|
@ -6303,42 +6303,45 @@ function reporting_custom_graph($report, $content, $type = 'dinamic',
|
||||
$graph = db_get_row ("tgraph", "id_graph", $content['id_gs']);
|
||||
$return = array();
|
||||
$return['type'] = 'custom_graph';
|
||||
|
||||
if (empty($content['name'])) {
|
||||
if ($type_report == "custom_graph") {
|
||||
if($type_report == "custom_graph"){
|
||||
$content['name'] = __('Custom graph');
|
||||
$graphs = db_get_all_rows_field_filter ("tgraph", "id_graph", $content['id_gs']);
|
||||
$id_graph = $content['id_gs'];
|
||||
}
|
||||
else if($type_report == "automatic_graph"){
|
||||
} else if($type_report == "automatic_graph"){
|
||||
$content['name'] = __('Automatic combined graph');
|
||||
$graphs[0]["stacked"] = '';
|
||||
$graphs[0]["summatory_series"] = '';
|
||||
$graphs[0]["average_series"] = '';
|
||||
$graphs[0]["modules_series"] = '';
|
||||
$graphs[0]["fullscale"] = $content['style']['fullscale'];
|
||||
if(is_array($content['id_agent_module'])){
|
||||
foreach ($content['id_agent_module'] as $key => $value) {
|
||||
if($content['each_agent']){
|
||||
$modules[] = $value;
|
||||
}
|
||||
else{
|
||||
$modules[] = $value['module'];
|
||||
}
|
||||
} else {
|
||||
$content['name'] ='';
|
||||
}
|
||||
}
|
||||
|
||||
if ($type_report == "custom_graph") {
|
||||
$graphs = db_get_all_rows_field_filter ("tgraph", "id_graph", $content['id_gs']);
|
||||
$id_graph = $content['id_gs'];
|
||||
}
|
||||
else if($type_report == "automatic_graph"){
|
||||
$graphs[0]["stacked"] = '';
|
||||
$graphs[0]["summatory_series"] = '';
|
||||
$graphs[0]["average_series"] = '';
|
||||
$graphs[0]["modules_series"] = '';
|
||||
$graphs[0]["fullscale"] = $content['style']['fullscale'];
|
||||
|
||||
if(is_array($content['id_agent_module'])){
|
||||
foreach ($content['id_agent_module'] as $key => $value) {
|
||||
if($content['each_agent']){
|
||||
$modules[] = $value;
|
||||
}
|
||||
else{
|
||||
$modules[] = $value['module'];
|
||||
}
|
||||
}
|
||||
else{
|
||||
$modules[] = $content['id_agent_module'];
|
||||
}
|
||||
$id_graph = 0;
|
||||
}
|
||||
else {
|
||||
$content['name'] = __('Simple graph');
|
||||
}
|
||||
} else {
|
||||
if ($type_report == "custom_graph") {
|
||||
$graphs = db_get_all_rows_field_filter ("tgraph", "id_graph", $content['id_gs']);
|
||||
$id_graph = $content['id_gs'];
|
||||
else{
|
||||
$modules[] = $content['id_agent_module'];
|
||||
}
|
||||
$id_graph = 0;
|
||||
}
|
||||
else {
|
||||
$content['name'] = __('Simple graph');
|
||||
}
|
||||
|
||||
$return['title'] = $content['name'];
|
||||
|
@ -1962,7 +1962,7 @@ function pandoraFlotArea( graph_id, values, legend,
|
||||
|
||||
if(series.data[j]){
|
||||
var y = series.data[j][1];
|
||||
var x = series.data[j][0] -1 ;
|
||||
var x = Math.round(series.data[j][0]) -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@
|
||||
<div style='height: 10px'>
|
||||
<?php
|
||||
$version = '7.0NG.728';
|
||||
$build = '181107';
|
||||
$build = '181112';
|
||||
$banner = "v$version Build $build";
|
||||
|
||||
error_reporting(0);
|
||||
|
@ -160,7 +160,9 @@ if (isset ($_GET["modified"]) && !$view_mode) {
|
||||
// message could be confussing to the user.
|
||||
|
||||
if($return){
|
||||
$success_msg = __('Password successfully updated');
|
||||
if(!empty($password_new) && !empty($password_confirm)){
|
||||
$success_msg = __('Password successfully updated');
|
||||
}
|
||||
|
||||
$return_update_user = update_user ($id, $upd_info);
|
||||
|
||||
@ -170,6 +172,15 @@ if (isset ($_GET["modified"]) && !$view_mode) {
|
||||
elseif($return_update_user == true){
|
||||
$success_msg = __('User info successfully updated');
|
||||
}
|
||||
else{
|
||||
if(!empty($password_new) && !empty($password_confirm)){
|
||||
$success_msg = __('Password successfully updated');
|
||||
}
|
||||
else{
|
||||
$return=false;
|
||||
$error_msg = __('No changes have been made');
|
||||
}
|
||||
}
|
||||
|
||||
$user_info = $upd_info;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
%define httpd_name httpd
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name apache2
|
||||
|
@ -1,5 +1,5 @@
|
||||
package: pandorafms-server
|
||||
Version: 7.0NG.728-181107
|
||||
Version: 7.0NG.728-181112
|
||||
Architecture: all
|
||||
Priority: optional
|
||||
Section: admin
|
||||
|
@ -14,7 +14,7 @@
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
|
||||
pandora_version="7.0NG.728-181107"
|
||||
pandora_version="7.0NG.728-181112"
|
||||
|
||||
package_cpan=0
|
||||
package_pandora=1
|
||||
|
@ -668,6 +668,15 @@ sub main() {
|
||||
|
||||
logger (\%Config, $Config{'rb_product_name'} . ' Server restarting (' . $@ . ') in 5 seconds.', 1);
|
||||
pandora_load_config (\%Config);
|
||||
if (enterprise_load (\%Config) == 0) {
|
||||
$Config{'__enterprise_enabled'} = 0;
|
||||
print_message (\%Config, " [*] Pandora FMS Enterprise module not available.", 1);
|
||||
logger (\%Config, " [*] Pandora FMS Enterprise module not available.", 1);
|
||||
} else {
|
||||
$Config{'__enterprise_enabled'} = 1;
|
||||
print_message (\%Config, " [*] " . pandora_get_initial_product_name() . " Enterprise module loaded.", 1);
|
||||
logger (\%Config, " [*] " . pandora_get_initial_product_name() . " Enterprise module loaded.", 1);
|
||||
}
|
||||
pandora_restart (5);
|
||||
}
|
||||
$test_remote = 0;
|
||||
|
@ -45,7 +45,7 @@ our @EXPORT = qw(
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.728";
|
||||
my $pandora_build = "181107";
|
||||
my $pandora_build = "181112";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
# Setup hash
|
||||
|
@ -32,7 +32,7 @@ our @ISA = qw(Exporter);
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.728";
|
||||
my $pandora_build = "181107";
|
||||
my $pandora_build = "181112";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.728
|
||||
%define release 181107
|
||||
%define release 181112
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
@ -9,7 +9,7 @@
|
||||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.728"
|
||||
PI_BUILD="181107"
|
||||
PI_BUILD="181112"
|
||||
|
||||
MODE=$1
|
||||
if [ $# -gt 1 ]; then
|
||||
|
@ -34,7 +34,7 @@ use PandoraFMS::Config;
|
||||
use PandoraFMS::DB;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.728 PS181107";
|
||||
my $version = "7.0NG.728 PS181112";
|
||||
|
||||
# Pandora server configuration
|
||||
my %conf;
|
||||
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
||||
Encode::Locale::decode_argv;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.728 PS181107";
|
||||
my $version = "7.0NG.728 PS181112";
|
||||
|
||||
# save program name for logging
|
||||
my $progname = basename($0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user