';
- // $out .='
'.$total_count.$separator.'';
- if (isset($fired_count) && $fired_count > 0) {
- $out .= '
';
- $out .= '
'.$fired_count.'';
- }
+ if ($modern === true) {
+ $out .= '
';
+ // $out .='
'.$total_count.$separator.'';
+ if (isset($fired_count) && $fired_count > 0) {
+ $out .= '
';
+ $out .= '
'.$fired_count.'';
+ }
- if (isset($critical_count) && $critical_count > 0) {
- $out .= '
';
- $out .= '
'.$critical_count.'';
- }
+ if (isset($critical_count) && $critical_count > 0) {
+ $out .= '
';
+ $out .= '
'.$critical_count.'';
+ }
- if (isset($warning_count) && $warning_count > 0) {
- $out .= '
';
- $out .= '
'.$warning_count.'';
- }
+ if (isset($warning_count) && $warning_count > 0) {
+ $out .= '
';
+ $out .= '
'.$warning_count.'';
+ }
- if (isset($unknown_count) && $unknown_count > 0) {
- $out .= '
';
- $out .= '
'.$unknown_count.'';
- }
+ if (isset($unknown_count) && $unknown_count > 0) {
+ $out .= '
';
+ $out .= '
'.$unknown_count.'';
+ }
- if (isset($not_init_count) && $not_init_count > 0) {
- $out .= '
';
- $out .= '
'.$not_init_count.'';
- }
+ if (isset($not_init_count) && $not_init_count > 0) {
+ $out .= '
';
+ $out .= '
'.$not_init_count.'';
+ }
- if (isset($normal_count) && $normal_count > 0) {
- $out .= '
';
- $out .= '
'.$normal_count.'';
- }
+ if (isset($normal_count) && $normal_count > 0) {
+ $out .= '
';
+ $out .= '
'.$normal_count.'';
+ }
- $out .= '
';
+ $out .= '
';
+ } else {
+ // Classic ones.
+ $out .= '';
+ $output .= '
';
$output .= '
'.$progress.'%';
$output .= '
';
$output .= '
';
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index f132c0db94..4a6bd33de0 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -6001,6 +6001,10 @@ div#bullets_modules div {
min-width: 500px;
}
+.agent_details_col.agent_details_col_left {
+ width: 50%;
+}
+
.agent_details_content .agent_details_bullets {
position: relative;
left: -20%;
@@ -6012,6 +6016,10 @@ div#bullets_modules div {
min-width: 670px;
}
+.agent_details_col.agent_details_col_right {
+ width: 50%;
+}
+
.buttons_agent_view {
display: flex;
justify-content: flex-end;
diff --git a/pandora_console/include/styles/progress.css b/pandora_console/include/styles/progress.css
index 0919269d37..14cf494e85 100644
--- a/pandora_console/include/styles/progress.css
+++ b/pandora_console/include/styles/progress.css
@@ -2,6 +2,7 @@ span.progress_text {
position: absolute;
font-family: "lato-bolder", "Open Sans", sans-serif;
font-size: 2em;
+ margin-left: -0.5em;
}
div.progress_main {
diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php
index c578259e60..fabd3898a9 100755
--- a/pandora_console/operation/agentes/estado_generalagente.php
+++ b/pandora_console/operation/agentes/estado_generalagente.php
@@ -213,7 +213,15 @@ $table_agent_description .= '
'.$table_agent_header.'
@@ -280,7 +288,7 @@ $table_contact->data[] = $data;
$data = [];
$table_contact->colspan[3][0] = 2;
-$data[0] = ui_progress($progress);
+$data[0] = ui_progress($progress, '80%');
if ($progress > 100) {
$data[0] .= clippy_context_help('agent_out_of_limits');
diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php
index c387a437d7..80e3b33da6 100755
--- a/pandora_console/operation/agentes/estado_monitores.php
+++ b/pandora_console/operation/agentes/estado_monitores.php
@@ -139,7 +139,13 @@ echo ui_print_help_tip(
true
);
echo '
'.__('Full list of monitors').'';
-echo reporting_tiny_stats($agent, true, 'modules');
+echo reporting_tiny_stats(
+ $agent,
+ true,
+ 'modules',
+ ':',
+ true
+);
$modules_not_init = agents_monitor_notinit($id_agente);
if (!empty($modules_not_init)) {
@@ -207,6 +213,7 @@ ui_toggle(
$("#status_module_group").enable();
$("#status_filter_monitor").enable();
}
+ filter_modules();
}
function order_module_list(sort_field_param, sort_rows_param) {
@@ -495,7 +502,17 @@ function print_form_filter_monitors(
$table->data[0][3] = html_print_input_text('status_text_monitor', $status_text_monitor, '', 30, 100, true);
$table->data[0][4] = __('Module group');
- $rows = db_get_all_rows_sql("SELECT * FROM tmodule_group where id_mg in (SELECT id_module_group from tagente_modulo where id_agente = $id_agent ) ORDER BY name");
+ $rows = db_get_all_rows_sql(
+ sprintf(
+ 'SELECT *
+ FROM tmodule_group
+ WHERE id_mg IN (SELECT id_module_group
+ FROM tagente_modulo
+ WHERE id_agente = %d )
+ ORDER BY name',
+ $id_agent
+ )
+ );
$rows_select[-1] = __('All');
if (!empty($rows)) {
@@ -504,11 +521,43 @@ function print_form_filter_monitors(
}
}
- $table->data[0][5] = html_print_select($rows_select, 'status_module_group', $status_module_group, '', '', 0, true);
- $table->data[0][6] = __('Show in hierachy mode');
- $table->data[0][6] .= html_print_checkbox('status_hierachy_mode', '', false, true, false, 'onChange=change_module_filter();');
- $table->data[0][7] = html_print_button(__('Filter'), 'filter', false, 'filter_modules();', 'class="sub search"', true);
- $table->data[0][8] = ' '.html_print_button(__('Reset'), 'filter', false, 'reset_filter_modules();', 'class="sub upd" style="margin-top:0px;"', true);
+ $table->data[0][5] = html_print_select(
+ $rows_select,
+ 'status_module_group',
+ $status_module_group,
+ '',
+ '',
+ 0,
+ true
+ );
+ $table->data[0][6] = '
';
+ $table->data[0][6] .= __('Show in hierachy mode');
+ $table->data[0][6] .= html_print_switch(
+ [
+ 'name' => 'status_hierachy_mode',
+ 'value' => $all_events_24h,
+ 'onchange' => 'change_module_filter()',
+ 'id' => 'checkbox-status_hierachy_mode',
+ 'style' => 'margin-left: 1em;',
+ ]
+ );
+ $table->data[0][6] .= '
';
+ $table->data[0][7] = html_print_button(
+ __('Filter'),
+ 'filter',
+ false,
+ 'filter_modules();',
+ 'class="sub search"',
+ true
+ );
+ $table->data[0][8] = ' '.html_print_button(
+ __('Reset'),
+ 'filter',
+ false,
+ 'reset_filter_modules();',
+ 'class="sub upd" style="margin-top:0px;"',
+ true
+ );
$form_text .= html_print_table($table, true);
$filter_hidden = false;