mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop
This commit is contained in:
commit
da3429bbce
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 6.0dev-150318
|
Version: 6.0dev-150320
|
||||||
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-150318"
|
pandora_version="6.0dev-150320"
|
||||||
|
|
||||||
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 => '150318';
|
use constant AGENT_BUILD => '150320';
|
||||||
|
|
||||||
# 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 150318
|
%define release 150320
|
||||||
|
|
||||||
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 150318
|
%define release 150320
|
||||||
|
|
||||||
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
|
||||||
{150318}
|
{150320}
|
||||||
|
|
||||||
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 150318)")
|
#define PANDORA_VERSION ("6.0dev(Build 150320)")
|
||||||
|
|
||||||
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 150318))"
|
VALUE "ProductVersion", "(6.0dev(Build 150320))"
|
||||||
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-150318
|
Version: 6.0dev-150320
|
||||||
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-150318"
|
pandora_version="6.0dev-150320"
|
||||||
|
|
||||||
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 = 'PC150318';
|
$build_version = 'PC150320';
|
||||||
$pandora_version = 'v6.0dev';
|
$pandora_version = 'v6.0dev';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '6.0dev';
|
$version = '6.0dev';
|
||||||
$build = '150318';
|
$build = '150320';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -25,8 +25,6 @@ require_once ($config['homedir'].'/include/functions_ui.php');
|
|||||||
|
|
||||||
check_login ();
|
check_login ();
|
||||||
|
|
||||||
enterprise_hook('open_meta_frame');
|
|
||||||
|
|
||||||
if (! check_acl ($config["id_user"], 0, "ER")) {
|
if (! check_acl ($config["id_user"], 0, "ER")) {
|
||||||
db_pandora_audit("ACL Violation",
|
db_pandora_audit("ACL Violation",
|
||||||
"Trying to access event viewer");
|
"Trying to access event viewer");
|
||||||
@ -44,15 +42,11 @@ if (enterprise_installed() && defined("METACONSOLE")) {
|
|||||||
$history = (bool) get_parameter('history', 0);
|
$history = (bool) get_parameter('history', 0);
|
||||||
|
|
||||||
$readonly = false;
|
$readonly = false;
|
||||||
|
|
||||||
if (!$meta) {
|
if (!$meta) {
|
||||||
if (isset($config['event_replication']) &&
|
if (isset($config['event_replication']) &&
|
||||||
$config['event_replication'] == 1) {
|
$config['event_replication'] == 1) {
|
||||||
|
|
||||||
if ($config['show_events_in_local'] == 0) {
|
if ($config['show_events_in_local'] == 0) {
|
||||||
db_pandora_audit("ACL Violation",
|
|
||||||
"Trying to access event viewer. View disabled due event replication.");
|
|
||||||
ui_print_info_message(array('message' => __('Event viewer is disabled due event replication. For more information, please contact with the administrator'), 'no_close' => true));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -61,6 +55,7 @@ if (!$meta) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (is_ajax ()) {
|
if (is_ajax ()) {
|
||||||
$get_event_tooltip = (bool) get_parameter ('get_event_tooltip');
|
$get_event_tooltip = (bool) get_parameter ('get_event_tooltip');
|
||||||
$validate_event = (bool) get_parameter ('validate_event');
|
$validate_event = (bool) get_parameter ('validate_event');
|
||||||
@ -127,6 +122,7 @@ if (is_ajax ()) {
|
|||||||
$similars = (bool) get_parameter ('similars');
|
$similars = (bool) get_parameter ('similars');
|
||||||
|
|
||||||
$return = events_delete_event ($id, $similars, $meta, $history);
|
$return = events_delete_event ($id, $similars, $meta, $history);
|
||||||
|
|
||||||
if ($return)
|
if ($return)
|
||||||
echo 'ok';
|
echo 'ok';
|
||||||
else
|
else
|
||||||
@ -180,6 +176,23 @@ if (is_ajax ()) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enterprise_hook('open_meta_frame');
|
||||||
|
|
||||||
|
if (!$meta) {
|
||||||
|
if (isset($config['event_replication']) &&
|
||||||
|
$config['event_replication'] == 1) {
|
||||||
|
|
||||||
|
if ($config['show_events_in_local'] == 0) {
|
||||||
|
db_pandora_audit("ACL Violation",
|
||||||
|
"Trying to access event viewer. View disabled due event replication.");
|
||||||
|
ui_print_info_message(array('message' => __('Event viewer is disabled due event replication. For more information, please contact with the administrator'), 'no_close' => true));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$readonly = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$offset = (int) get_parameter ("offset", 0);
|
$offset = (int) get_parameter ("offset", 0);
|
||||||
$id_group = (int) get_parameter('id_group', 0);//0 all
|
$id_group = (int) get_parameter('id_group', 0);//0 all
|
||||||
|
@ -327,13 +327,21 @@ if(defined('METACONSOLE')){
|
|||||||
|
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0,
|
if(!defined("METACONSOLE"))
|
||||||
true, true, true, '', false, 'width: 120px; height: 70px;') . '<br>';
|
$data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0,
|
||||||
|
true, true, true, '', false, 'width: 120px; height: 70px;') . '<br>';
|
||||||
|
else
|
||||||
|
$data[0] = html_print_select ($tags_select_with, 'select_with', '', '', '', 0,
|
||||||
|
true, true, true, '', false, 'width: 250px; height: 70px;') . '<br>';
|
||||||
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_with', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_with', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
||||||
$data[1] .= html_print_input_hidden('tag_with', $tag_with_base64, true);
|
$data[1] .= html_print_input_hidden('tag_with', $tag_with_base64, true);
|
||||||
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_with', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_with', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
||||||
$data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '',
|
if(!defined("METACONSOLE"))
|
||||||
0, true, true, true, '', false, "width: 120px; height: 70px;");
|
$data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '',
|
||||||
|
0, true, true, true, '', false, "width: 120px; height: 70px;");
|
||||||
|
else
|
||||||
|
$data[2] = html_print_select ($tag_with_temp, 'tag_with_temp', array(), '', '',
|
||||||
|
0, true, true, true, '', false, "width: 250px; height: 70px;");
|
||||||
$tabletags_with->data[] = $data;
|
$tabletags_with->data[] = $data;
|
||||||
$tabletags_with->rowclass[] = '';
|
$tabletags_with->rowclass[] = '';
|
||||||
|
|
||||||
@ -353,13 +361,23 @@ if(defined('METACONSOLE')){
|
|||||||
$tabletags_without->styleTable = 'border: 0px;';
|
$tabletags_without->styleTable = 'border: 0px;';
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
if(!defined("METACONSOLE"))
|
||||||
true, true, true, '', false, 'width: 120px; height: 70px;') . '<br>';
|
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
||||||
|
true, true, true, '', false, 'width: 120px; height: 70px;') . '<br>';
|
||||||
|
else
|
||||||
|
$data[0] = html_print_select ($tags_select_without, 'select_without', '', '', '', 0,
|
||||||
|
true, true, true, '', false, 'width: 250px; height: 70px;') . '<br>';
|
||||||
|
|
||||||
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_without', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
$data[1] = html_print_image('images/darrowright.png', true, array('id' => 'button-add_without', 'style' => 'cursor: pointer;', 'title' => __('Add')));
|
||||||
$data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true);
|
$data[1] .= html_print_input_hidden('tag_without', $tag_without_base64, true);
|
||||||
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
$data[1] .= '<br><br>' . html_print_image('images/darrowleft.png', true, array('id' => 'button-remove_without', 'style' => 'cursor: pointer;', 'title' => __('Remove')));
|
||||||
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
|
||||||
0, true, true, true, '', false, "width: 120px; height: 70px;");
|
if(!defined("METACONSOLE"))
|
||||||
|
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
||||||
|
0, true, true, true, '', false, "width: 120px; height: 70px;");
|
||||||
|
else
|
||||||
|
$data[2] = html_print_select ($tag_without_temp, 'tag_without_temp', array(), '', '',
|
||||||
|
0, true, true, true, '', false, "width: 250px; height: 70px;");
|
||||||
$tabletags_without->data[] = $data;
|
$tabletags_without->data[] = $data;
|
||||||
$tabletags_without->rowclass[] = '';
|
$tabletags_without->rowclass[] = '';
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150318
|
%define release 150320
|
||||||
|
|
||||||
# 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 150318
|
%define release 150320
|
||||||
%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','PD150318'),
|
('db_scheme_build','PD150320'),
|
||||||
('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-150318
|
Version: 6.0dev-150320
|
||||||
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-150318"
|
pandora_version="6.0dev-150320"
|
||||||
|
|
||||||
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 = "150318";
|
my $pandora_build = "150320";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 6.0dev
|
%define version 6.0dev
|
||||||
%define release 150318
|
%define release 150320
|
||||||
|
|
||||||
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 150318
|
%define release 150320
|
||||||
|
|
||||||
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 PS150318";
|
my $version = "6.0dev PS150320";
|
||||||
|
|
||||||
# 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 PS150318";
|
my $version = "6.0dev PS150320";
|
||||||
|
|
||||||
# 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