From dc714a5b9f9e1a82d9647305c7398fa25bbe3e24 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Mon, 13 Nov 2023 15:27:07 +0100 Subject: [PATCH] #12249 column secmon --- pandora_console/include/functions_ui.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index cbe3314289..05eeeb483d 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -8249,4 +8249,21 @@ function ui_print_status_vulnerability_div(float $score) } return $return; +} + + +function ui_print_status_secmon_div($status) +{ + $class = 'status_rounded_rectangles forced_title'; + if (($status) === 'normal') { + return ui_print_div('group_view_ok '.$class, __('normal')); + } + + if (($status) === 'warning') { + return ui_print_div('group_view_warn '.$class, __('warning')); + } + + if (($status) === 'critical') { + return ui_print_div('group_view_crit '.$class, __('critical')); + } } \ No newline at end of file