mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge branch 'develop' into feature/satellite_view
This commit is contained in:
commit
6d77e68247
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 6.1dev-160420
|
Version: 6.1dev-160428
|
||||||
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.1dev-160420"
|
pandora_version="6.1dev-160428"
|
||||||
|
|
||||||
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.1dev';
|
use constant AGENT_VERSION => '6.1dev';
|
||||||
use constant AGENT_BUILD => '160420';
|
use constant AGENT_BUILD => '160428';
|
||||||
|
|
||||||
# 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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
|
|
||||||
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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="6.1dev"
|
PI_VERSION="6.1dev"
|
||||||
PI_BUILD="160420"
|
PI_BUILD="160428"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{160420}
|
{160428}
|
||||||
|
|
||||||
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.1dev(Build 160420)")
|
#define PANDORA_VERSION ("6.1dev(Build 160428)")
|
||||||
|
|
||||||
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.1dev(Build 160420))"
|
VALUE "ProductVersion", "(6.1dev(Build 160428))"
|
||||||
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.1dev-160420
|
Version: 6.1dev-160428
|
||||||
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.1dev-160420"
|
pandora_version="6.1dev-160428"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -17,15 +17,13 @@
|
|||||||
if (isset($_GET['get_ptr'])) {
|
if (isset($_GET['get_ptr'])) {
|
||||||
if ($_GET['get_ptr'] == 1) {
|
if ($_GET['get_ptr'] == 1) {
|
||||||
|
|
||||||
|
session_start ();
|
||||||
|
session_write_close ();
|
||||||
|
|
||||||
$ownDir = dirname(__FILE__) . '/';
|
$ownDir = dirname(__FILE__) . '/';
|
||||||
$ownDir = str_replace("\\", "/", $ownDir);
|
$ownDir = str_replace("\\", "/", $ownDir);
|
||||||
require_once ($ownDir.'../include/config.php');
|
require_once ($ownDir.'../include/config.php');
|
||||||
|
|
||||||
if (! isset ($_SESSION["id_usuario"])) {
|
|
||||||
session_start ();
|
|
||||||
session_write_close ();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Login check
|
// Login check
|
||||||
if (!isset($_SESSION["id_usuario"])) {
|
if (!isset($_SESSION["id_usuario"])) {
|
||||||
$config['id_user'] = null;
|
$config['id_user'] = null;
|
||||||
@ -323,6 +321,8 @@ function get_xml_resource() {
|
|||||||
function resource_exportation_extension_main() {
|
function resource_exportation_extension_main() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
check_login();
|
||||||
|
|
||||||
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
|
||||||
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
|
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
|
||||||
require ("general/noaccess.php");
|
require ("general/noaccess.php");
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC160420';
|
$build_version = 'PC160428';
|
||||||
$pandora_version = 'v6.1dev';
|
$pandora_version = 'v6.1dev';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -292,6 +292,11 @@ if (! isset ($config['id_user'])) {
|
|||||||
include_once(ENTERPRISE_DIR . "/include/auth/saml.php");
|
include_once(ENTERPRISE_DIR . "/include/auth/saml.php");
|
||||||
$saml_user_id = saml_process_user_login();
|
$saml_user_id = saml_process_user_login();
|
||||||
$nick_in_db = $saml_user_id;
|
$nick_in_db = $saml_user_id;
|
||||||
|
if (!$nick_in_db) {
|
||||||
|
require_once('/opt/simplesamlphp/lib/_autoload.php');
|
||||||
|
$as = new SimpleSAML_Auth_Simple('example-userpass');
|
||||||
|
$as->logout();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// process_user_login is a virtual function which should be defined in each auth file.
|
// process_user_login is a virtual function which should be defined in each auth file.
|
||||||
@ -445,7 +450,7 @@ if (! isset ($config['id_user'])) {
|
|||||||
}
|
}
|
||||||
else { //login wrong
|
else { //login wrong
|
||||||
$blocked = false;
|
$blocked = false;
|
||||||
|
|
||||||
if ((!is_user_admin($nick) || $config['enable_pass_policy_admin']) && defined('PANDORA_ENTERPRISE')) {
|
if ((!is_user_admin($nick) || $config['enable_pass_policy_admin']) && defined('PANDORA_ENTERPRISE')) {
|
||||||
$blocked = login_check_blocked($nick);
|
$blocked = login_check_blocked($nick);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '6.1dev';
|
$version = '6.1dev';
|
||||||
$build = '160420';
|
$build = '160428';
|
||||||
$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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
|
|
||||||
# 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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
%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
|
||||||
|
@ -65,7 +65,7 @@ INSERT INTO tconfig (token, value) VALUES ('graph_res','5');
|
|||||||
INSERT INTO tconfig (token, value) VALUES ('step_compact','1');
|
INSERT INTO tconfig (token, value) VALUES ('step_compact','1');
|
||||||
INSERT INTO tconfig (token, value) VALUES ('db_scheme_first_version','6.0orc');
|
INSERT INTO tconfig (token, value) VALUES ('db_scheme_first_version','6.0orc');
|
||||||
INSERT INTO tconfig (token, value) VALUES('db_scheme_version','6.1dev');
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_version','6.1dev');
|
||||||
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD160420');
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD160428');
|
||||||
INSERT INTO tconfig (token, value) VALUES ('show_unknown','0');
|
INSERT INTO tconfig (token, value) VALUES ('show_unknown','0');
|
||||||
INSERT INTO tconfig (token, value) VALUES ('show_lastalerts','1');
|
INSERT INTO tconfig (token, value) VALUES ('show_lastalerts','1');
|
||||||
INSERT INTO tconfig (token, value) VALUES ('style','pandora');
|
INSERT INTO tconfig (token, value) VALUES ('style','pandora');
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 6.1dev-160420
|
Version: 6.1dev-160428
|
||||||
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.1dev-160420"
|
pandora_version="6.1dev-160428"
|
||||||
|
|
||||||
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.1dev";
|
my $pandora_version = "6.1dev";
|
||||||
my $pandora_build = "160420";
|
my $pandora_build = "160428";
|
||||||
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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
|
|
||||||
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.1dev
|
%define version 6.1dev
|
||||||
%define release 160420
|
%define release 160428
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="6.1dev"
|
PI_VERSION="6.1dev"
|
||||||
PI_BUILD="160420"
|
PI_BUILD="160428"
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
@ -33,7 +33,7 @@ use PandoraFMS::Tools;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "6.1dev PS160420";
|
my $version = "6.1dev PS160428";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -35,7 +35,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "6.1dev PS160420";
|
my $version = "6.1dev PS160428";
|
||||||
|
|
||||||
# save program name for logging
|
# save program name for logging
|
||||||
my $progname = basename($0);
|
my $progname = basename($0);
|
||||||
@ -2758,7 +2758,7 @@ sub cli_create_event() {
|
|||||||
|
|
||||||
my $id_group;
|
my $id_group;
|
||||||
|
|
||||||
if (!defined($group_name) || $group_name eq "All") {
|
if (! $group_name || $group_name eq "All") {
|
||||||
$id_group = 0;
|
$id_group = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -2768,7 +2768,7 @@ sub cli_create_event() {
|
|||||||
|
|
||||||
my $id_agent;
|
my $id_agent;
|
||||||
|
|
||||||
if (!defined($agent_name)) {
|
if (! $agent_name) {
|
||||||
$id_agent = 0;
|
$id_agent = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -2778,7 +2778,7 @@ sub cli_create_event() {
|
|||||||
|
|
||||||
my $id_agentmodule;
|
my $id_agentmodule;
|
||||||
|
|
||||||
if (!defined($module_name)) {
|
if (! $module_name) {
|
||||||
$id_agentmodule = 0;
|
$id_agentmodule = 0;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -4438,7 +4438,7 @@ sub pandora_manage_main ($$$) {
|
|||||||
cli_delete_profile();
|
cli_delete_profile();
|
||||||
}
|
}
|
||||||
elsif ($param eq '--create_event') {
|
elsif ($param eq '--create_event') {
|
||||||
param_check($ltotal, 14, 10);
|
param_check($ltotal, 14, 11);
|
||||||
cli_create_event();
|
cli_create_event();
|
||||||
}
|
}
|
||||||
elsif ($param eq '--validate_event') {
|
elsif ($param eq '--validate_event') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user