".$lang_label["server_detail"]." - $server_name "; // Show network tasks for Recon Server if ($row["recon_server"]){ $sql = "SELECT * FROM trecon_task where id_network_server = $id_server"; // Connect DataBase $result=mysql_query($sql); if (mysql_num_rows($result)){ echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; $color=1; while ($row=mysql_fetch_array($result)){ if ($color == 1){ $tdcolor = "datos"; $color = 0; } else { $tdcolor = "datos2"; $color = 1; } $id_rt = $row["id_rt"]; $name = $row["name"]; $status = $row["status"]; $utimestamp = $row["utimestamp"]; $interval = $row["interval_sweep"]; $create_incident = $row["create_incident"]; $id_network_server_assigned = $row["id_network_server_assigned"]; $subnet = $row["subnet"]; $id_group = $row["id_group"]; $id_network_profile = $row["id_network_profile"]; $type = $row["type"]; echo ""; // Name echo ""; echo "
".$lang_label["task_name"]."".$lang_label['interval']."".$lang_label['network']."".$lang_label['type']."".$lang_label['status']."".$lang_label['network_profile']."".$lang_label['group']."".$lang_label['progress']."".$lang_label['lastupdate']."
"; echo ""; echo ""; echo "$name"; // Interval echo ""; if ($interval != 0){ if ($interval < 43200) echo "~ ".floor ($interval / 3600)." ".$lang_label["hours"]; else echo "~ ".floor ($interval / 86400)." ".$lang_label["days"]; } else echo $interval; // Subnet echo ""; echo $subnet; // Type echo ""; if ($type == 1){ echo "ICMP"; } elseif ($type == 2){ echo "SNMP"; } // status echo ""; if ($status == -1) echo $lang_label["done"]; else echo $lang_label["pending"]; // Network profile echo ""; echo give_network_profile_name($id_network_profile); // Group echo ""; echo ""; // Progress echo ""; if ($status < 0) echo "-"; else echo ''; // Last execution echo ""; $keepalive = strftime ( "%m/%d/%y %H:%M:%S" , $utimestamp ); echo substr($keepalive,0,25).""; if (give_acl($id_user, 0, "PM")==1){ echo ""; echo ""; } } echo "
"; } else { echo "This server has no recon tasks assigned"; } } } ?>