Handle to show instructions on unknown

This commit is contained in:
Félix Suárez 2024-04-03 09:38:04 -06:00
parent 4345253689
commit e157d5f202
2 changed files with 6 additions and 2 deletions

View File

@ -2713,6 +2713,7 @@ function events_print_type_img(
$icon = 'images/module_warning.png';
break;
case 'unknown':
case 'going_unknown':
$icon = 'images/module_unknown.png';
break;
@ -2741,7 +2742,6 @@ function events_print_type_img(
$icon = 'images/configuration@svg.svg';
break;
case 'unknown':
default:
$style .= ' invert_filter';
$icon = 'images/event.svg';
@ -2993,6 +2993,9 @@ function events_print_type_description($type, $return=false)
break;
case 'unknown':
$output .= __('Unknown');
break;
default:
$output .= __('Unknown type:').': '.$type;
break;
@ -5861,6 +5864,7 @@ function events_get_instructions($event, $max_text_length=300)
}
switch ($event['event_type']) {
case 'unknown':
case 'going_unknown':
if ($event['unknown_instructions'] != '') {
$value = str_replace(

View File

@ -7914,7 +7914,7 @@ sub pandora_manage_main ($$$) {
'values' => [
'unknown','alert_fired','alert_recovered','alert_ceased',
'alert_manual_validation','recon_host_detected','system',
'error','new_agent','going_up_warning','going_up_critical','going_down_warning',
'error','new_agent','going_up_warning','going_up_critical','going_down_warning','going_unknown',
'going_down_normal','going_down_critical','going_up_normal','configuration_change'
]
},