Added cont for module status alert triggered

This commit is contained in:
Luis Calvo 2020-03-04 12:09:54 +01:00
parent b77f6d4453
commit c2e608f120
3 changed files with 3 additions and 0 deletions

View File

@ -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');

View File

@ -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:

View File

@ -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: