From c2e608f1207550c67f7cc78459e27c807da6005d Mon Sep 17 00:00:00 2001 From: Luis Calvo Date: Wed, 4 Mar 2020 12:09:54 +0100 Subject: [PATCH] Added cont for module status alert triggered --- pandora_console/include/constants.php | 1 + pandora_console/include/functions_modules.php | 1 + pandora_console/include/functions_ui.php | 1 + 3 files changed, 3 insertions(+) diff --git a/pandora_console/include/constants.php b/pandora_console/include/constants.php index 1f0764bfaf..742fe1940d 100644 --- a/pandora_console/include/constants.php +++ b/pandora_console/include/constants.php @@ -280,6 +280,7 @@ define('STATUS_MODULE_CRITICAL', 'module_critical.png'); define('STATUS_MODULE_WARNING', 'module_warning.png'); define('STATUS_MODULE_NO_DATA', 'module_no_data.png'); define('STATUS_MODULE_UNKNOWN', 'module_unknown.png'); +define('STATUS_MODULE_ALERT_TRIGGERED', 'module_alertsfired.png'); // For agents. define('STATUS_AGENT_CRITICAL', 'agent_critical.png'); define('STATUS_AGENT_WARNING', 'agent_warning.png'); diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php index be8532d070..668250b86c 100755 --- a/pandora_console/include/functions_modules.php +++ b/pandora_console/include/functions_modules.php @@ -2381,6 +2381,7 @@ function modules_get_color_status($status) case AGENT_STATUS_ALERT_FIRED: case STATUS_ALERT_FIRED: case STATUS_ALERT_FIRED_BALL: + case STATUS_MODULE_ALERT_TRIGGERED: return COL_ALERTFIRED; case AGENT_MODULE_STATUS_UNKNOWN: diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index ebc2573952..b503abca63 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -2716,6 +2716,7 @@ function get_shape_status_set($type) case STATUS_MODULE_NO_DATA: case STATUS_AGENT_NO_DATA: case STATUS_MODULE_CRITICAL: + case STATUS_MODULE_ALERT_TRIGGERED: case STATUS_AGENT_CRITICAL: case STATUS_MODULE_WARNING: case STATUS_AGENT_WARNING: