mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge remote-tracking branch 'origin/develop' into ent-5708-review-discovery-h-d
Conflicts: pandora_server/lib/PandoraFMS/Recon/Base.pm
This commit is contained in:
commit
54a9ebd4ed
@ -1,5 +1,5 @@
|
||||
package: pandorafms-agent-unix
|
||||
Version: 7.0NG.745-200430
|
||||
Version: 7.0NG.745-200504
|
||||
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.745-200430"
|
||||
pandora_version="7.0NG.745-200504"
|
||||
|
||||
echo "Test if you has the tools for to make the packages."
|
||||
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null
|
||||
|
@ -55,7 +55,7 @@ my $Sem = undef;
|
||||
my $ThreadSem = undef;
|
||||
|
||||
use constant AGENT_VERSION => '7.0NG.745';
|
||||
use constant AGENT_BUILD => '200430';
|
||||
use constant AGENT_BUILD => '200504';
|
||||
|
||||
# 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.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_agent_unix
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
Summary: Pandora FMS Linux agent, PERL version
|
||||
Name: %{name}
|
||||
|
@ -10,7 +10,7 @@
|
||||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.745"
|
||||
PI_BUILD="200430"
|
||||
PI_BUILD="200504"
|
||||
OS_NAME=`uname -s`
|
||||
|
||||
FORCE=0
|
||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
||||
{}
|
||||
|
||||
Version
|
||||
{200430}
|
||||
{200504}
|
||||
|
||||
ViewReadme
|
||||
{Yes}
|
||||
|
@ -30,7 +30,7 @@ using namespace Pandora;
|
||||
using namespace Pandora_Strutils;
|
||||
|
||||
#define PATH_SIZE _MAX_PATH+1
|
||||
#define PANDORA_VERSION ("7.0NG.745(Build 200430)")
|
||||
#define PANDORA_VERSION ("7.0NG.745(Build 200504)")
|
||||
|
||||
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.745(Build 200430))"
|
||||
VALUE "ProductVersion", "(7.0NG.745(Build 200504))"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
|
@ -1,5 +1,5 @@
|
||||
package: pandorafms-console
|
||||
Version: 7.0NG.745-200430
|
||||
Version: 7.0NG.745-200504
|
||||
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.745-200430"
|
||||
pandora_version="7.0NG.745-200504"
|
||||
|
||||
package_pear=0
|
||||
package_pandora=1
|
||||
|
@ -20,7 +20,7 @@
|
||||
/**
|
||||
* Pandora build version and version
|
||||
*/
|
||||
$build_version = 'PC200430';
|
||||
$build_version = 'PC200504';
|
||||
$pandora_version = 'v7.0NG.745';
|
||||
|
||||
// Do not overwrite default timezone set if defined.
|
||||
|
@ -129,7 +129,7 @@
|
||||
<div style='height: 10px'>
|
||||
<?php
|
||||
$version = '7.0NG.745';
|
||||
$build = '200430';
|
||||
$build = '200504';
|
||||
$banner = "v$version Build $build";
|
||||
|
||||
error_reporting(0);
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
# User and Group under which Apache is running
|
||||
%define httpd_name httpd
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_console
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
%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.745-200430
|
||||
Version: 7.0NG.745-200504
|
||||
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.745-200430"
|
||||
pandora_version="7.0NG.745-200504"
|
||||
|
||||
package_cpan=0
|
||||
package_pandora=1
|
||||
|
@ -45,7 +45,7 @@ our @EXPORT = qw(
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.745";
|
||||
my $pandora_build = "200430";
|
||||
my $pandora_build = "200504";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
# Setup hash
|
||||
|
@ -33,7 +33,7 @@ our @ISA = qw(Exporter);
|
||||
|
||||
# version: Defines actual version of Pandora Server for this module only
|
||||
my $pandora_version = "7.0NG.745";
|
||||
my $pandora_build = "200430";
|
||||
my $pandora_build = "200504";
|
||||
our $VERSION = $pandora_version." ".$pandora_build;
|
||||
|
||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||
|
@ -1364,7 +1364,7 @@ sub prepare_agent($$) {
|
||||
$self->{'agents_found'} = {} if ref($self->{'agents_found'}) ne 'HASH';
|
||||
|
||||
# Already initialized.
|
||||
return if (ref($self->{'agents_found'}->{$addr}) eq 'HASH');
|
||||
return if ref($self->{'agents_found'}->{$addr}) eq 'HASH';
|
||||
|
||||
my @addresses = $self->get_addresses($addr);
|
||||
$self->{'agents_found'}->{$addr} = {
|
||||
@ -1413,7 +1413,8 @@ sub add_module($$$) {
|
||||
|
||||
return unless is_enabled($rs);
|
||||
|
||||
$self->{'agents_found'}->{$agent}->{'modules'}->{$data->{'name'}} = $data;
|
||||
$self->{'agents_found'}->{$agent}->{'modules'}{$data->{'name'}} = $data;
|
||||
|
||||
}
|
||||
|
||||
################################################################################
|
||||
@ -1435,7 +1436,7 @@ sub test_capabilities($$) {
|
||||
$self->wmi_discovery($addr);
|
||||
}
|
||||
|
||||
# WMI discovery.
|
||||
# RCMD discovery.
|
||||
if (is_enabled($self->{'rcmd_enabled'})) {
|
||||
# Add wmi scan if enabled.
|
||||
$self->rcmd_discovery($addr);
|
||||
|
@ -2390,18 +2390,15 @@ sub p_encode_json {
|
||||
################################################################################
|
||||
sub p_decode_json {
|
||||
my ($pa_config, $data) = @_;
|
||||
|
||||
# Initialize JSON manager.
|
||||
my $json = JSON->new->allow_nonref;
|
||||
my $decoded_data;
|
||||
|
||||
if ($JSON::VERSION > 2.90) {
|
||||
$decoded_data = $json->decode($data);
|
||||
} else {
|
||||
if (!is_empty($decoded_data)) {
|
||||
$decoded_data = decode_json($data);
|
||||
}
|
||||
}
|
||||
|
||||
if ($JSON::VERSION > 2.90) {
|
||||
# Initialize JSON manager.
|
||||
my $json = JSON->new->allow_nonref;
|
||||
$decoded_data = $json->decode($data);
|
||||
} else {
|
||||
$decoded_data = decode_json($data);
|
||||
}
|
||||
|
||||
return $decoded_data;
|
||||
}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
@ -3,7 +3,7 @@
|
||||
#
|
||||
%define name pandorafms_server
|
||||
%define version 7.0NG.745
|
||||
%define release 200430
|
||||
%define release 200504
|
||||
|
||||
Summary: Pandora FMS Server
|
||||
Name: %{name}
|
||||
|
@ -9,7 +9,7 @@
|
||||
# **********************************************************************
|
||||
|
||||
PI_VERSION="7.0NG.745"
|
||||
PI_BUILD="200430"
|
||||
PI_BUILD="200504"
|
||||
|
||||
MODE=$1
|
||||
if [ $# -gt 1 ]; then
|
||||
|
@ -35,7 +35,7 @@ use PandoraFMS::Config;
|
||||
use PandoraFMS::DB;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.745 PS200430";
|
||||
my $version = "7.0NG.745 PS200504";
|
||||
|
||||
# Pandora server configuration
|
||||
my %conf;
|
||||
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
||||
Encode::Locale::decode_argv;
|
||||
|
||||
# version: define current version
|
||||
my $version = "7.0NG.745 PS200430";
|
||||
my $version = "7.0NG.745 PS200504";
|
||||
|
||||
# save program name for logging
|
||||
my $progname = basename($0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user