mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
Merge remote-tracking branch 'origin/develop' into 2784-Pantalla_por_dispositivos_filtrado_por_custom_fields
This commit is contained in:
commit
105e93d069
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 7.0NG.729-181116
|
Version: 7.0NG.729-181119
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.729-181116"
|
pandora_version="7.0NG.729-181119"
|
||||||
|
|
||||||
echo "Test if you has the tools for to make the packages."
|
echo "Test if you has the tools for to make the packages."
|
||||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||||
|
@ -42,7 +42,7 @@ my $Sem = undef;
|
|||||||
my $ThreadSem = undef;
|
my $ThreadSem = undef;
|
||||||
|
|
||||||
use constant AGENT_VERSION => '7.0NG.729';
|
use constant AGENT_VERSION => '7.0NG.729';
|
||||||
use constant AGENT_BUILD => '181116';
|
use constant AGENT_BUILD => '181119';
|
||||||
|
|
||||||
# Agent log default file size maximum and instances
|
# Agent log default file size maximum and instances
|
||||||
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.729"
|
PI_VERSION="7.0NG.729"
|
||||||
PI_BUILD="181116"
|
PI_BUILD="181119"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{181116}
|
{181119}
|
||||||
|
|
||||||
ViewReadme
|
ViewReadme
|
||||||
{Yes}
|
{Yes}
|
||||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
|||||||
using namespace Pandora_Strutils;
|
using namespace Pandora_Strutils;
|
||||||
|
|
||||||
#define PATH_SIZE _MAX_PATH+1
|
#define PATH_SIZE _MAX_PATH+1
|
||||||
#define PANDORA_VERSION ("7.0NG.729(Build 181116)")
|
#define PANDORA_VERSION ("7.0NG.729(Build 181119)")
|
||||||
|
|
||||||
string pandora_path;
|
string pandora_path;
|
||||||
string pandora_dir;
|
string pandora_dir;
|
||||||
|
@ -11,7 +11,7 @@ BEGIN
|
|||||||
VALUE "LegalCopyright", "Artica ST"
|
VALUE "LegalCopyright", "Artica ST"
|
||||||
VALUE "OriginalFilename", "PandoraAgent.exe"
|
VALUE "OriginalFilename", "PandoraAgent.exe"
|
||||||
VALUE "ProductName", "Pandora FMS Windows Agent"
|
VALUE "ProductName", "Pandora FMS Windows Agent"
|
||||||
VALUE "ProductVersion", "(7.0NG.729(Build 181116))"
|
VALUE "ProductVersion", "(7.0NG.729(Build 181119))"
|
||||||
VALUE "FileVersion", "1.0.0.0"
|
VALUE "FileVersion", "1.0.0.0"
|
||||||
END
|
END
|
||||||
END
|
END
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-console
|
package: pandorafms-console
|
||||||
Version: 7.0NG.729-181116
|
Version: 7.0NG.729-181119
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.729-181116"
|
pandora_version="7.0NG.729-181119"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC181116';
|
$build_version = 'PC181119';
|
||||||
$pandora_version = 'v7.0NG.729';
|
$pandora_version = 'v7.0NG.729';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -10014,6 +10014,11 @@ function api_set_enable_disable_agent ($id, $thrash2, $other, $thrash3) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$disabled = ( $other['data'][0] ? 0 : 1 );
|
$disabled = ( $other['data'][0] ? 0 : 1 );
|
||||||
|
|
||||||
|
enterprise_hook(
|
||||||
|
'config_agents_update_config_token',
|
||||||
|
array($id, 'standby', $disabled ? "1" : "0")
|
||||||
|
);
|
||||||
|
|
||||||
$result = db_process_sql_update('tagente',
|
$result = db_process_sql_update('tagente',
|
||||||
array('disabled' => $disabled), array('id_agente' => $id));
|
array('disabled' => $disabled), array('id_agente' => $id));
|
||||||
|
@ -1032,11 +1032,11 @@ function config_process_config () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($config["replication_interval"])) {
|
if (!isset ($config["replication_interval"])) {
|
||||||
config_update_value ('replication_interval', 120);
|
config_update_value ('replication_interval', 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($config["replication_limit"])) {
|
if (!isset ($config["replication_limit"])) {
|
||||||
config_update_value ('replication_limit', 1000);
|
config_update_value ('replication_limit', 50);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isset ($config["replication_dbengine"])) {
|
if (!isset ($config["replication_dbengine"])) {
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '7.0NG.729';
|
$version = '7.0NG.729';
|
||||||
$build = '181116';
|
$build = '181119';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -60,7 +60,7 @@ if($utimestamp == '') {
|
|||||||
} else {
|
} else {
|
||||||
// Retrieve target data
|
// Retrieve target data
|
||||||
$state = db_get_row('tagente_estado', 'id_agente_modulo', $id, array('id_agente'));
|
$state = db_get_row('tagente_estado', 'id_agente_modulo', $id, array('id_agente'));
|
||||||
$row_state = db_get_row_filter('tagente_datos_string', array('id_agente_modulo' => $id, 'utimestamp' => $utimestamp));
|
$row_state = db_get_row_filter('tagente_datos_string', array('id_agente_modulo' => $id, 'utimestamp' => $utimestamp), false, 'AND', 1);
|
||||||
$row_state['id_agente'] = $state['id_agente'];
|
$row_state['id_agente'] = $state['id_agente'];
|
||||||
$last_timestamp = date("Y-m-d H:i:s", $row_state['utimestamp']);
|
$last_timestamp = date("Y-m-d H:i:s", $row_state['utimestamp']);
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
|
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
%define httpd_name httpd
|
%define httpd_name httpd
|
||||||
# User and Group under which Apache is running
|
# User and Group under which Apache is running
|
||||||
%define httpd_name apache2
|
%define httpd_name apache2
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 7.0NG.729-181116
|
Version: 7.0NG.729-181119
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Section: admin
|
Section: admin
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
# GNU General Public License for more details.
|
# GNU General Public License for more details.
|
||||||
|
|
||||||
pandora_version="7.0NG.729-181116"
|
pandora_version="7.0NG.729-181119"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -45,7 +45,7 @@ our @EXPORT = qw(
|
|||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.729";
|
my $pandora_version = "7.0NG.729";
|
||||||
my $pandora_build = "181116";
|
my $pandora_build = "181119";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -867,7 +867,7 @@ sub db_insert ($$$;@) {
|
|||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
my $exception = @_;
|
my $exception = @_;
|
||||||
if ($DBI::err == 1213) {
|
if ($DBI::err == 1213 || $DBI::err == 1205) {
|
||||||
$dbh->do($query, undef, @values);
|
$dbh->do($query, undef, @values);
|
||||||
$insert_id = $dbh->{'mysql_insertid'};
|
$insert_id = $dbh->{'mysql_insertid'};
|
||||||
}
|
}
|
||||||
@ -891,7 +891,7 @@ sub db_update ($$;@) {
|
|||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
my $exception = @_;
|
my $exception = @_;
|
||||||
if ($DBI::err == 1213) {
|
if ($DBI::err == 1213 || $DBI::err == 1205) {
|
||||||
$rows = $dbh->do($query, undef, @values);
|
$rows = $dbh->do($query, undef, @values);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1137,7 +1137,7 @@ sub db_do ($$;@) {
|
|||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
my $exception = @_;
|
my $exception = @_;
|
||||||
if ($DBI::err == 1213) {
|
if ($DBI::err == 1213 || $DBI::err == 1205) {
|
||||||
$dbh->do($query, undef, @values);
|
$dbh->do($query, undef, @values);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -32,7 +32,7 @@ our @ISA = qw(Exporter);
|
|||||||
|
|
||||||
# version: Defines actual version of Pandora Server for this module only
|
# version: Defines actual version of Pandora Server for this module only
|
||||||
my $pandora_version = "7.0NG.729";
|
my $pandora_version = "7.0NG.729";
|
||||||
my $pandora_build = "181116";
|
my $pandora_build = "181119";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.729
|
%define version 7.0NG.729
|
||||||
%define release 181116
|
%define release 181119
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.729"
|
PI_VERSION="7.0NG.729"
|
||||||
PI_BUILD="181116"
|
PI_BUILD="181119"
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
@ -34,7 +34,7 @@ use PandoraFMS::Config;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.729 PS181116";
|
my $version = "7.0NG.729 PS181119";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.729 PS181116";
|
my $version = "7.0NG.729 PS181119";
|
||||||
|
|
||||||
# save program name for logging
|
# save program name for logging
|
||||||
my $progname = basename($0);
|
my $progname = basename($0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user