2010-03-18 Eric Ross <eric.ross.c@gmail.com>

* operation/agentes/estado_monitores.php: Now the monitors list display the last data
                in a proper way (TRACE, DEBUG, ....)



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2514 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
eric_ross_c 2010-03-18 20:52:56 +00:00
parent 36aef88f68
commit e4b46756f3
2 changed files with 20 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-03-18 Eric Ross <eric.ross.c@gmail.com>
* operation/agentes/estado_monitores.php: Now the monitors list display the last data
in a proper way (TRACE, DEBUG, ....)
2010-03-18 Eric Ross <eric.ross.c@gmail.com>
* godmode/setup/setup.php: Expanded time zone text box to 25 chars

View File

@ -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 = "<span style='$style'>$salida</span>";
} else {
$salida = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(safe_output($module["datos"]),0,12)."</span>";
if (is_numeric($module["datos"])){
$salida = format_numeric($module["datos"]);
} else {
$salida = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(safe_output($module["datos"]),0,12)."</span>";
}
}
$data[5] = $salida;