mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop
This commit is contained in:
commit
9512be8483
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 6.0dev-150316
|
Version: 6.0dev-150317
|
||||||
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="6.0dev-150316"
|
pandora_version="6.0dev-150317"
|
||||||
|
|
||||||
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
|
||||||
|
@ -41,7 +41,7 @@ my $Sem = undef;
|
|||||||
my $ThreadSem = undef;
|
my $ThreadSem = undef;
|
||||||
|
|
||||||
use constant AGENT_VERSION => '6.0dev';
|
use constant AGENT_VERSION => '6.0dev';
|
||||||
use constant AGENT_BUILD => '150316';
|
use constant AGENT_BUILD => '150317';
|
||||||
|
|
||||||
# Commands to retrieve total memory information in kB
|
# Commands to retrieve total memory information in kB
|
||||||
use constant TOTALMEMORY_CMDS => {
|
use constant TOTALMEMORY_CMDS => {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
|
|
||||||
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 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{150316}
|
{150317}
|
||||||
|
|
||||||
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 ("6.0dev(Build 150316)")
|
#define PANDORA_VERSION ("6.0dev(Build 150317)")
|
||||||
|
|
||||||
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", "(6.0dev(Build 150316))"
|
VALUE "ProductVersion", "(6.0dev(Build 150317))"
|
||||||
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: 6.0dev-150316
|
Version: 6.0dev-150317
|
||||||
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="6.0dev-150316"
|
pandora_version="6.0dev-150317"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -154,7 +154,7 @@ function extension_api_checker() {
|
|||||||
|
|
||||||
$row = array();
|
$row = array();
|
||||||
$row[] = __("Raw URL");
|
$row[] = __("Raw URL");
|
||||||
$row[] = html_print_input_text('url', $url, '', 150, 255, true);
|
$row[] = html_print_input_text('url', $url, '', 150, 2048, true);
|
||||||
$table3->data[] = $row;
|
$table3->data[] = $row;
|
||||||
|
|
||||||
echo "<form method='post'>";
|
echo "<form method='post'>";
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC150316';
|
$build_version = 'PC150317';
|
||||||
$pandora_version = 'v6.0dev';
|
$pandora_version = 'v6.0dev';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -522,7 +522,7 @@ function ui_print_group_icon ($id_group, $return = false, $path = "groups_small"
|
|||||||
|
|
||||||
if ($config['show_group_name']) {
|
if ($config['show_group_name']) {
|
||||||
$output .= '<span title="'. groups_get_name($id_group, true) .'">' .
|
$output .= '<span title="'. groups_get_name($id_group, true) .'">' .
|
||||||
groups_get_name($id_group, true) . ' </span>';
|
groups_get_name($id_group, true) . ' </span>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (empty ($icon))
|
if (empty ($icon))
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '6.0dev';
|
$version = '6.0dev';
|
||||||
$build = '150316';
|
$build = '150317';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
|
|
||||||
# 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 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
%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
|
||||||
|
@ -38,7 +38,7 @@ INSERT INTO `tconfig` (`token`, `value`) VALUES
|
|||||||
('graph_res','5'),
|
('graph_res','5'),
|
||||||
('step_compact','1'),
|
('step_compact','1'),
|
||||||
('db_scheme_version','6.0dev'),
|
('db_scheme_version','6.0dev'),
|
||||||
('db_scheme_build','PD150316'),
|
('db_scheme_build','PD150317'),
|
||||||
('show_unknown','0'),
|
('show_unknown','0'),
|
||||||
('show_lastalerts','1'),
|
('show_lastalerts','1'),
|
||||||
('style','pandora'),
|
('style','pandora'),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 6.0dev-150316
|
Version: 6.0dev-150317
|
||||||
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="6.0dev-150316"
|
pandora_version="6.0dev-150317"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -43,7 +43,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 = "6.0dev";
|
my $pandora_version = "6.0dev";
|
||||||
my $pandora_build = "150316";
|
my $pandora_build = "150317";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -90,7 +90,7 @@ sub new ($$$) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Skip already processed lines
|
# Skip already processed lines
|
||||||
readline SNMPLOGFILE for (1..$LAST_LINE);
|
read_snmplogfile() for (1..$LAST_LINE);
|
||||||
|
|
||||||
# Initialize semaphores and queues
|
# Initialize semaphores and queues
|
||||||
@TaskQueue = ();
|
@TaskQueue = ();
|
||||||
@ -140,9 +140,12 @@ sub data_producer ($) {
|
|||||||
%AGENTS = ();
|
%AGENTS = ();
|
||||||
}
|
}
|
||||||
|
|
||||||
while (my $line = <SNMPLOGFILE>) {
|
while (my $line_with_pos = read_snmplogfile()) {
|
||||||
|
my $line;
|
||||||
|
|
||||||
$LAST_LINE++;
|
$LAST_LINE++;
|
||||||
$LAST_SIZE = (stat ($pa_config->{'snmp_logfile'}))[7];
|
($LAST_SIZE, $line) = @$line_with_pos;
|
||||||
|
|
||||||
chomp ($line);
|
chomp ($line);
|
||||||
|
|
||||||
# Update index file
|
# Update index file
|
||||||
@ -409,6 +412,52 @@ sub start_snmptrapd ($) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Read SNMP Log file with buffering (to handle multi-line Traps).
|
||||||
|
# Return reference of array (file-pos, line-data) if successful, undef othersise.
|
||||||
|
###############################################################################
|
||||||
|
my $read_ahead_line; # buffer to save fetched ahead line
|
||||||
|
my $read_ahead_pos;
|
||||||
|
|
||||||
|
sub read_snmplogfile()
|
||||||
|
{
|
||||||
|
my $line;
|
||||||
|
my $pos;
|
||||||
|
|
||||||
|
if(defined($read_ahead_line)) {
|
||||||
|
# Restore saved line
|
||||||
|
$line = $read_ahead_line;
|
||||||
|
$pos = $read_ahead_pos;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
# No saved line
|
||||||
|
$line = <SNMPLOGFILE>;
|
||||||
|
$pos = tell(SNMPLOGFILE);
|
||||||
|
}
|
||||||
|
|
||||||
|
return undef if (! defined($line));
|
||||||
|
|
||||||
|
# More lines ?
|
||||||
|
while($read_ahead_line = <SNMPLOGFILE>) {
|
||||||
|
|
||||||
|
# Get current file position
|
||||||
|
$read_ahead_pos = tell(SNMPLOGFILE);
|
||||||
|
|
||||||
|
# Get out of the loop if you find another Trap
|
||||||
|
last if($read_ahead_line =~ /^SNMP/ );
|
||||||
|
|
||||||
|
# $read_ahead_line looks continued line...
|
||||||
|
|
||||||
|
# Append to the line and correct the position
|
||||||
|
chomp($line);
|
||||||
|
$line .= "$read_ahead_line";
|
||||||
|
$pos = $read_ahead_pos;
|
||||||
|
}
|
||||||
|
|
||||||
|
# return fetched line with file position to be saved.
|
||||||
|
return [$pos, $line];
|
||||||
|
}
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Clean-up when the server is destroyed.
|
# Clean-up when the server is destroyed.
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
|
|
||||||
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 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150316
|
%define release 150317
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -33,7 +33,7 @@ use PandoraFMS::Tools;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "6.0dev PS150316";
|
my $version = "6.0dev PS150317";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -34,7 +34,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "6.0dev PS150316";
|
my $version = "6.0dev PS150317";
|
||||||
|
|
||||||
# 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