mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Merge branch 'develop' into 1612-se-borran-elementos-al-mover-un-item-en-consola-visual-dev
Conflicts: pandora_console/include/ajax/visual_console_builder.ajax.php
This commit is contained in:
commit
bcc6672cdf
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-agent-unix
|
package: pandorafms-agent-unix
|
||||||
Version: 7.0NG.715-171115
|
Version: 7.0NG.715-171116
|
||||||
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.715-171115"
|
pandora_version="7.0NG.715-171116"
|
||||||
|
|
||||||
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 => '7.0NG.715';
|
use constant AGENT_VERSION => '7.0NG.715';
|
||||||
use constant AGENT_BUILD => '171115';
|
use constant AGENT_BUILD => '171116';
|
||||||
|
|
||||||
# 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.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
|
|
||||||
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.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
|
|
||||||
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.715"
|
PI_VERSION="7.0NG.715"
|
||||||
PI_BUILD="171115"
|
PI_BUILD="171116"
|
||||||
OS_NAME=`uname -s`
|
OS_NAME=`uname -s`
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
@ -186,7 +186,7 @@ UpgradeApplicationID
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Version
|
Version
|
||||||
{171115}
|
{171116}
|
||||||
|
|
||||||
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.715(Build 171115)")
|
#define PANDORA_VERSION ("7.0NG.715(Build 171116)")
|
||||||
|
|
||||||
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.715(Build 171115))"
|
VALUE "ProductVersion", "(7.0NG.715(Build 171116))"
|
||||||
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.715-171115
|
Version: 7.0NG.715-171116
|
||||||
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.715-171115"
|
pandora_version="7.0NG.715-171116"
|
||||||
|
|
||||||
package_pear=0
|
package_pear=0
|
||||||
package_pandora=1
|
package_pandora=1
|
||||||
|
@ -1242,6 +1242,7 @@ ALTER TABLE tlayout_data ADD `label_position` varchar(50) NOT NULL default 'down
|
|||||||
ALTER TABLE tlayout_data ADD COLUMN `show_statistics` tinyint(2) NOT NULL default '0';
|
ALTER TABLE tlayout_data ADD COLUMN `show_statistics` tinyint(2) NOT NULL default '0';
|
||||||
ALTER TABLE tlayout_data ADD COLUMN `element_group` int(10) NOT NULL default '0';
|
ALTER TABLE tlayout_data ADD COLUMN `element_group` int(10) NOT NULL default '0';
|
||||||
ALTER TABLE tlayout_data ADD COLUMN `id_layout_linked_weight` int(10) NOT NULL default '0';
|
ALTER TABLE tlayout_data ADD COLUMN `id_layout_linked_weight` int(10) NOT NULL default '0';
|
||||||
|
ALTER TABLE tlayout_data ADD COLUMN `show_on_top` tinyint(1) NOT NULL default '0';
|
||||||
|
|
||||||
-- ---------------------------------------------------------------------
|
-- ---------------------------------------------------------------------
|
||||||
-- Table `tagent_custom_fields`
|
-- Table `tagent_custom_fields`
|
||||||
|
@ -855,6 +855,7 @@ function readFields() {
|
|||||||
values['line_color'] = $("input[name='line_color']").val();
|
values['line_color'] = $("input[name='line_color']").val();
|
||||||
values['label_position'] = $(".labelpos[sel=yes]").attr('position');
|
values['label_position'] = $(".labelpos[sel=yes]").attr('position');
|
||||||
values['show_statistics'] = $("input[name=show_statistics]").is(':checked') ? 1 : 0;
|
values['show_statistics'] = $("input[name=show_statistics]").is(':checked') ? 1 : 0;
|
||||||
|
values['show_on_top'] = $("input[name=show_on_top]").is(':checked') ? 1 : 0;
|
||||||
|
|
||||||
if (is_metaconsole()) {
|
if (is_metaconsole()) {
|
||||||
values['metaconsole'] = 1;
|
values['metaconsole'] = 1;
|
||||||
@ -1295,6 +1296,9 @@ function toggle_item_palette() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
hiddenFields(item);
|
hiddenFields(item);
|
||||||
|
|
||||||
|
$("#show_on_top_row").css('display', 'table-row');
|
||||||
|
$("#show_on_top." + item).css('display', 'block');
|
||||||
|
|
||||||
$("#properties_panel").show("fast");
|
$("#properties_panel").show("fast");
|
||||||
|
|
||||||
@ -1424,6 +1428,17 @@ function loadFieldsFromDB(item) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (key == 'show_on_top') {
|
||||||
|
if (val == "1") {
|
||||||
|
$("input[name=show_on_top]")
|
||||||
|
.prop("checked", true);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("input[name=show_on_top]")
|
||||||
|
.prop("checked", false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (key == 'type_graph') {
|
if (key == 'type_graph') {
|
||||||
$("select[name=type_graph]").val(val);
|
$("select[name=type_graph]").val(val);
|
||||||
}
|
}
|
||||||
@ -1901,6 +1916,7 @@ function cleanFields(item) {
|
|||||||
$("input[name=percentile_label_color]").val('');
|
$("input[name=percentile_label_color]").val('');
|
||||||
$("input[name=percentile_label]").val('');
|
$("input[name=percentile_label]").val('');
|
||||||
$(".ColorPickerDivSample").css('background-color', '#FFF');
|
$(".ColorPickerDivSample").css('background-color', '#FFF');
|
||||||
|
$("input[name=show_on_top]").prop("checked", false);
|
||||||
|
|
||||||
|
|
||||||
$("#preview").empty();
|
$("#preview").empty();
|
||||||
@ -3464,8 +3480,6 @@ function createItem(type, values, id_data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$("#background").append(item);
|
$("#background").append(item);
|
||||||
$(".item").css('z-index', '2');
|
|
||||||
$(".box_item").css('z-index', '1');
|
|
||||||
|
|
||||||
if (values['parent'] != 0) {
|
if (values['parent'] != 0) {
|
||||||
var line = {"id": id_data,
|
var line = {"id": id_data,
|
||||||
@ -3488,6 +3502,14 @@ function createItem(type, values, id_data) {
|
|||||||
$('#text_'+id_data).css({'display':'block','float':'left'});
|
$('#text_'+id_data).css({'display':'block','float':'left'});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(values['show_on_top'] == 1){
|
||||||
|
$("#" + id_data).css('z-index', '10');
|
||||||
|
}
|
||||||
|
|
||||||
|
if(values['show_on_top'] == 0){
|
||||||
|
$("#" + id_data).css('z-index', '5');
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function addItemSelectParents(id_data, text) {
|
function addItemSelectParents(id_data, text) {
|
||||||
@ -3690,6 +3712,15 @@ function updateDB_visual(type, idElement , values, event, top, left) {
|
|||||||
|
|
||||||
refresh_lines(lines, 'background', true);
|
refresh_lines(lines, 'background', true);
|
||||||
draw_user_lines("", 0, 0, 0 , 0, 0, true);
|
draw_user_lines("", 0, 0, 0 , 0, 0, true);
|
||||||
|
|
||||||
|
if(values['show_on_top'] == 1){
|
||||||
|
$("#" + idElement).css('z-index',10);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(values['show_on_top'] == 0){
|
||||||
|
$("#" + idElement).css('z-index',5);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDB(type, idElement , values, event) {
|
function updateDB(type, idElement , values, event) {
|
||||||
@ -4525,6 +4556,8 @@ function eventsBackground() {
|
|||||||
if ((!is_opened_palette) && (autosave)) {
|
if ((!is_opened_palette) && (autosave)) {
|
||||||
toggle_item_palette();
|
toggle_item_palette();
|
||||||
}
|
}
|
||||||
|
$("#show_on_top_row").css('display', 'none');
|
||||||
|
$("#show_on_top." + item).css('display', '');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -413,6 +413,8 @@ switch ($activeTab) {
|
|||||||
$value_show = get_parameter ("value_show", 'percent');
|
$value_show = get_parameter ("value_show", 'percent');
|
||||||
$label_type = get_parameter ("label_type", 'agent_module');
|
$label_type = get_parameter ("label_type", 'agent_module');
|
||||||
$enable_link = get_parameter ("enable_link", 'enable_link');
|
$enable_link = get_parameter ("enable_link", 'enable_link');
|
||||||
|
$show_on_top = get_parameter ("show_on_top", 0);
|
||||||
|
|
||||||
// This var switch between creation of items, item_per_agent = 0 => item per module; item_per_agent <> 0 => item per agent
|
// This var switch between creation of items, item_per_agent = 0 => item per module; item_per_agent <> 0 => item per agent
|
||||||
$item_per_agent = get_parameter ("item_per_agent", 0);
|
$item_per_agent = get_parameter ("item_per_agent", 0);
|
||||||
$id_server = (int)get_parameter('servers', 0);
|
$id_server = (int)get_parameter('servers', 0);
|
||||||
|
@ -140,6 +140,7 @@ $line_color = get_parameter('line_color', '');
|
|||||||
$get_element_status = get_parameter('get_element_status', 0);
|
$get_element_status = get_parameter('get_element_status', 0);
|
||||||
|
|
||||||
$enable_link = get_parameter('enable_link', 1);
|
$enable_link = get_parameter('enable_link', 1);
|
||||||
|
$show_on_top = get_parameter('show_on_top', 0);
|
||||||
$type_graph = get_parameter('type_graph', 'area');
|
$type_graph = get_parameter('type_graph', 'area');
|
||||||
$label_position = get_parameter('label_position', 'down');
|
$label_position = get_parameter('label_position', 'down');
|
||||||
$show_statistics = get_parameter('show_statistics', 0);
|
$show_statistics = get_parameter('show_statistics', 0);
|
||||||
@ -492,6 +493,7 @@ switch ($action) {
|
|||||||
$values = array();
|
$values = array();
|
||||||
|
|
||||||
$values['label_position'] = $label_position;
|
$values['label_position'] = $label_position;
|
||||||
|
$values['show_on_top'] = $show_on_top;
|
||||||
|
|
||||||
// In Graphs, background color is stored in column image (sorry)
|
// In Graphs, background color is stored in column image (sorry)
|
||||||
if ($type == 'module_graph') {
|
if ($type == 'module_graph') {
|
||||||
@ -531,6 +533,9 @@ switch ($action) {
|
|||||||
if ($enable_link !== null) {
|
if ($enable_link !== null) {
|
||||||
$values['enable_link'] = $enable_link;
|
$values['enable_link'] = $enable_link;
|
||||||
}
|
}
|
||||||
|
if ($show_on_top !== null) {
|
||||||
|
$values['show_on_top'] = $show_on_top;
|
||||||
|
}
|
||||||
if ($label !== null) {
|
if ($label !== null) {
|
||||||
$values['label'] = $label;
|
$values['label'] = $label;
|
||||||
}
|
}
|
||||||
@ -747,6 +752,7 @@ switch ($action) {
|
|||||||
unset($values['label_position']);
|
unset($values['label_position']);
|
||||||
unset($values['id_agent']);
|
unset($values['id_agent']);
|
||||||
unset($values['enable_link']);
|
unset($values['enable_link']);
|
||||||
|
unset($values['show_on_top']);
|
||||||
// Don't change background color in graphs when move
|
// Don't change background color in graphs when move
|
||||||
|
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
@ -1036,6 +1042,7 @@ switch ($action) {
|
|||||||
$values['id_layout_linked_weight'] = $map_linked_weight;
|
$values['id_layout_linked_weight'] = $map_linked_weight;
|
||||||
$values['parent_item'] = $parent;
|
$values['parent_item'] = $parent;
|
||||||
$values['enable_link'] = $enable_link;
|
$values['enable_link'] = $enable_link;
|
||||||
|
$values['show_on_top'] = $show_on_top;
|
||||||
$values['image'] = $background_color;
|
$values['image'] = $background_color;
|
||||||
$values['type_graph'] = $type_graph;
|
$values['type_graph'] = $type_graph;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
/**
|
/**
|
||||||
* Pandora build version and version
|
* Pandora build version and version
|
||||||
*/
|
*/
|
||||||
$build_version = 'PC171115';
|
$build_version = 'PC171116';
|
||||||
$pandora_version = 'v7.0NG.715';
|
$pandora_version = 'v7.0NG.715';
|
||||||
|
|
||||||
// Do not overwrite default timezone set if defined.
|
// Do not overwrite default timezone set if defined.
|
||||||
|
@ -111,6 +111,14 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$border_color = $layoutData['border_color'];
|
$border_color = $layoutData['border_color'];
|
||||||
$fill_color = $layoutData['fill_color'];
|
$fill_color = $layoutData['fill_color'];
|
||||||
$label_position = $layoutData['label_position'];
|
$label_position = $layoutData['label_position'];
|
||||||
|
$show_on_top = $layoutData['show_on_top'];
|
||||||
|
|
||||||
|
if($show_on_top){
|
||||||
|
$show_on_top_index = 10;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
$show_on_top_index = '';
|
||||||
|
}
|
||||||
|
|
||||||
$sizeStyle = '';
|
$sizeStyle = '';
|
||||||
$borderStyle = '';
|
$borderStyle = '';
|
||||||
@ -961,14 +969,14 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
else {
|
else {
|
||||||
if ($width == 0 || $height == 0) {
|
if ($width == 0 || $height == 0) {
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">'.custom_graphs_print(
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">'.custom_graphs_print(
|
||||||
$layoutData['id_custom_graph'], 180, 480,
|
$layoutData['id_custom_graph'], 180, 480,
|
||||||
$period, null, true, 0, $only_image, $layoutData['image'],
|
$period, null, true, 0, $only_image, $layoutData['image'],
|
||||||
array(), '', array(), array(), true,
|
array(), '', array(), array(), true,
|
||||||
false, false, true, 1, false, true).'</div>';
|
false, false, true, 1, false, true).'</div>';
|
||||||
}
|
}
|
||||||
elseif ($layoutData['label_position']=='right') {
|
elseif ($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">'.custom_graphs_print(
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">'.custom_graphs_print(
|
||||||
$layoutData['id_custom_graph'], 180, 480,
|
$layoutData['id_custom_graph'], 180, 480,
|
||||||
$period, null, true, 0, $only_image, $layoutData['image'],
|
$period, null, true, 0, $only_image, $layoutData['image'],
|
||||||
array(), '', array(), array(), true,
|
array(), '', array(), array(), true,
|
||||||
@ -988,14 +996,14 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">'.custom_graphs_print(
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">'.custom_graphs_print(
|
||||||
$layoutData['id_custom_graph'], $height, $width,
|
$layoutData['id_custom_graph'], $height, $width,
|
||||||
$period, null, true, 0, $only_image, $layoutData['image'],
|
$period, null, true, 0, $only_image, $layoutData['image'],
|
||||||
array(), '', array(), array(), true,
|
array(), '', array(), array(), true,
|
||||||
false, false, true, 1, false, true).'</div>';
|
false, false, true, 1, false, true).'</div>';
|
||||||
}
|
}
|
||||||
elseif($layoutData['label_position']=='right') {
|
elseif($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">'.custom_graphs_print(
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">'.custom_graphs_print(
|
||||||
$layoutData['id_custom_graph'], $height, $width,
|
$layoutData['id_custom_graph'], $height, $width,
|
||||||
$period, null, true, 0, $only_image, $layoutData['image'],
|
$period, null, true, 0, $only_image, $layoutData['image'],
|
||||||
array(), '', array(), array(), true,
|
array(), '', array(), array(), true,
|
||||||
@ -1041,7 +1049,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
if ($width == 0 || $height == 0) {
|
if ($width == 0 || $height == 0) {
|
||||||
|
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">'.
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">'.
|
||||||
grafico_modulo_sparse($id_module, $period,
|
grafico_modulo_sparse($id_module, $period,
|
||||||
0, 300, 180, modules_get_agentmodule_name($id_module),null, false, 1, false, 0,
|
0, 300, 180, modules_get_agentmodule_name($id_module),null, false, 1, false, 0,
|
||||||
modules_get_unit($id_module), 0, 0, true, $only_image, '', 1, false, '',
|
modules_get_unit($id_module), 0, 0, true, $only_image, '', 1, false, '',
|
||||||
@ -1049,7 +1057,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
null, true, false, $type_graph) . '</div>';
|
null, true, false, $type_graph) . '</div>';
|
||||||
}
|
}
|
||||||
elseif($layoutData['label_position']=='right') {
|
elseif($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">' .
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">' .
|
||||||
grafico_modulo_sparse($id_module,
|
grafico_modulo_sparse($id_module,
|
||||||
$period, 0, 300, 180, modules_get_agentmodule_name($id_module),null, false,
|
$period, 0, 300, 180, modules_get_agentmodule_name($id_module),null, false,
|
||||||
1, false, 0, modules_get_unit($id_module), 0, 0, true, $only_image, '',
|
1, false, 0, modules_get_unit($id_module), 0, 0, true, $only_image, '',
|
||||||
@ -1067,7 +1075,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">' .
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">' .
|
||||||
grafico_modulo_sparse($id_module, $period,
|
grafico_modulo_sparse($id_module, $period,
|
||||||
0, $width, $height, modules_get_agentmodule_name($id_module), null, false, 1,
|
0, $width, $height, modules_get_agentmodule_name($id_module), null, false, 1,
|
||||||
false, 0, modules_get_unit($id_module), 0, 0, true, $only_image, '',
|
false, 0, modules_get_unit($id_module), 0, 0, true, $only_image, '',
|
||||||
@ -1076,7 +1084,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
false, $type_graph) . '</div>';
|
false, $type_graph) . '</div>';
|
||||||
}
|
}
|
||||||
elseif ($layoutData['label_position']=='right') {
|
elseif ($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">' .
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">' .
|
||||||
grafico_modulo_sparse($id_module, $period,
|
grafico_modulo_sparse($id_module, $period,
|
||||||
0, $width, $height, modules_get_agentmodule_name($id_module), null, false, 1,
|
0, $width, $height, modules_get_agentmodule_name($id_module), null, false, 1,
|
||||||
false, 0, modules_get_unit($id_module), 0, 0, true, $only_image,
|
false, 0, modules_get_unit($id_module), 0, 0, true, $only_image,
|
||||||
@ -1436,10 +1444,10 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
else {
|
else {
|
||||||
if ($width == 0 || $height == 0) {
|
if ($width == 0 || $height == 0) {
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">' .graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true).'</div>';
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">' .graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true).'</div>';
|
||||||
}
|
}
|
||||||
elseif ($layoutData['label_position']=='right') {
|
elseif ($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">' . graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true).'</div>';
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">' . graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true).'</div>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$img = graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true);
|
$img = graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], 500, 50, $layoutData['period'], '', true);
|
||||||
@ -1447,10 +1455,10 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if ($layoutData['label_position']=='left') {
|
if ($layoutData['label_position']=='left') {
|
||||||
$img = '<div style="float:left;height:'.$himg.'px;">' . graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true).'</div>';
|
$img = '<div style="z-index:'.$show_on_top_index.';float:left;height:'.$himg.'px;">' . graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true).'</div>';
|
||||||
}
|
}
|
||||||
elseif ($layoutData['label_position']=='right') {
|
elseif ($layoutData['label_position']=='right') {
|
||||||
$img = '<div style="float:right;height:'.$himg.'px;">' .graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true).'</div>';
|
$img = '<div style="z-index:'.$show_on_top_index.';float:right;height:'.$himg.'px;">' .graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true).'</div>';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$img = graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true);
|
$img = graph_graphic_moduleevents ($layoutData['id_agent'], $layoutData['id_agente_modulo'], $width, $height, $layoutData['period'], '', true);
|
||||||
@ -1515,6 +1523,10 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if($show_on_top){
|
||||||
|
$z_index = 10;
|
||||||
|
}
|
||||||
|
|
||||||
echo '<div id="' . $id . '" class="' . $class . '" ' .
|
echo '<div id="' . $id . '" class="' . $class . '" ' .
|
||||||
'style="z-index: ' .$z_index . ';' .
|
'style="z-index: ' .$z_index . ';' .
|
||||||
'position: absolute; ' .
|
'position: absolute; ' .
|
||||||
@ -1536,7 +1548,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$style .= "border-width: " . $border_width . "px; ";
|
$style .= "border-width: " . $border_width . "px; ";
|
||||||
$style .= "border-color: " . $border_color . "; ";
|
$style .= "border-color: " . $border_color . "; ";
|
||||||
$style .= "background-color: " . $fill_color . "; ";
|
$style .= "background-color: " . $fill_color . "; ";
|
||||||
echo "<div style='" . $style . "'></div>";
|
echo "<div style='z-index:".$show_on_top_index.";" . $style . "'></div>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!empty($proportion)) {
|
if (!empty($proportion)) {
|
||||||
@ -1547,7 +1559,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$style .= "border-width: " . $border_width . "px; ";
|
$style .= "border-width: " . $border_width . "px; ";
|
||||||
$style .= "border-color: " . $border_color . "; ";
|
$style .= "border-color: " . $border_color . "; ";
|
||||||
$style .= "background-color: " . $fill_color . "; ";
|
$style .= "background-color: " . $fill_color . "; ";
|
||||||
echo "<div style='" . $style . "'></div>";
|
echo "<div style='z-index:".$show_on_top_index.";" . $style . "'></div>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$style = "";
|
$style = "";
|
||||||
@ -1557,7 +1569,7 @@ function visual_map_print_item($mode = "read", $layoutData,
|
|||||||
$style .= "border-width: " . $border_width . "px; ";
|
$style .= "border-width: " . $border_width . "px; ";
|
||||||
$style .= "border-color: " . $border_color . "; ";
|
$style .= "border-color: " . $border_color . "; ";
|
||||||
$style .= "background-color: " . $fill_color . "; ";
|
$style .= "background-color: " . $fill_color . "; ";
|
||||||
echo "<div style='" . $style . "'></div>";
|
echo "<div style='z-index:".$show_on_top_index.";" . $style . "'></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -542,7 +542,13 @@ function visual_map_editor_print_item_palette($visualConsole_id, $background) {
|
|||||||
'<td align="left" style="">' . __('Show statistics') . '</td>
|
'<td align="left" style="">' . __('Show statistics') . '</td>
|
||||||
<td align="left" style="">' .
|
<td align="left" style="">' .
|
||||||
html_print_checkbox('show_statistics', 1, '', true) . '</td>';
|
html_print_checkbox('show_statistics', 1, '', true) . '</td>';
|
||||||
|
|
||||||
|
$form_items['show_on_top_row'] = array();
|
||||||
|
$form_items['show_on_top_row']['items'] = array('group_item');
|
||||||
|
$form_items['show_on_top_row']['html'] =
|
||||||
|
'<td align="left" style="">' . __('Always show on top') . '</td>
|
||||||
|
<td align="left" style="">' .
|
||||||
|
html_print_checkbox('show_on_top', 1, '', true) . '</td>';
|
||||||
|
|
||||||
$form_items['module_graph_size_row'] = array();
|
$form_items['module_graph_size_row'] = array();
|
||||||
$form_items['module_graph_size_row']['items'] = array('module_graph', 'datos');
|
$form_items['module_graph_size_row']['items'] = array('module_graph', 'datos');
|
||||||
|
@ -71,7 +71,7 @@
|
|||||||
<div style='height: 10px'>
|
<div style='height: 10px'>
|
||||||
<?php
|
<?php
|
||||||
$version = '7.0NG.715';
|
$version = '7.0NG.715';
|
||||||
$build = '171115';
|
$build = '171116';
|
||||||
$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 7.0NG.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
|
|
||||||
# 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.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
%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
|
||||||
|
@ -1365,6 +1365,7 @@ CREATE TABLE IF NOT EXISTS `tlayout_data` (
|
|||||||
`show_statistics` tinyint(2) NOT NULL default '0',
|
`show_statistics` tinyint(2) NOT NULL default '0',
|
||||||
`id_layout_linked_weight` int(10) NOT NULL default '0',
|
`id_layout_linked_weight` int(10) NOT NULL default '0',
|
||||||
`element_group` int(10) NOT NULL default '0',
|
`element_group` int(10) NOT NULL default '0',
|
||||||
|
`show_on_top` tinyint(1) NOT NULL default '0',
|
||||||
PRIMARY KEY(`id`)
|
PRIMARY KEY(`id`)
|
||||||
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
package: pandorafms-server
|
package: pandorafms-server
|
||||||
Version: 7.0NG.715-171115
|
Version: 7.0NG.715-171116
|
||||||
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.715-171115"
|
pandora_version="7.0NG.715-171116"
|
||||||
|
|
||||||
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 = "7.0NG.715";
|
my $pandora_version = "7.0NG.715";
|
||||||
my $pandora_build = "171115";
|
my $pandora_build = "171116";
|
||||||
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 7.0NG.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
|
|
||||||
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.715
|
%define version 7.0NG.715
|
||||||
%define release 171115
|
%define release 171116
|
||||||
|
|
||||||
Summary: Pandora FMS Server
|
Summary: Pandora FMS Server
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
# **********************************************************************
|
# **********************************************************************
|
||||||
|
|
||||||
PI_VERSION="7.0NG.715"
|
PI_VERSION="7.0NG.715"
|
||||||
PI_BUILD="171115"
|
PI_BUILD="171116"
|
||||||
|
|
||||||
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 = "7.0NG.715 PS171115";
|
my $version = "7.0NG.715 PS171116";
|
||||||
|
|
||||||
# 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.715 PS171115";
|
my $version = "7.0NG.715 PS171116";
|
||||||
|
|
||||||
# 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