From: Guillaume Marcais Date: 2005-06-24T05:09:11+09:00 Subject: Re: Dead gateway detection On Fri, 2005-06-24 at 03:55 +0900, balcersk wrote: > Well what I'am trying to do is to write script witch logs all > "internet holes" their times etc etc. My ISP has an DSL modem > connected to localnetwork (i am on that network too). The second > modem is inside ISP building. Ones for 10 minutes, for few seconds I > have no connection to gateway (I have public addres so my gateway is in > ISP bulding). I KNOW this is problem beetwean dsl modems. I'am trying to > prove that thay cheat me a little:). The best way i think is to sumarise > frequency and length of non working internet times. That's why this idea > has came, to write simple ruby script. So in this particular case ICMP > ping would be enough but I see no way to call it from Ruby. > Not that I am trying to steer you away from Ruby, but have you look at tools like smokeping by Tobias Oetiker: http://people.ee.ethz.ch/~oetiker/webtools/smokeping/ It should do what you want and in the most pretty way. Otherwise, look in RAA for net-ping, icmpmodule or icmpping. I have used icmpmodule with quite some success, on both Linux and Windows. Hope it helps, Guillaume