Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Aug 2008 15:59:13 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Redd Vinylene <reddvinylene@gmail.com>
Cc:        questions@freebsd.org, Moises Castellanos <m2o7i1@gmail.com>
Subject:   Re: How to test the uptime of a webserver?
Message-ID:  <48BAB1C1.8020802@infracaninophile.co.uk>
In-Reply-To: <f1019d520808310724q4ed30e35xd2c1b5ab1be4d14e@mail.gmail.com>
References:  <f1019d520808301635q7a3407fcpe0c6f3115a70d02a@mail.gmail.com>	<2620c3260808301722s673f70dkab7590f1ed9e48a4@mail.gmail.com> <f1019d520808310724q4ed30e35xd2c1b5ab1be4d14e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigB0BE261E4735CEB8961CF2AF
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable

Redd Vinylene wrote:
> On Sun, Aug 31, 2008 at 2:22 AM, Moises Castellanos <m2o7i1@gmail.com> =
wrote:
>>
>> On Sun, Aug 31, 2008 at 7:05 PM, Redd Vinylene <reddvinylene@gmail.com=
>
>> wrote:

>>> I got this dedicated server which is exposed to DDoS attacks quite
>>> frequently. Say I need to host a website on it, is there any way of
>>> telling how often it is actually online (to the rest of the world)?
>>>
>>> Maybe make some sort of ping script from a remote server?

>>     You can install nagios and monitor the web server. It will send yo=
u an
>> email when
>> the server is down and when is up again. With this information you can=
 know
>> the uptime
>> of the web server.

> I'd have to install Nagios on a different server then, right? I doubt
> the actual server knows when its ISP's link drops (or just slows down)
> due to an attack.

Not necessarily.  You can install nagios on your web server and use it
to monitor a server at the other end of your wan link -- usually a
machine in your ISPs infrastructure[*] -- on the basis that if you can ge=
t=20
packets out, then other people can get packets in.  The trick is to monit=
or=20
something that isn't too far away, or you'll end up monitoring the=20
availability of other people's networks, rather than your own.

There's a lot more can be done than just monitoring connectivity by
sending ICMP ping packets every so often.  There are any number of
ways a web server can go wrong -- processes can crash, critical disk part=
itions can fill up, load spikes can overwhelm the machine's capacity.
You can develop a range of different nagios tests that should tell you
pretty much at a glance just what has gone wrong.  Takes all the fun out
of diagnosing the problems perhaps, but it does mean you'll be back to
bed sooner when the pager goes off in the small hours.

	Cheers,

	Matthew

[*] Some ISPs provide machines specifically for this purpose.

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW


--------------enigB0BE261E4735CEB8961CF2AF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREIAAYFAki6sckACgkQ8Mjk52CukIzeugCfYF2RFcOmDWza0pVOrPRpTF0h
jSUAnRVWRhx+VTovrjRdG1nC9kfvVnMx
=GhiD
-----END PGP SIGNATURE-----

--------------enigB0BE261E4735CEB8961CF2AF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BAB1C1.8020802>