Detect if the site has crashed

Asked

Viewed 117 times

0

  • 2

    Dude, I believe that he only makes one ping on the site and see if the same answers, no mystery.

2 answers

4


Basically it is possible to identify if a host or server is available by performing a ping through his hostaname or IP.

An example of ping that worked (i.e., the host/site is standing):

Pinging prd029 [xxx.xx.xx.x] with 32 bytes of data:

Reply from 172.16.5.69: bytes=32 time=21ms TTL=254
Reply from 172.16.5.69: bytes=32 time=21ms TTL=254
Reply from 172.16.5.69: bytes=32 time=20ms TTL=254
Reply from 172.16.5.69: bytes=32 time=22ms TTL=254

Ping statistics for 172.16.5.69:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% los
Approximate round trip times in milli-seconds:
    Minimum = 20ms, Maximum = 22ms, Average = 21ms

An example of ping that failed:

Pinging www.google.com [216.58.222.4] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 216.58.222.4:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

However, it is incorrect to say that a flaw in the ping can characterize a "crash" of the site/system. You may still have routing problems of your IP until what you wish to arrive.

I tested Google, for example, and it didn’t work because the problem was in my network.

3

I think this site should check port 80 of the site you type. If you want something for control use the Nagios, with it is possible to monitor the status of any service, be it database, website, ftp, email, etc.

It does this by monitoring the service door, the cool thing is that you can create alerts to notify you if the service falls.

  • It’s even open-source! :)

  • @Fellipesoares is true!!! It is important to emphasize this too ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.