".$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 "
".$lang_label["task_name"]." | "; echo "".$lang_label['interval']." | "; echo "".$lang_label['network']." | "; echo "".$lang_label['type']." | "; echo "".$lang_label['status']." | "; echo "".$lang_label['network_profile']." | "; echo "".$lang_label['group']." | "; echo "".$lang_label['progress']." | "; echo "".$lang_label['lastupdate']." | "; 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 " | |
---|---|---|---|---|---|---|---|---|---|---|
"; 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)." | "; echo ""; if (give_acl($id_user, 0, "PM")==1){ echo ""; echo ""; } } echo " |