";
// Render network exec module button, only when
// Agent Write for this module and group, is given
// Is a network module
// Has flag = 0
if ($write && $module["id_modulo"] > 1 && $module["id_tipo_modulo"] < 100) {
if ($module["flag"] == 0) {
echo "";
} else {
echo "";
}
}
echo " | ";
$nombre_grupomodulo = get_modulegroup_name ($module["id_module_group"]);
if ($nombre_grupomodulo != ""){
if (($label_group == 0) || ($last_label != $nombre_grupomodulo)){ // Show label module group
$label_group = -1;
$last_label = $nombre_grupomodulo;
$texto = $texto. "
".$nombre_grupomodulo." | ";
}
}
$nombre_tipo_modulo = get_moduletype_name ($module["id_tipo_modulo"]);
echo "";
print_string_substr ($module["nombre"]);
echo " | ";
print_moduletype_icon ($module["id_tipo_modulo"]);
echo " | ";
if ($module["module_interval"] != 0){
echo $module["module_interval"];
$real_interval = $module["module_interval"];
} else {
echo $intervalo_agente;
$real_interval = $intervalo_agente;
}
if (($module["id_tipo_modulo"] != 3)
AND ($module["id_tipo_modulo"] != 10)
AND ($module["id_tipo_modulo"] != 17)
AND ($module["id_tipo_modulo"] != 23)){
echo " | ";
echo safe_output(substr($module["descripcion"],0,32));
if (strlen($module["descripcion"]) > 32){
echo "...";
}
echo " | ";
}
if ($module["id_tipo_modulo"] == 30112) {
echo " | ";
echo " x | ";
} else if (($module["id_tipo_modulo"] == 100) OR ($module['history_data'] == 0)) {
echo "";
echo substr(safe_output($module["datos"]),0,12);
} else {
$graph_type = return_graphtype ($module["id_tipo_modulo"]);
if ($module["id_tipo_modulo"] == 30) { // log4x
switch($module["datos"]){
case 10: echo " | TRACE | "; break;
case 20: echo "DEBUG | "; break;
case 30: echo "INFO | "; break;
case 40: echo "WARN | "; break;
case 50: echo "ERROR | "; break;
case 60: echo "FATAL | "; break;
}
} else {
if (is_numeric($module["datos"])){
echo "";
echo format_for_graph($module["datos"] );
}
else {
if (strlen($module["datos"]) > 0 ) $colspan = 2;
else $colspan= 1;
echo " | ";
echo substr(safe_output($module["datos"]),0,42);
}
}
$handle = "stat".$nombre_tipo_modulo."_".$module["id_agente_modulo"];
$url = 'include/procesos.php?agente='.$module["id_agente_modulo"];
$win_handle=dechex(crc32($module["id_agente_modulo"].$module["nombre"]));
echo " | ";
$graph_label = output_clean_strict ($module["nombre"]);
echo " ";
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=604800&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=6000','week_".$win_handle."')";
echo ' ';
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=86400&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=600','day_".$win_handle."')";
echo ' ';
$link ="winopeng('operation/agentes/stat_win.php?type=$graph_type&period=3600&id=".$module["id_agente_modulo"]."&label=".$graph_label."&refresh=60','hour_".$win_handle."')";
echo '';
}
if ($module['history_data'] == 1){
// RAW Table data
echo " | ";
echo " ";
echo " ";
echo "";
} else {
echo " | | ";
}
echo "";
if ($module["utimestamp"] == 0){
echo __('Never');
} else {
$seconds = get_system_time () - $module["utimestamp"];
if ($module['id_tipo_modulo'] < 21 && $module["module_interval"] > 0 && $module["utimestamp"] > 0 && $seconds >= ($module["module_interval"] * 2)) {
echo '';
} else {
echo '';
}
}
print_timestamp ($module["utimestamp"], false);
echo '';
echo " |
";
}
echo '