mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 00:04:37 +02:00
Handle to show instructions on unknown
This commit is contained in:
parent
4345253689
commit
e157d5f202
@ -2713,6 +2713,7 @@ function events_print_type_img(
|
|||||||
$icon = 'images/module_warning.png';
|
$icon = 'images/module_warning.png';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'unknown':
|
||||||
case 'going_unknown':
|
case 'going_unknown':
|
||||||
$icon = 'images/module_unknown.png';
|
$icon = 'images/module_unknown.png';
|
||||||
break;
|
break;
|
||||||
@ -2741,7 +2742,6 @@ function events_print_type_img(
|
|||||||
$icon = 'images/configuration@svg.svg';
|
$icon = 'images/configuration@svg.svg';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'unknown':
|
|
||||||
default:
|
default:
|
||||||
$style .= ' invert_filter';
|
$style .= ' invert_filter';
|
||||||
$icon = 'images/event.svg';
|
$icon = 'images/event.svg';
|
||||||
@ -2993,6 +2993,9 @@ function events_print_type_description($type, $return=false)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'unknown':
|
case 'unknown':
|
||||||
|
$output .= __('Unknown');
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
$output .= __('Unknown type:').': '.$type;
|
$output .= __('Unknown type:').': '.$type;
|
||||||
break;
|
break;
|
||||||
@ -5861,6 +5864,7 @@ function events_get_instructions($event, $max_text_length=300)
|
|||||||
}
|
}
|
||||||
|
|
||||||
switch ($event['event_type']) {
|
switch ($event['event_type']) {
|
||||||
|
case 'unknown':
|
||||||
case 'going_unknown':
|
case 'going_unknown':
|
||||||
if ($event['unknown_instructions'] != '') {
|
if ($event['unknown_instructions'] != '') {
|
||||||
$value = str_replace(
|
$value = str_replace(
|
||||||
|
@ -7914,7 +7914,7 @@ sub pandora_manage_main ($$$) {
|
|||||||
'values' => [
|
'values' => [
|
||||||
'unknown','alert_fired','alert_recovered','alert_ceased',
|
'unknown','alert_fired','alert_recovered','alert_ceased',
|
||||||
'alert_manual_validation','recon_host_detected','system',
|
'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'
|
'going_down_normal','going_down_critical','going_up_normal','configuration_change'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user