Fixed colors of states modules or agents in constant and group modules. Tiquet: #2145

This commit is contained in:
m-lopez-f 2015-04-27 10:32:22 +02:00
parent 464d554369
commit ce1fd47c88
2 changed files with 17 additions and 17 deletions

View File

@ -247,23 +247,23 @@ function mainModuleGroups() {
else { else {
if ($fired) { if ($fired) {
$color = '#ffa300'; //Orange when the cell for this model group and agent has at least one alert fired. $color = '#FFA631'; //Orange when the cell for this model group and agent has at least one alert fired.
} }
else if (array_key_exists(1, $states)) { else if (array_key_exists(1, $states)) {
$color = '#cc0000'; //Red when the cell for this model group and agent has at least one module in critical state and the rest in any state. $color = '#FC4444'; //Red when the cell for this model group and agent has at least one module in critical state and the rest in any state.
$font_color = '#ffffff'; $font_color = '#ffffff';
} }
elseif (array_key_exists(2, $states)) { elseif (array_key_exists(2, $states)) {
$color = '#fce94f'; //Yellow when the cell for this model group and agent has at least one in warning state and the rest in green state. $color = '#FAD403'; //Yellow when the cell for this model group and agent has at least one in warning state and the rest in green state.
} }
elseif (array_key_exists(3, $states)) { elseif (array_key_exists(3, $states)) {
$color = '#babdb6'; //Grey when the cell for this model group and agent has at least one module in unknown state and the rest in any state. $color = '#B2B2B2'; //Grey when the cell for this model group and agent has at least one module in unknown state and the rest in any state.
} }
elseif (array_key_exists(0, $states)) { elseif (array_key_exists(0, $states)) {
$color = '#8ae234'; //Green when the cell for this model group and agent has OK state all modules. $color = '#80BA27'; //Green when the cell for this model group and agent has OK state all modules.
} }
elseif (array_key_exists(5, $states)) { elseif (array_key_exists(5, $states)) {
$color = '#729fcf'; // Blue when the cell for this module group and all modules have not init value. $color = '#5BB6E5'; // Blue when the cell for this module group and all modules have not init value.
} }

View File

@ -120,17 +120,17 @@ switch ($config["dbtype"]) {
/* Color constants */ /* Color constants */
define('COL_CRITICAL','#f85858'); define('COL_CRITICAL', '#FC4444');
define('COL_WARNING','#ffea59'); define('COL_WARNING', '#FAD403');
define('COL_WARNING_DARK','#FFB900'); define('COL_WARNING_DARK', '#FFB900');
define('COL_NORMAL','#6EB432'); define('COL_NORMAL', '#80BA27');
define('COL_NOTINIT','#3BA0FF'); define('COL_NOTINIT', '#5BB6E5');
define('COL_UNKNOWN','#AAAAAA'); define('COL_UNKNOWN', '#B2B2B2');
define('COL_ALERTFIRED','#FF8800'); define('COL_ALERTFIRED', '#FFA631');
define('COL_MINOR','#F099A2'); define('COL_MINOR', '#F099A2');
define('COL_MAJOR','#C97A4A'); define('COL_MAJOR', '#C97A4A');
define('COL_INFORMATIONAL','#E4E4E4'); define('COL_INFORMATIONAL', '#E4E4E4');
define('COL_MAINTENANCE','#3BA0FF'); define('COL_MAINTENANCE', '#3BA0FF');
define('COL_GRAPH1', '#C397F2'); define('COL_GRAPH1', '#C397F2');
define('COL_GRAPH2', '#FFE66C'); define('COL_GRAPH2', '#FFE66C');