mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'develop' of https://github.com/pandorafms/pandorafms into develop
This commit is contained in:
commit
5ea3f93124
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 6.0-151103
|
Version: 6.0-151104
|
||||||
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.0-151103"
|
pandora_version="6.0-151104"
|
||||||
|
|
||||||
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.0';
|
use constant AGENT_VERSION => '6.0';
|
||||||
use constant AGENT_BUILD => '151103';
|
use constant AGENT_BUILD => '151104';
|
||||||
|
|
||||||
# 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.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
|
|
||||||
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.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
|
|
||||||
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
|
||||||
{151103}
|
{151104}
|
||||||
|
|
||||||
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.0(Build 151103)")
|
#define PANDORA_VERSION ("6.0(Build 151104)")
|
||||||
|
|
||||||
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.0(Build 151103))"
|
VALUE "ProductVersion", "(6.0(Build 151104))"
|
||||||
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.0-151103
|
Version: 6.0-151104
|
||||||
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.0-151103"
|
pandora_version="6.0-151104"
|
||||||
|
|
||||||
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 = 'PC151103';
|
$build_version = 'PC151104';
|
||||||
$pandora_version = 'v6.0';
|
$pandora_version = 'v6.0';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -50,6 +50,7 @@ Besides the defined module macros, the following macros are available:
|
|||||||
<li>_event_text_severity_ : (Only event alerts) Text event (who fire the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
<li>_event_text_severity_ : (Only event alerts) Text event (who fire the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
||||||
<li>_event_id_ : (Only event alerts) Id of the event that fired the alert.</li>
|
<li>_event_id_ : (Only event alerts) Id of the event that fired the alert.</li>
|
||||||
<li>_id_agent_ : Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
<li>_id_agent_ : Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
||||||
|
<li>_id_group_ : Id of agent group.</li>
|
||||||
<li>_id_alert_ : Numerical ID of the alert (unique), used to correlate on third party software</li>
|
<li>_id_alert_ : Numerical ID of the alert (unique), used to correlate on third party software</li>
|
||||||
<li>_policy_ : Name of the policy the module belongs to (if applies).</li>
|
<li>_policy_ : Name of the policy the module belongs to (if applies).</li>
|
||||||
<li>_interval_ : Execution interval of the module. </li>
|
<li>_interval_ : Execution interval of the module. </li>
|
||||||
|
@ -43,6 +43,7 @@ Besides the defined module macros, the following macros are available:
|
|||||||
<li>_event_text_severity_: (Only event alerts) Text event (who fire the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
<li>_event_text_severity_: (Only event alerts) Text event (who fire the alert) severity (Maintenance, Informational, Normal Minor, Warning, Major, Critical).</li>
|
||||||
<li>_event_id_: (Only event alerts) Id of the event that fired the alert.</li>
|
<li>_event_id_: (Only event alerts) Id of the event that fired the alert.</li>
|
||||||
<li>_id_agent_: Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
<li>_id_agent_: Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
||||||
|
<li>_id_group_ : Id of agent group.</li>
|
||||||
<li>_id_alert_: Numerical ID of the alert (unique), used to correlate on third party software.</li>
|
<li>_id_alert_: Numerical ID of the alert (unique), used to correlate on third party software.</li>
|
||||||
<li>_policy_: Name of the policy the module belongs to (if applies).</li>
|
<li>_policy_: Name of the policy the module belongs to (if applies).</li>
|
||||||
<li>_interval_: Execution interval of the module </li>
|
<li>_interval_: Execution interval of the module </li>
|
||||||
|
@ -18,6 +18,7 @@ The following macros are available:
|
|||||||
<li>_moduledescription_ : Description of the module.</li>
|
<li>_moduledescription_ : Description of the module.</li>
|
||||||
<li>_modulestatus_ : Status of the module.</li>
|
<li>_modulestatus_ : Status of the module.</li>
|
||||||
<li>_id_agent_ : Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
<li>_id_agent_ : Id of agent, useful to build direct URL to redirect to a Pandora FMS console webpage.</li>
|
||||||
|
<li>_id_group_ : Id of agent group.</li>
|
||||||
<li>_policy_ : Name of the policy the module belongs to (if applies).</li>
|
<li>_policy_ : Name of the policy the module belongs to (if applies).</li>
|
||||||
<li>_interval_ : Execution interval of the module. </li>
|
<li>_interval_ : Execution interval of the module. </li>
|
||||||
|
|
||||||
|
@ -49,6 +49,7 @@ email アクションを設定するには、_field1_ (送信先アドレス)、
|
|||||||
<li>_event_text_severity_ : (イベントアラートのみ) イベント(アラートの発生元)のテキストでの重要度 (Maintenance, Informational, Normal Minor, Warning, Major, Critical)</li>
|
<li>_event_text_severity_ : (イベントアラートのみ) イベント(アラートの発生元)のテキストでの重要度 (Maintenance, Informational, Normal Minor, Warning, Major, Critical)</li>
|
||||||
<li>_event_id_ : (イベントアラートのみ) アラート発生元のイベントID</li>
|
<li>_event_id_ : (イベントアラートのみ) アラート発生元のイベントID</li>
|
||||||
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です</li>
|
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です</li>
|
||||||
|
<li>_id_group_ : エージェントグループのID</li>
|
||||||
<li>_id_alert_ : アラートの(ユニークな)ID / 他のソフトウエアパッケージとの連携に利用できます</li>
|
<li>_id_alert_ : アラートの(ユニークな)ID / 他のソフトウエアパッケージとの連携に利用できます</li>
|
||||||
<li>_policy_ : モジュールが属するポリシー名 (存在する場合)</li>
|
<li>_policy_ : モジュールが属するポリシー名 (存在する場合)</li>
|
||||||
<li>_interval_ : モジュールの実行間隔</li>
|
<li>_interval_ : モジュールの実行間隔</li>
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
<li>_event_text_severity_ : (イベントアラートのみ) イベント(アラートの発生元)のテキストでの重要度 (Maintenance, Informational, Normal Minor, Warning, Major, Critical)</li>
|
<li>_event_text_severity_ : (イベントアラートのみ) イベント(アラートの発生元)のテキストでの重要度 (Maintenance, Informational, Normal Minor, Warning, Major, Critical)</li>
|
||||||
<li>_event_id_ : (イベントアラートのみ) アラート発生元のイベントID</li>
|
<li>_event_id_ : (イベントアラートのみ) アラート発生元のイベントID</li>
|
||||||
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です</li>
|
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です</li>
|
||||||
|
<li>_id_group_ : エージェントグループのID</li>
|
||||||
<li>_id_alert_ : アラートの(ユニークな)ID / 他のソフトウエアパッケージとの連携に利用できます</li>
|
<li>_id_alert_ : アラートの(ユニークな)ID / 他のソフトウエアパッケージとの連携に利用できます</li>
|
||||||
<li>_policy_ : モジュールが属するポリシー名 (存在する場合)</li>
|
<li>_policy_ : モジュールが属するポリシー名 (存在する場合)</li>
|
||||||
<li>_interval_ : モジュールの実行間隔</li>
|
<li>_interval_ : モジュールの実行間隔</li>
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
<li>_moduledescription_ : モジュールの説明。</li>
|
<li>_moduledescription_ : モジュールの説明。</li>
|
||||||
<li>_modulestatus_ : モジュールの状態。</li>
|
<li>_modulestatus_ : モジュールの状態。</li>
|
||||||
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です。</li>
|
<li>_id_agent_ : エージェントのID / Webコンソールへのリンクを生成するのに便利です。</li>
|
||||||
|
<li>_id_group_ : エージェントグループのID</li>
|
||||||
<li>_policy_ : モジュールが属するポリシー名。(存在する場合)</li>
|
<li>_policy_ : モジュールが属するポリシー名。(存在する場合)</li>
|
||||||
<li>_interval_ : モジュールの実行間隔。</li>
|
<li>_interval_ : モジュールの実行間隔。</li>
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '6.0';
|
$version = '6.0';
|
||||||
$build = '151103';
|
$build = '151104';
|
||||||
$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.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
|
|
||||||
# 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.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
%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.0');
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_version','6.0');
|
||||||
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD151103');
|
INSERT INTO tconfig (token, value) VALUES('db_scheme_build','PD151104');
|
||||||
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.0-151103
|
Version: 6.0-151104
|
||||||
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.0-151103"
|
pandora_version="6.0-151104"
|
||||||
|
|
||||||
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.0";
|
my $pandora_version = "6.0";
|
||||||
my $pandora_build = "151103";
|
my $pandora_build = "151104";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -934,6 +934,7 @@ sub pandora_execute_action ($$$$$$$$$;$) {
|
|||||||
_modulestatus_ => undef,
|
_modulestatus_ => undef,
|
||||||
_moduletags_ => undef,
|
_moduletags_ => undef,
|
||||||
_id_agent_ => (defined ($module)) ? $module->{'id_agente'} : '',
|
_id_agent_ => (defined ($module)) ? $module->{'id_agente'} : '',
|
||||||
|
_id_group_ => (defined ($group)) ? $group->{'id_grupo'} : '',
|
||||||
_id_alert_ => (defined ($alert->{'id_template_module'})) ? $alert->{'id_template_module'} : '',
|
_id_alert_ => (defined ($alert->{'id_template_module'})) ? $alert->{'id_template_module'} : '',
|
||||||
_interval_ => (defined ($module) && $module->{'module_interval'} != 0) ? $module->{'module_interval'} : (defined ($agent)) ? $agent->{'intervalo'} : '',
|
_interval_ => (defined ($module) && $module->{'module_interval'} != 0) ? $module->{'module_interval'} : (defined ($agent)) ? $agent->{'intervalo'} : '',
|
||||||
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
|
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
|
||||||
|
@ -226,6 +226,7 @@ sub data_consumer ($$) {
|
|||||||
_modulestatus_ => undef,
|
_modulestatus_ => undef,
|
||||||
_moduletags_ => undef,
|
_moduletags_ => undef,
|
||||||
_id_agent_ => (defined ($module)) ? $module->{'id_agente'} : '',
|
_id_agent_ => (defined ($module)) ? $module->{'id_agente'} : '',
|
||||||
|
_id_group_ => (defined ($group)) ? $group->{'id_grupo'} : '',
|
||||||
_interval_ => (defined ($module) && $module->{'module_interval'} != 0) ? $module->{'module_interval'} : (defined ($agent)) ? $agent->{'intervalo'} : '',
|
_interval_ => (defined ($module) && $module->{'module_interval'} != 0) ? $module->{'module_interval'} : (defined ($agent)) ? $agent->{'intervalo'} : '',
|
||||||
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
|
_target_ip_ => (defined ($module)) ? $module->{'ip_target'} : '',
|
||||||
_target_port_ => (defined ($module)) ? $module->{'tcp_port'} : '',
|
_target_port_ => (defined ($module)) ? $module->{'tcp_port'} : '',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 6.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
|
|
||||||
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.0
|
%define version 6.0
|
||||||
%define release 151103
|
%define release 151104
|
||||||
|
|
||||||
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.0 PS151103";
|
my $version = "6.0 PS151104";
|
||||||
|
|
||||||
# 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.0 PS151103";
|
my $version = "6.0 PS151104";
|
||||||
|
|
||||||
# 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