'.__('Dynamic Threshold Two Tailed: ').'';
+$table_advanced->data[16][3] .= html_print_checkbox('dynamic_two_tailed', 1, $dynamic_two_tailed, true, $disabledBecauseInPolicy);
+
+
+
+// FF stands for Flip-flop.
+$table_advanced->data[17][0] = __('FF threshold').' ';
+
+$table_advanced->data[17][1] .= __('Keep counters');
+$table_advanced->data[17][1] .= html_print_checkbox(
+ 'ff_type',
+ 1,
+ $ff_type,
+ true,
+ $disabledBecauseInPolicy
+).'
';
+
+$table_advanced->data[17][1] .= html_print_radio_button(
+ 'each_ff',
+ 0,
+ '',
+ $each_ff,
+ true,
+ $disabledBecauseInPolicy
+);
+$table_advanced->data[17][1] .= ' '.__('All state changing').' : ';
+$table_advanced->data[17][1] .= html_print_input_text(
+ 'ff_event',
+ $ff_event,
+ '',
+ 5,
+ 15,
+ true,
+ $disabledBecauseInPolicy,
+ false,
+ '',
+ $classdisabledBecauseInPolicy
+).'
';
+$table_advanced->data[17][1] .= html_print_radio_button(
+ 'each_ff',
+ 1,
+ '',
+ $each_ff,
+ true,
+ $disabledBecauseInPolicy
+);
+
+$table_advanced->data[17][1] .= ' '.__('Each state changing').' : ';
+$table_advanced->data[17][1] .= __('To normal');
+$table_advanced->data[17][1] .= html_print_input_text(
+ 'ff_event_normal',
+ $ff_event_normal,
+ '',
+ 5,
+ 15,
+ true,
+ $disabledBecauseInPolicy,
+ false,
+ '',
+ $classdisabledBecauseInPolicy
+).' ';
+
+$table_advanced->data[17][1] .= __('To warning');
+$table_advanced->data[17][1] .= html_print_input_text(
+ 'ff_event_warning',
+ $ff_event_warning,
+ '',
+ 5,
+ 15,
+ true,
+ $disabledBecauseInPolicy,
+ false,
+ '',
+ $classdisabledBecauseInPolicy
+).' ';
+
+$table_advanced->data[17][1] .= __('To critical');
+$table_advanced->data[17][1] .= html_print_input_text(
+ 'ff_event_critical',
+ $ff_event_critical,
+ '',
+ 5,
+ 15,
+ true,
+ $disabledBecauseInPolicy,
+ false,
+ '',
+ $classdisabledBecauseInPolicy
+);
+
+
// Advanced form part
$table_macros = new stdClass();
$table_macros->id = 'module_macros';
diff --git a/pandora_console/include/config_process.php b/pandora_console/include/config_process.php
index 2f3820b77b..6ed6083c46 100644
--- a/pandora_console/include/config_process.php
+++ b/pandora_console/include/config_process.php
@@ -20,7 +20,7 @@
/**
* Pandora build version and version
*/
-$build_version = 'PC200218';
+$build_version = 'PC200219';
$pandora_version = 'v7.0NG.743';
// Do not overwrite default timezone set if defined.
diff --git a/pandora_console/include/javascript/pandora.js b/pandora_console/include/javascript/pandora.js
index 99b98ec957..9a9c8bcba0 100644
--- a/pandora_console/include/javascript/pandora.js
+++ b/pandora_console/include/javascript/pandora.js
@@ -1521,8 +1521,10 @@ function paint_graph_status(
//delete elements
svg.selectAll("g").remove();
- width_x = 101;
- height_x = 50;
+ var width_x = 101;
+ var height_x = 50;
+ var legend_width_x = 135;
+ var legend_height_x = 80;
svg
.append("g")
@@ -1535,8 +1537,8 @@ function paint_graph_status(
.attr("width", 300)
.attr("height", 300)
.append("text")
- .attr("x", width_x)
- .attr("y", height_x - 20)
+ .attr("x", legend_width_x + 15)
+ .attr("y", legend_height_x - 20)
.attr("fill", "black")
.style("font-family", "arial")
.style("font-weight", "bold")
@@ -1551,8 +1553,8 @@ function paint_graph_status(
.append("g")
.append("rect")
.attr("id", "legend_normal")
- .attr("x", width_x + 80)
- .attr("y", height_x - 30)
+ .attr("x", legend_width_x)
+ .attr("y", legend_height_x - 30)
.attr("width", 10)
.attr("height", 10)
.style("fill", "#82B92E");
@@ -1561,8 +1563,8 @@ function paint_graph_status(
svg
.append("g")
.append("text")
- .attr("x", width_x + 100)
- .attr("y", height_x - 20)
+ .attr("x", legend_width_x + 15)
+ .attr("y", legend_height_x + 5)
.attr("fill", "black")
.style("font-family", "arial")
.style("font-weight", "bold")
@@ -1575,8 +1577,8 @@ function paint_graph_status(
.append("g")
.append("rect")
.attr("id", "legend_warning")
- .attr("x", width_x + 185)
- .attr("y", height_x - 30)
+ .attr("x", legend_width_x)
+ .attr("y", legend_height_x - 5)
.attr("width", 10)
.attr("height", 10)
.style("fill", "#ffd731");
@@ -1585,8 +1587,8 @@ function paint_graph_status(
svg
.append("g")
.append("text")
- .attr("x", width_x + 205)
- .attr("y", height_x - 20)
+ .attr("x", legend_width_x + 15)
+ .attr("y", legend_height_x + 30)
.attr("fill", "black")
.style("font-family", "arial")
.style("font-weight", "bold")
@@ -1599,8 +1601,8 @@ function paint_graph_status(
.append("g")
.append("rect")
.attr("id", "legend_critical")
- .attr("x", width_x + 285)
- .attr("y", height_x - 30)
+ .attr("x", legend_width_x)
+ .attr("y", legend_height_x + 20)
.attr("width", 10)
.attr("height", 10)
.style("fill", "#e63c52");
@@ -1624,7 +1626,7 @@ function paint_graph_status(
.attr("id", "status_rect")
.attr("x", width_x)
.attr("y", height_x)
- .attr("width", 300)
+ .attr("width", 20)
.attr("height", 200)
.style("fill", "#82B92E");
@@ -1641,7 +1643,7 @@ function paint_graph_status(
"y",
height_x + (range_max - min_w) * position - (max_w - min_w) * position
)
- .attr("width", 300)
+ .attr("width", 20)
.attr("height", (max_w - min_w) * position)
.style("fill", "#ffd731");
} else {
@@ -1653,7 +1655,7 @@ function paint_graph_status(
.attr("id", "warning_rect")
.attr("x", width_x)
.attr("y", height_x + 200 - (min_w - range_min) * position)
- .attr("width", 300)
+ .attr("width", 20)
.attr("height", (min_w - range_min) * position)
.style("fill", "#ffd731");
@@ -1665,7 +1667,7 @@ function paint_graph_status(
.attr("id", "warning_inverse_rect")
.attr("x", width_x)
.attr("y", height_x)
- .attr("width", 300)
+ .attr("width", 20)
.attr(
"height",
(range_max - min_w) * position - (max_w - min_w) * position
@@ -1685,7 +1687,7 @@ function paint_graph_status(
"y",
height_x + (range_max - min_c) * position - (max_c - min_c) * position
)
- .attr("width", 300)
+ .attr("width", 20)
.attr("height", (max_c - min_c) * position)
.style("fill", "#e63c52");
} else {
@@ -1697,7 +1699,7 @@ function paint_graph_status(
.attr("id", "critical_rect")
.attr("x", width_x)
.attr("y", height_x + 200 - (min_c - range_min) * position)
- .attr("width", 300)
+ .attr("width", 20)
.attr("height", (min_c - range_min) * position)
.style("fill", "#e63c52");
svg
@@ -1708,7 +1710,7 @@ function paint_graph_status(
.attr("id", "critical_inverse_rect")
.attr("x", width_x)
.attr("y", height_x)
- .attr("width", 300)
+ .attr("width", 20)
.attr(
"height",
(range_max - min_c) * position - (max_c - min_c) * position
diff --git a/pandora_console/install.php b/pandora_console/install.php
index e9249528f3..abf77439ff 100644
--- a/pandora_console/install.php
+++ b/pandora_console/install.php
@@ -129,7 +129,7 @@
[ qw() ] );
diff --git a/pandora_server/pandora_server.redhat.spec b/pandora_server/pandora_server.redhat.spec
index 55a7424d2c..7add8a2ed7 100644
--- a/pandora_server/pandora_server.redhat.spec
+++ b/pandora_server/pandora_server.redhat.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 7.0NG.743
-%define release 200218
+%define release 200219
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server.spec b/pandora_server/pandora_server.spec
index e5f4895760..418bbfc0e0 100644
--- a/pandora_server/pandora_server.spec
+++ b/pandora_server/pandora_server.spec
@@ -3,7 +3,7 @@
#
%define name pandorafms_server
%define version 7.0NG.743
-%define release 200218
+%define release 200219
Summary: Pandora FMS Server
Name: %{name}
diff --git a/pandora_server/pandora_server_installer b/pandora_server/pandora_server_installer
index 72d6b998a8..3c3e42ca79 100755
--- a/pandora_server/pandora_server_installer
+++ b/pandora_server/pandora_server_installer
@@ -9,7 +9,7 @@
# **********************************************************************
PI_VERSION="7.0NG.743"
-PI_BUILD="200218"
+PI_BUILD="200219"
MODE=$1
if [ $# -gt 1 ]; then
diff --git a/pandora_server/util/pandora_db.pl b/pandora_server/util/pandora_db.pl
index 279b9f83c4..e4beba8a4b 100644
--- a/pandora_server/util/pandora_db.pl
+++ b/pandora_server/util/pandora_db.pl
@@ -34,7 +34,7 @@ use PandoraFMS::Config;
use PandoraFMS::DB;
# version: define current version
-my $version = "7.0NG.743 PS200218";
+my $version = "7.0NG.743 PS200219";
# Pandora server configuration
my %conf;
diff --git a/pandora_server/util/pandora_manage.pl b/pandora_server/util/pandora_manage.pl
index 90b93fcf83..a1c6513e02 100755
--- a/pandora_server/util/pandora_manage.pl
+++ b/pandora_server/util/pandora_manage.pl
@@ -36,7 +36,7 @@ use Encode::Locale;
Encode::Locale::decode_argv;
# version: define current version
-my $version = "7.0NG.743 PS200218";
+my $version = "7.0NG.743 PS200219";
# save program name for logging
my $progname = basename($0);