Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Oct 2006 10:14:32 +1000
From:      "Murray Taylor" <MTaylor@bytecraft.com.au>
To:        "Ivailo Tanusheff" <i.tanusheff@procreditbank.bg>, "Martin Schweizer" <info@pc-service.ch>
Cc:        freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org
Subject:   RE: tool for checking website
Message-ID:  <04E232FDCD9FBE43857F7066CAD3C0F11EF89B@svmailmel.bytecraft.internal>

Next in thread | Raw E-Mail | Index | Archive | Help
This is a multi-part message in MIME format.

------_=_NextPart_001_01C6E8DC.66925785
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

> -----Original Message-----
> From: owner-freebsd-questions@freebsd.org=20
> [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of=20
> Ivailo Tanusheff
> Sent: Thursday, 5 October 2006 11:26 PM
> To: Martin Schweizer
> Cc: freebsd-questions@freebsd.org; owner-freebsd-questions@freebsd.org
> Subject: Re: tool for checking website
>=20
> You may use nagios port :)
> It also has web interface.
>=20
> Ivailo Tanusheff
> Deputy Head of IT Department
> ProCredit Bank (Bulgaria) AD
>=20
> Subject
> tool for checking website
>=20
>
> Hello=20
>=20
> I'm looking for port which checks if a website is online or=20
> not. My goal=20
> is=20
> regulary starts a script which do this for me. Any ideas?
>=20
> --=20
>=20
> Regards
>=20
> Martin=20
> <info@pc-service.ch>
>

Hi Martin,

I use the attached ruby script ( based on one i googled, and probably
not the best ruby
as it was my intro to the language...)
and a crontab line like this

0 */3 * * * $HOME/bin/webcheck.rb -v -m webmaster@example.com
http://www.example.com

command line is

-v			send emails for an OK test also, otherwise only
send on website failure
-m email_addr	who to send the notification email to (has a default in
the code, typ used for testing)
URL			the URL of the site / page being tested.

This was written to monitor a friends business page when he was having
'issues'=20
with the windows noddies who bought the isp... they deleted the DNS
configs in the first week
and sites 'just vanished' as the caches dried up .... and in the second
week=20
'Whats a shell server' and it shutdown .... (the saga continued)=20

Murray Taylor

Special Projects Engineer
Bytecraft Systems

--

"Any intelligent fool can make things bigger and more complex... It
takes a
touch of genius - and a lot of courage to move in the opposite
direction."
--Albert Einstein=20

=20

---------------------------------------------------------------
The information transmitted in this e-mail is for the exclusive
use of the intended addressee and may contain confidential
and/or privileged material. Any review, re-transmission,
dissemination or other use of it, or the taking of any action
in reliance upon this information by persons and/or entities
other than the intended recipient is prohibited. If you
received this in error, please inform the sender and/or
addressee immediately and delete the material.=20

E-mails may not be secure, may contain computer viruses and
may be corrupted in transmission. Please carefully check this
e-mail (and any attachment) accordingly. No warranties are
given and no liability is accepted for any loss or damage
caused by such matters.
---------------------------------------------------------------

### This e-mail message has been scanned for Viruses by Bytecraft ###

------_=_NextPart_001_01C6E8DC.66925785
Content-Type: application/octet-stream;
	name="webcheck.rb"
Content-Transfer-Encoding: base64
Content-Description: webcheck.rb
Content-Disposition: attachment;
	filename="webcheck.rb"

IyEvdXNyL2xvY2FsL2Jpbi9ydWJ5DQpyZXF1aXJlICdnZXRvcHRsb25nJw0KcmVxdWlyZSAnb3Bl
bi11cmknDQpyZXF1aXJlICduZXQvc210cCcNCg0KaWYgQVJHVi5lbXB0eT8gdGhlbg0KICBwdXRz
ICJ1c2FnZTogY2hlY2tfdXJsLnJiIFstdl0gWy1tIGVtYWlsYWRkcl0gPHVybD4iDQogIGV4aXQg
MQ0KZW5kDQoNCiMgc3BlY2lmeSBvcHRpb25zDQpvcHRzID0gR2V0b3B0TG9uZy5uZXcoDQogIFsg
Ii12IiwgR2V0b3B0TG9uZzo6Tk9fQVJHVU1FTlQgXSwNCiAgWyAiLW0iLCBHZXRvcHRMb25nOjpS
RVFVSVJFRF9BUkdVTUVOVCBdDQopDQoNCnNtdHBfaG9zdCA9ICJzbXRwLmV4YW1wbGUuY29tIg0K
ZnJvbSA9ICJ3ZWJ0ZXN0QGV4YW1wbGUuY29tIg0KdXJsID0gIiINCm1lc3NhZ2UgPSAiIg0KZmxh
ZyA9IDANCnZlcmJvc2UgPSAwDQojIGRl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A9IDw8TUFJTA0KU3ViamVjdDogI3tzdWJqZWN0fQ0KDQoje3VybH0gaXMgZmVl
bGluZyBPSyByaWdodCBub3cuDQoNCkRpYWdub3NpczogU2l0ZSB1cA0KTUFJTA0KDQogICAgICBO
ZXQ6OlNNVFAuc3RhcnQoc210cF9ob3N0KSBkbyB8c210cHwNCiAgICAgICAgc210cC5zZW5kX21h
aWwobWFpbCwgZnJvbSwgdG8pDQogICAgICBlbmQNCiAgICBlbmQNCiAgZWxzZQ0KICAgICMgVGhl
IHNpdGUgaXMgYnVzdGVkIHNvbWVob3cNCiAgICBtYWlsID0gPDxNQUlMDQpTdWJqZWN0OiAje3N1
YmplY3R9DQoNClNhZGx5LCAje3VybH0gaXNuJ3QgZmVlbGluZyB3ZWxsIHJpZ2h0IG5vdy4NCg0K
RGlhZ25vc2lzOiAje21lc3NhZ2V9DQpQYWdlICAgICA6ICN7cGFnZX0NCk1BSUwNCg0KICAgIE5l
dDo6U01UUC5zdGFydChzbXRwX2hvc3QpIGRvIHxzbXRwfA0KICAgICAgc210cC5zZW5kX21haWwo
bWFpbCwgZnJvbSwgdG8pDQogICBlbmQNCmVuZA0K

------_=_NextPart_001_01C6E8DC.66925785--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?04E232FDCD9FBE43857F7066CAD3C0F11EF89B>