diff --git a/pandora_console/godmode/alerts/alert_list.builder.php b/pandora_console/godmode/alerts/alert_list.builder.php index af380c396c..ec0bfb3807 100644 --- a/pandora_console/godmode/alerts/alert_list.builder.php +++ b/pandora_console/godmode/alerts/alert_list.builder.php @@ -166,10 +166,10 @@ $table->data[1][1] = html_print_label_input_block( ); $table->data[2][0] = html_print_label_input_block( - __('Threshold'), + __('Threshold').ui_print_help_tip(__('It takes precedence over the action\'s threshold configuration.'), true), html_print_extended_select_for_time( 'module_action_threshold', - 0, + '0', '', '', '', diff --git a/pandora_console/godmode/alerts/configure_alert_action.php b/pandora_console/godmode/alerts/configure_alert_action.php index 7906cd9dde..fb654828fe 100644 --- a/pandora_console/godmode/alerts/configure_alert_action.php +++ b/pandora_console/godmode/alerts/configure_alert_action.php @@ -144,7 +144,7 @@ if ($disabled) { $name = ''; $id_command = ''; $group = 0; -$action_threshold = 0; +$action_threshold = '0'; // All group is 0. if ($id) { $action = alerts_get_alert_action($id); @@ -284,7 +284,7 @@ $table->data[1][0] = html_print_label_input_block( ); $table->data[1][1] = html_print_label_input_block( - __('Threshold'), + __('Threshold').ui_print_help_tip(__('An alert action is executed only once within this time interval, regardless of how many times the alert is triggered.'), true), html_print_extended_select_for_time( 'action_threshold', $action_threshold, diff --git a/pandora_console/godmode/alerts/configure_alert_template.php b/pandora_console/godmode/alerts/configure_alert_template.php index cad5896fa2..a1abf2a218 100644 --- a/pandora_console/godmode/alerts/configure_alert_template.php +++ b/pandora_console/godmode/alerts/configure_alert_template.php @@ -688,7 +688,7 @@ if ($step == 2) { ); $table->data[2][0] = html_print_label_input_block( - __('Time threshold'), + __('Time threshold').ui_print_help_tip(__('Reset the alert counter within the configured period if there is no manual recovery or validation of the alert.'), true), html_print_extended_select_for_time( 'threshold', $threshold, diff --git a/pandora_console/include/ajax/alert_list.ajax.php b/pandora_console/include/ajax/alert_list.ajax.php index 7d9e372d7e..4f5b120a6d 100644 --- a/pandora_console/include/ajax/alert_list.ajax.php +++ b/pandora_console/include/ajax/alert_list.ajax.php @@ -537,7 +537,7 @@ if ($show_update_action_menu) { $data .= ''; $data .= ''; $data .= ''; - $data .= __('Threshold'); + $data .= __('Threshold').ui_print_help_tip(__('If a value of 0 is assigned, the Threshold of the action will be used.'), true); $data .= ''; $data .= ''; $data .= html_print_extended_select_for_time(