Merge branch 'develop' of github.com:pandorafms/pandorafms into develop

This commit is contained in:
mdtrooper 2014-10-13 11:33:38 +02:00
commit 6eef76ef23
24 changed files with 32 additions and 28 deletions

View File

@ -1,5 +1,5 @@
package: pandorafms-agent-unix
Version: 5.1SP1RC1-141010
Version: 5.1SP1RC1-141013
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="5.1SP1RC1-141010"
pandora_version="5.1SP1RC1-141013"
echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null

View File

@ -41,7 +41,7 @@ my $Sem = undef;
my $ThreadSem = undef;
use constant AGENT_VERSION => '5.1SP1RC1';
use constant AGENT_BUILD => '141010';
use constant AGENT_BUILD => '141013';
# Commands to retrieve total memory information in kB
use constant TOTALMEMORY_CMDS => {

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 5.1SP1RC1
%define release 141010
%define release 141013
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_agent_unix
%define version 5.1SP1RC1
%define release 141010
%define release 141013
Summary: Pandora FMS Linux agent, PERL version
Name: %{name}

View File

@ -186,7 +186,7 @@ UpgradeApplicationID
{}
Version
{141010}
{141013}
ViewReadme
{Yes}

View File

@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1
#define PANDORA_VERSION ("5.1SP1RC1(Build 141010)")
#define PANDORA_VERSION ("5.1SP1RC1(Build 141013)")
string pandora_path;
string pandora_dir;

View File

@ -11,7 +11,7 @@ BEGIN
VALUE "LegalCopyright", "Artica ST"
VALUE "OriginalFilename", "PandoraAgent.exe"
VALUE "ProductName", "Pandora FMS Windows Agent"
VALUE "ProductVersion", "(5.1SP1RC1(Build 141010))"
VALUE "ProductVersion", "(5.1SP1RC1(Build 141013))"
VALUE "FileVersion", "1.0.0.0"
END
END

View File

@ -1,5 +1,5 @@
package: pandorafms-console
Version: 5.1SP1RC1-141010
Version: 5.1SP1RC1-141013
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="5.1SP1RC1-141010"
pandora_version="5.1SP1RC1-141013"
package_pear=0
package_pandora=1

View File

@ -22,7 +22,7 @@
/**
* Pandora build version and version
*/
$build_version = 'PC141010';
$build_version = 'PC141013';
$pandora_version = 'v5.1SP1RC1';
// Do not overwrite default timezone set if defined.

View File

@ -3841,8 +3841,8 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f
}
if (!$malformed_planned_downtimes_empty
&& isset($malformed_planned_downtimes[$server])
&& isset($malformed_planned_downtimes[$server][$planned_downtime['id']])) {
&& isset($malformed_planned_downtimes_by_server[$server])
&& isset($malformed_planned_downtimes_by_server[$server][$planned_downtime['id']])) {
$next_row_num = count($table_planned_downtimes->data);
$table_planned_downtimes->cellstyle[$next_row_num][0] = 'color: red';
$table_planned_downtimes->cellstyle[$next_row_num][1] = 'color: red';

View File

@ -63,7 +63,7 @@
<div style='height: 10px'>
<?php
$version = '5.1SP1RC1';
$build = '141010';
$build = '141013';
$banner = "v$version Build $build";
error_reporting(0);

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 5.1SP1RC1
%define release 141010
%define release 141013
# User and Group under which Apache is running
%define httpd_name httpd

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 5.1SP1RC1
%define release 141010
%define release 141013
%define httpd_name httpd
# User and Group under which Apache is running
%define httpd_name apache2

View File

@ -38,7 +38,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
('graph_res','5'),
('step_compact','1'),
('db_scheme_version','5.1SP1RC1'),
('db_scheme_build','PD141010'),
('db_scheme_build','PD141013'),
('show_unknown','0'),
('show_lastalerts','1'),
('style','pandora'),

View File

@ -1,5 +1,5 @@
package: pandorafms-server
Version: 5.1SP1RC1-141010
Version: 5.1SP1RC1-141013
Architecture: all
Priority: optional
Section: admin

View File

@ -14,7 +14,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
pandora_version="5.1SP1RC1-141010"
pandora_version="5.1SP1RC1-141013"
package_cpan=0
package_pandora=1

View File

@ -43,7 +43,7 @@ our @EXPORT = qw(
# version: Defines actual version of Pandora Server for this module only
my $pandora_version = "5.1SP1RC1";
my $pandora_build = "141010";
my $pandora_build = "141013";
our $VERSION = $pandora_version." ".$pandora_build;
# Setup hash

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 5.1SP1RC1
%define release 141010
%define release 141013
Summary: Pandora FMS Server
Name: %{name}

View File

@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 5.1SP1RC1
%define release 141010
%define release 141013
Summary: Pandora FMS Server
Name: %{name}

View File

@ -33,7 +33,7 @@ use PandoraFMS::Tools;
use PandoraFMS::DB;
# version: define current version
my $version = "5.1SP1RC1 PS141010";
my $version = "5.1SP1RC1 PS141013";
# Pandora server configuration
my %conf;

View File

@ -34,7 +34,7 @@ use Encode::Locale;
Encode::Locale::decode_argv;
# version: define current version
my $version = "5.1SP1RC1 PS141010";
my $version = "5.1SP1RC1 PS141013";
# save program name for logging
my $progname = basename($0);

View File

@ -271,7 +271,7 @@ sub get_if_from_ip($$$) {
}
########################################################################################
# Get the MAC address for the interface with the given IP address.
# Get an interface name from a MAC address.
########################################################################################
sub get_if_from_mac($$$) {
my ($device, $community, $mac) = @_;
@ -639,13 +639,17 @@ sub host_connectivity($) {
my $host = $ARP_CACHE{$mac};
next unless defined ($HOSTS{$host});
my $device_if_name = get_if_from_aft($device, $COMMUNITIES{$device}, $mac);
my $host_if_name = defined($COMMUNITIES{$host}) ? get_if_from_mac($host, $COMMUNITIES{$host}, $mac) : '';
if ($VISITED_DEVICES{$device}->{'type'} eq 'router') {
message("Host $host is connected to router $device (if $device_if_name).");
message("Host $host " . ($host_if_name ne '' ? "(if $host_if_name)" : '') . " is connected to router $device (if $device_if_name).");
}
elsif ($VISITED_DEVICES{$device}->{'type'} eq 'switch') {
message("Host $host " . ($host_if_name ne '' ? "(if $host_if_name)" : '') . " is connected to switch $device (if $device_if_name).");
}
else {
message("Host $host is connected to switch $device (if $device_if_name).");
message("Host $host " . ($host_if_name ne '' ? "(if $host_if_name)" : '') . " is connected to host $device (if $device_if_name).");
}
connect_pandora_agents($device, $device_if_name, $host, '');
connect_pandora_agents($device, $device_if_name, $host, $host_if_name);
}
}