Re: host availability
- From: Jeff B <jbeardNo-Spam1185@xxxxxxxxxxxx>
- Date: Wed, 11 Jan 2006 09:50:16 -0800
Walter Roberson wrote:
In article <ip-dnZhnhJmPxFnenZ2dnUVZ_tCdnZ2d@xxxxxxxxxxx>, zee <Nospam@xxxxxxxxxx> wrote:
"Walter Roberson" <roberson@xxxxxxxxxxxx> wrote in message news:2cYwf.66317$tl.13822@xxxxxxxxxxx
In article <8eednQAOHqeY3lnenZ2dnUVZ_sednZ2d@xxxxxxxxxxx>, zee <Nospam@xxxxxxxxxx> wrote:
I would like to get a perl, python script that would do the following:
Tell me when a host from a list of hosts went up or down, such as google.com, my default gateway, comcast's mail server etc.
This is the discipline known as Availability Management. It is non-trivial and you're not going to get your answers with scripting only from your system.
Using ping will say, I can't get there from here. The reason can be many, but effectively, it just doesn't matter much. From time to time, however, I've seen 'unable to connect to FOO.COM', or 'page not available' as a direct result of the ISP DNS problems. I typically power of the modem/router and let it find another when it powers up after 30seconds.
You should also be aware, that many ISPs will stealth a ping request to things like the SMTP and HTTP servers. Your ping will always just timeout in such cases, but a TCP connection will still succeed.
Taking the simplistic approach,
running PING FOO.COM and monitoring for REQUEST TIMED OUT in the middle of normal timings will tell you that connectivity has been lost. This may be all you need.
-- --- Jeff B (remove the No-Spam to reply) .
- References:
- Re: host availability
- From: Walter Roberson
- Re: host availability
- From: zee
- Re: host availability
- From: Walter Roberson
- Re: host availability
- Prev by Date: Securtiy of forwarding RDP
- Next by Date: Re: Incoming port accesses from China
- Previous by thread: Re: host availability
- Next by thread: Re: host availability
- Index(es):
Relevant Pages
|