I`m new in OpenSource world, and I`m engaged in a project for network monitoring using nagios. I installed NagiosQL, everything`s working fine and I developed a Nmap frontend to make searches and find all available hosts, adding them automatically to Nagios. The problem occurs when I try to run this search over apache. The network is huge, but when I start a NMap scan in command line, it takes like 30secs to finish with timing 5, but if I start the scan over my application, it takes like 30min to complete, and sometimes it enters in a loop and nothing happens... I checked php and apache timeouts, and its enough for the application to run...I have no idea how to proceed... explaining what my application does: -it collects IP, ports and scan type data, creating a nmap command line with the variables from user, and executing it through PHP -converts the XML archive to a cfg file, so Nagios can read it -sets permissions and owner settings to the cfg archive -copies it to a nagios folder and changes some stuff into the archive with sed()... tried inserting some alerts between each command line, and the generated nmap command line is right, and it is executed. if I try searching a small IP range or a single host, everything works, but when I try a complete IP range like 10.110.9.0/24, it crashes and nothing works...the strange is that it works if I start a complete search on same IP range the server I work is located, but it doesnt work in all other ranges and vlans... anyone could say me where to start, because I`ve reached the limit of my knowledge about apache, php and stuff, considering I`m new on this... thanks