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:
parent
36aef88f68
commit
e4b46756f3
|
@ -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>
|
2010-03-18 Eric Ross <eric.ross.c@gmail.com>
|
||||||
|
|
||||||
* godmode/setup/setup.php: Expanded time zone text box to 25 chars
|
* godmode/setup/setup.php: Expanded time zone text box to 25 chars
|
||||||
|
|
|
@ -119,11 +119,23 @@ foreach ($modules as $module) {
|
||||||
|
|
||||||
$data[4] = print_status_image($status, $title, true);
|
$data[4] = print_status_image($status, $title, true);
|
||||||
|
|
||||||
|
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 {
|
||||||
if (is_numeric($module["datos"])){
|
if (is_numeric($module["datos"])){
|
||||||
$salida = format_numeric($module["datos"]);
|
$salida = format_numeric($module["datos"]);
|
||||||
} else {
|
} else {
|
||||||
$salida = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(safe_output($module["datos"]),0,12)."</span>";
|
$salida = "<span title='".$module['datos']."' style='white-space: nowrap;'>".substr(safe_output($module["datos"]),0,12)."</span>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$data[5] = $salida;
|
$data[5] = $salida;
|
||||||
$graph_type = return_graphtype ($module["id_tipo_modulo"]);
|
$graph_type = return_graphtype ($module["id_tipo_modulo"]);
|
||||||
|
|
Loading…
Reference in New Issue