title: how to icmp ping thousands of IP addresses simultaneously every second?
body: <p>I'm looking for solution, how to be able to ping some 5000 (up to 10000) IP addresses on a local network each 1 second and immediatelly, when any icmp packet timeouts, it will write output to a file with the unix epoch time of the lost packet and IP address. So I'll be able to measure the length of the network outages in seconds to every IP address.</p>
  
  <p>I'm trying to run that much ping commands in a infinite cycle for each IP address now (so I have a lot of running processes - for all IP addresses I'm sending just one packet. Than ping command finishes itself, I manage its output and run ping command again and so on). But I somehow feel this is not the best way how to do this :|</p>
  
  <p>I can write scripts just in bash and PHP but not in C++, ... So I prefer if you have a solution for my skills :)</p>
  
  <p>Thank you in advance.
  Pep.</p>
  
  <p>PS: I guess I know how fping works, and I think it is too much slow. It can not ping 5000 IP addresses every second am I right?</p>