diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index efaafba190..3fd60f203f 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-03-18 Eric Ross + + * operation/agentes/estado_monitores.php: Now the monitors list display the last data + in a proper way (TRACE, DEBUG, ....) + 2010-03-18 Eric Ross * godmode/setup/setup.php: Expanded time zone text box to 25 chars diff --git a/pandora_console/operation/agentes/estado_monitores.php b/pandora_console/operation/agentes/estado_monitores.php index e903cef5a3..7fdebea458 100644 --- a/pandora_console/operation/agentes/estado_monitores.php +++ b/pandora_console/operation/agentes/estado_monitores.php @@ -119,10 +119,22 @@ foreach ($modules as $module) { $data[4] = print_status_image($status, $title, true); - if (is_numeric($module["datos"])){ - $salida = format_numeric($module["datos"]); + if ($module["id_tipo_modulo"] == 30) { // log4x + switch($module["datos"]) { + case 10: $salida = "TRACE"; $style="font-weight:bold; color:darkgreen;"; break; + case 20: $salida = "DEBUG"; $style="font-weight:bold; color:darkgreen;"; break; + case 30: $salida = "INFO"; $style="font-weight:bold; color:darkgreen;"; break; + case 40: $salida = "WARN"; $style="font-weight:bold; color:darkorange;"; break; + case 50: $salida = "ERROR"; $style="font-weight:bold; color:red;"; break; + case 60: $salida = "FATAL"; $style="font-weight:bold; color:red;"; break; + } + $salida = "$salida"; } else { - $salida = "".substr(safe_output($module["datos"]),0,12).""; + if (is_numeric($module["datos"])){ + $salida = format_numeric($module["datos"]); + } else { + $salida = "".substr(safe_output($module["datos"]),0,12).""; + } } $data[5] = $salida;