mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
Merge remote-tracking branch 'origin/develop' into new-vc-line-element
This commit is contained in:
commit
14e4e37c2a
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 7.0NG.742-200109
|
Version: 7.0NG.742-200110
|
||||||
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="7.0NG.742-200109"
|
pandora_version="7.0NG.742-200110"
|
||||||
|
|
||||||
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
|
||||||
|
@ -55,7 +55,7 @@ my $Sem = undef;
|
|||||||
my $ThreadSem = undef;
|
my $ThreadSem = undef;
|
||||||
|
|
||||||
use constant AGENT_VERSION => '7.0NG.742';
|
use constant AGENT_VERSION => '7.0NG.742';
|
||||||
use constant AGENT_BUILD => '200109';
|
use constant AGENT_BUILD => '200110';
|
||||||
|
|
||||||
# Agent log default file size maximum and instances
|
# Agent log default file size maximum and instances
|
||||||
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
use constant DEFAULT_MAX_LOG_SIZE => 600000;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_agent_unix
|
%define name pandorafms_agent_unix
|
||||||
%define version 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
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 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
Summary: Pandora FMS Linux agent, PERL version
|
Summary: Pandora FMS Linux agent, PERL version
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.742"
|
PI_VERSION="7.0NG.742"
|
||||||
PI_BUILD="200109"
|
PI_BUILD="200110"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{200109}
|
{200110}
|
||||||
|
|
||||||
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 ("7.0NG.742(Build 200109)")
|
#define PANDORA_VERSION ("7.0NG.742(Build 200110)")
|
||||||
|
|
||||||
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", "(7.0NG.742(Build 200109))"
|
VALUE "ProductVersion", "(7.0NG.742(Build 200110))"
|
||||||
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: 7.0NG.742-200109
|
Version: 7.0NG.742-200110
|
||||||
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="7.0NG.742-200109"
|
pandora_version="7.0NG.742-200110"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -798,11 +798,7 @@ function mainAgentsModules()
|
|||||||
echo "<td style='text-align: center;'>";
|
echo "<td style='text-align: center;'>";
|
||||||
$win_handle = dechex(crc32($module_id.$module['name']));
|
$win_handle = dechex(crc32($module_id.$module['name']));
|
||||||
$graph_type = return_graphtype(modules_get_agentmodule_type($module_id));
|
$graph_type = return_graphtype(modules_get_agentmodule_type($module_id));
|
||||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'label='.rawurlencode(
|
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module_id.'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['name'])
|
|
||||||
)
|
|
||||||
).'&'.'refresh='.SECONDS_10MINUTES."', 'day_".$win_handle."')";
|
|
||||||
|
|
||||||
echo '<a href="javascript:'.$link.'">';
|
echo '<a href="javascript:'.$link.'">';
|
||||||
switch ($status) {
|
switch ($status) {
|
||||||
|
@ -1141,11 +1141,7 @@ if (check_login()) {
|
|||||||
$draw_events = 0;
|
$draw_events = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&label='.rawurlencode(
|
$link = "winopeng_var('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&id='.$module['id_agente_modulo'].'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['nombre'])
|
|
||||||
)
|
|
||||||
).'&refresh='.SECONDS_10MINUTES.'&'."draw_events=$draw_events', 'day_".$win_handle."', 1000, 700)";
|
|
||||||
if (!is_snapshot_data($module['datos'])) {
|
if (!is_snapshot_data($module['datos'])) {
|
||||||
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => '0', 'alt' => '']).'</a> ';
|
$data[8] .= '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => '0', 'alt' => '']).'</a> ';
|
||||||
}
|
}
|
||||||
|
@ -652,7 +652,6 @@ class Tree
|
|||||||
'type' => $graphType,
|
'type' => $graphType,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $module['id'],
|
'id' => $module['id'],
|
||||||
'label' => base64_encode($module['name']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC200109';
|
$build_version = 'PC200110';
|
||||||
$pandora_version = 'v7.0NG.742';
|
$pandora_version = 'v7.0NG.742';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -4116,7 +4116,6 @@ function events_page_details($event, $server='')
|
|||||||
'type' => $graph_type,
|
'type' => $graph_type,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $module['id_agente_modulo'],
|
'id' => $module['id_agente_modulo'],
|
||||||
'label' => base64_encode($module['nombre']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -913,15 +913,15 @@ div#head {
|
|||||||
min-width: 882px;
|
min-width: 882px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
color: #000;
|
color: #000;
|
||||||
z-index: 2;
|
z-index: 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fixed_header {
|
.fixed_header {
|
||||||
z-index: 9999;
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
z-index: 11;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ver {
|
#ver {
|
||||||
|
@ -129,7 +129,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '7.0NG.742';
|
$version = '7.0NG.742';
|
||||||
$build = '200109';
|
$build = '200110';
|
||||||
$banner = "v$version Build $build";
|
$banner = "v$version Build $build";
|
||||||
|
|
||||||
error_reporting(0);
|
error_reporting(0);
|
||||||
|
@ -49,11 +49,10 @@ if (file_exists('../../include/languages/'.$user_language.'.mo')) {
|
|||||||
|
|
||||||
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
|
echo '<link rel="stylesheet" href="../../include/styles/pandora.css" type="text/css"/>';
|
||||||
|
|
||||||
$label = get_parameter('label');
|
$id = get_parameter('id');
|
||||||
$label = base64_decode($label);
|
$id_agent = db_get_value('id_agente', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||||
$id = get_parameter('id');
|
$alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
||||||
$id_agent = db_get_value('id_agente', 'tagente_modulo', 'id_agente_modulo', $id);
|
$label = db_get_value('nombre', 'tagente_modulo', 'id_agente_modulo', $id);
|
||||||
$alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
|
||||||
// $agent = agents_get_agent_with_ip ("192.168.50.31");
|
// $agent = agents_get_agent_with_ip ("192.168.50.31");
|
||||||
// $label = rawurldecode(urldecode(base64_decode(get_parameter('label', ''))));
|
// $label = rawurldecode(urldecode(base64_decode(get_parameter('label', ''))));
|
||||||
?>
|
?>
|
||||||
@ -117,8 +116,6 @@ $alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
|||||||
|
|
||||||
$period = get_parameter('period');
|
$period = get_parameter('period');
|
||||||
$id = get_parameter('id', 0);
|
$id = get_parameter('id', 0);
|
||||||
$label = get_parameter('label', '');
|
|
||||||
$label_graph = base64_decode(get_parameter('label', ''));
|
|
||||||
$start_date = get_parameter('start_date', date('Y/m/d'));
|
$start_date = get_parameter('start_date', date('Y/m/d'));
|
||||||
$start_time = get_parameter('start_time', date('H:i:s'));
|
$start_time = get_parameter('start_time', date('H:i:s'));
|
||||||
$draw_events = get_parameter('draw_events', 0);
|
$draw_events = get_parameter('draw_events', 0);
|
||||||
@ -190,7 +187,7 @@ $alias = db_get_value('alias', 'tagente', 'id_agente', $id_agent);
|
|||||||
'agent_module_id' => $id,
|
'agent_module_id' => $id,
|
||||||
'period' => $period,
|
'period' => $period,
|
||||||
'show_events' => $draw_events,
|
'show_events' => $draw_events,
|
||||||
'title' => $label_graph,
|
'title' => $label,
|
||||||
'unit_name' => $unit,
|
'unit_name' => $unit,
|
||||||
'show_alerts' => $draw_alerts,
|
'show_alerts' => $draw_alerts,
|
||||||
'date' => $date,
|
'date' => $date,
|
||||||
|
@ -1502,7 +1502,6 @@ if (!empty($result)) {
|
|||||||
'type' => $graph_type,
|
'type' => $graph_type,
|
||||||
'period' => SECONDS_1DAY,
|
'period' => SECONDS_1DAY,
|
||||||
'id' => $row['id_agente_modulo'],
|
'id' => $row['id_agente_modulo'],
|
||||||
'label' => base64_encode($row['module_name']),
|
|
||||||
'refresh' => SECONDS_10MINUTES,
|
'refresh' => SECONDS_10MINUTES,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -152,11 +152,7 @@ if (!$modules || !$searchModules) {
|
|||||||
$url = 'include/procesos.php?agente='.$module['id_agente_modulo'];
|
$url = 'include/procesos.php?agente='.$module['id_agente_modulo'];
|
||||||
$win_handle = dechex(crc32($module['id_agente_modulo'].$module['module_name']));
|
$win_handle = dechex(crc32($module['id_agente_modulo'].$module['module_name']));
|
||||||
|
|
||||||
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo'].'&'.'label='.rawurlencode(
|
$link = "winopeng('".'operation/agentes/stat_win.php?'."type=$graph_type&".'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo'].'&'.'refresh='.SECONDS_10MINUTES."', "."'day_".$win_handle."')";
|
||||||
urlencode(
|
|
||||||
base64_encode($module['module_name'])
|
|
||||||
)
|
|
||||||
).'&'.'refresh='.SECONDS_10MINUTES."', "."'day_".$win_handle."')";
|
|
||||||
|
|
||||||
$graphCell = '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => 0, 'alt' => '']).'</a>';
|
$graphCell = '<a href="javascript:'.$link.'">'.html_print_image('images/chart_curve.png', true, ['border' => 0, 'alt' => '']).'</a>';
|
||||||
$graphCell .= ' '."<a href='index.php?".'sec=estado&'.'sec2=operation/agentes/ver_agente&'.'id_agente='.$module['id_agente'].'&'.'tab=data_view&'.'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo']."'>".html_print_image(
|
$graphCell .= ' '."<a href='index.php?".'sec=estado&'.'sec2=operation/agentes/ver_agente&'.'id_agente='.$module['id_agente'].'&'.'tab=data_view&'.'period='.SECONDS_1DAY.'&'.'id='.$module['id_agente_modulo']."'>".html_print_image(
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_console
|
%define name pandorafms_console
|
||||||
%define version 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
# 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 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
# 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 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
%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
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 7.0NG.742-200109
|
Version: 7.0NG.742-200110
|
||||||
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="7.0NG.742-200109"
|
pandora_version="7.0NG.742-200110"
|
||||||
|
|
||||||
package_cpan=0
|
package_cpan=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -45,7 +45,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 = "7.0NG.742";
|
my $pandora_version = "7.0NG.742";
|
||||||
my $pandora_build = "200109";
|
my $pandora_build = "200110";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
# Setup hash
|
# Setup hash
|
||||||
|
@ -32,7 +32,7 @@ our @ISA = qw(Exporter);
|
|||||||
|
|
||||||
# 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 = "7.0NG.742";
|
my $pandora_version = "7.0NG.742";
|
||||||
my $pandora_build = "200109";
|
my $pandora_build = "200110";
|
||||||
our $VERSION = $pandora_version." ".$pandora_build;
|
our $VERSION = $pandora_version." ".$pandora_build;
|
||||||
|
|
||||||
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
our %EXPORT_TAGS = ( 'all' => [ qw() ] );
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
#
|
#
|
||||||
%define name pandorafms_server
|
%define name pandorafms_server
|
||||||
%define version 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
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 7.0NG.742
|
%define version 7.0NG.742
|
||||||
%define release 200109
|
%define release 200110
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.742"
|
PI_VERSION="7.0NG.742"
|
||||||
PI_BUILD="200109"
|
PI_BUILD="200110"
|
||||||
|
|
||||||
MODE=$1
|
MODE=$1
|
||||||
if [ $# -gt 1 ]; then
|
if [ $# -gt 1 ]; then
|
||||||
|
@ -34,7 +34,7 @@ use PandoraFMS::Config;
|
|||||||
use PandoraFMS::DB;
|
use PandoraFMS::DB;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.742 PS200109";
|
my $version = "7.0NG.742 PS200110";
|
||||||
|
|
||||||
# Pandora server configuration
|
# Pandora server configuration
|
||||||
my %conf;
|
my %conf;
|
||||||
|
@ -36,7 +36,7 @@ use Encode::Locale;
|
|||||||
Encode::Locale::decode_argv;
|
Encode::Locale::decode_argv;
|
||||||
|
|
||||||
# version: define current version
|
# version: define current version
|
||||||
my $version = "7.0NG.742 PS200109";
|
my $version = "7.0NG.742 PS200110";
|
||||||
|
|
||||||
# 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