Merge branch 'ent-5420-bug-agent-modules-view' into 'develop'

Added cont for module status alert triggered

See merge request artica/pandorafms!3092
This commit is contained in:
Daniel Rodriguez 2020-03-11 11:17:06 +01:00
commit 9aea31f5c4
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: