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

This commit is contained in:
mdtrooper 2014-09-16 12:25:53 +02:00
commit 8a37afe374
35 changed files with 30 additions and 29 deletions

0
pandora_agents/shellscript/aix/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/shellscript/bsd-ipso/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/shellscript/linux/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/shellscript/mac_osx/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/shellscript/openWRT/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/shellscript/solaris/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/unix/AIX/pandora_agent.conf Executable file → Normal file
View File

2
pandora_agents/unix/DEBIAN/control Executable file → Normal file
View File

@ -1,5 +1,5 @@
package: pandorafms-agent-unix
Version: 5.1
Version: 5.1-140916
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.1"
pandora_version="5.1-140916"
echo "Test if you has the tools for to make the packages."
whereis dpkg-deb | cut -d":" -f2 | grep dpkg-deb > /dev/null

0
pandora_agents/unix/FreeBSD/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/unix/HP-UX/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/unix/Linux/pandora_agent.conf Executable file → Normal file
View File

0
pandora_agents/unix/SunOS/pandora_agent.conf Executable file → Normal file
View File

6
pandora_agents/unix/pandora_agent Executable file → Normal file
View File

@ -41,7 +41,7 @@ my $Sem = undef;
my $ThreadSem = undef;
use constant AGENT_VERSION => '5.1';
use constant AGENT_BUILD => '140630';
use constant AGENT_BUILD => '140916';
# Commands to retrieve total memory information in kB
use constant TOTALMEMORY_CMDS => {
@ -1790,7 +1790,7 @@ sub udp_server ($$) {
log_message ('udp server', 'Received signal from '.$hishost);
kill 'SIGINT' , $parent_pid;
}
elsif ($newmsg =~ /PROCESS START (.*)/){
elsif ($newmsg =~ /START PROCESS (.*)/){
my $process_name = $1;
$process_name =~ s/^\s*//g;
$process_name =~ s/\s*$//g;
@ -1804,7 +1804,7 @@ sub udp_server ($$) {
log_message ('udp server', "Attempt to start unknown process $process_name from $hishost");
}
}
elsif ($newmsg =~ /PROCESS STOP (.*)/){
elsif ($newmsg =~ /STOP PROCESS (.*)/){
my $process_name = $1;
$process_name =~ s/^\s*//g;
$process_name =~ s/\s*$//g;

2
pandora_agents/unix/pandora_agent.redhat.spec Executable file → Normal file
View File

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

2
pandora_agents/unix/pandora_agent.spec Executable file → Normal file
View File

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

4
pandora_agents/win32/installer/pandora.mpi Executable file → Normal file
View File

@ -186,7 +186,7 @@ UpgradeApplicationID
{}
Version
{140630}
{140916}
ViewReadme
{Yes}
@ -2387,7 +2387,7 @@ Windows,BuildSeparateArchives
{No}
Windows,Executable
{<%AppName%>-Setup<%Ext%>}
{<%AppName%>-<%Version%>-Setup<%Ext%>}
Windows,FileDescription
{<%AppName%> <%Version%> Setup}

View File

@ -30,7 +30,7 @@ using namespace Pandora;
using namespace Pandora_Strutils;
#define PATH_SIZE _MAX_PATH+1
#define PANDORA_VERSION ("5.1(Build 140630)")
#define PANDORA_VERSION ("5.1(Build 140916)")
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.1(Build 140630))"
VALUE "ProductVersion", "(5.1(Build 140916))"
VALUE "FileVersion", "1.0.0.0"
END
END

View File

@ -1,5 +1,5 @@
package: pandorafms-console
Version: 5.1
Version: 5.1-140916
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.1"
pandora_version="5.1-140916"
package_pear=0
package_pandora=1

View File

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

View File

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

2
pandora_console/pandora_console.redhat.spec Executable file → Normal file
View File

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

2
pandora_console/pandora_console.spec Executable file → Normal file
View File

@ -3,7 +3,7 @@
#
%define name pandorafms_console
%define version 5.1
%define release 1
%define release 140916
%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.1'),
('db_scheme_build','PD140630'),
('db_scheme_build','PD140916'),
('show_unknown','0'),
('show_lastalerts','1'),
('style','pandora'),

View File

@ -1,5 +1,5 @@
package: pandorafms-server
Version: 5.1
Version: 5.1-140916
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.1"
pandora_version="5.1-140916"
package_cpan=0
package_pandora=1

0
pandora_server/conf/pandora_server.conf.new Executable file → Normal file
View File

View File

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

View File

@ -3364,11 +3364,12 @@ sub process_inc_data ($$$$$) {
# Negative increment, reset inc data
if ($data < $data_inc->{'datos'}) {
db_do ($dbh, 'DELETE FROM tagente_datos_inc WHERE id_agente_modulo = ?', $module->{'id_agente_modulo'});
db_do ($dbh, 'INSERT INTO tagente_datos_inc
(id_agente_modulo, datos, utimestamp)
VALUES (?, ?, ?)', $module->{'id_agente_modulo'}, $data, $utimestamp);
db_do ($dbh, 'UPDATE tagente_datos_inc SET datos = ?, utimestamp = ? WHERE id_agente_modulo = ?', $data, $utimestamp, $module->{'id_agente_modulo'});
logger($pa_config, "Discarding data and resetting counter for incremental module " . $module->{'nombre'} . "(module id " . $module->{'id_agente_modulo'} . ").", 10);
# Prevent the module from becoming unknown!
db_do ($dbh, 'UPDATE tagente_estado SET utimestamp = ? WHERE id_agente_modulo = ?', time(), $module->{'id_agente_modulo'});
return undef;
}

View File

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

View File

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

2
pandora_server/util/pandora_db.pl Executable file → Normal file
View File

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

2
pandora_server/util/pandora_manage.pl Executable file → Normal file
View File

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