#12027 tree view quiet mode
This commit is contained in:
parent
ff2cc62c4f
commit
dc9b47a904
|
@ -960,11 +960,6 @@ class Tree
|
||||||
$agent['counters']['not_init'] = 0;
|
$agent['counters']['not_init'] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Quiet image
|
|
||||||
if (isset($agent['quiet']) && $agent['quiet']) {
|
|
||||||
$agent['statusImageHTML'] = ui_print_status_sets('agent_no_monitors_ball.png', __('Quiet'), 1, ['is_tree_view' => 'yes', 'class' => 'status_balls', 'style' => 'background: '.COL_QUIET.';'], '', false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Children
|
// Children
|
||||||
if (empty($agent['children'])) {
|
if (empty($agent['children'])) {
|
||||||
$agent['children'] = [];
|
$agent['children'] = [];
|
||||||
|
|
|
@ -708,6 +708,13 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false)
|
||||||
$row['data'] = human_time_description_raw($agent['intervalo']);
|
$row['data'] = human_time_description_raw($agent['intervalo']);
|
||||||
$table->data['interval'] = $row;
|
$table->data['interval'] = $row;
|
||||||
|
|
||||||
|
if (isset($agent['quiet']) && $agent['quiet']) {
|
||||||
|
$row = [];
|
||||||
|
$row['title'] = __('Quiet mode enabled');
|
||||||
|
$row['data'] = ui_print_help_tip(__('This agent would not raise events or alerts'), true);
|
||||||
|
$table->data['quiet'] = $row;
|
||||||
|
}
|
||||||
|
|
||||||
// Comments.
|
// Comments.
|
||||||
$row = [];
|
$row = [];
|
||||||
$row['title'] = __('Description');
|
$row['title'] = __('Description');
|
||||||
|
|
Loading…
Reference in New Issue