From owner-freebsd-questions@FreeBSD.ORG Fri Oct 6 00:14:41 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E22EC16A4E0; Fri, 6 Oct 2006 00:14:41 +0000 (UTC) (envelope-from MTaylor@bytecraft.com.au) Received: from bcmelmx.bytecraft.au.com (bcmelmx.bytecraft.au.com [203.39.118.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 681BB43D4C; Fri, 6 Oct 2006 00:14:37 +0000 (GMT) (envelope-from MTaylor@bytecraft.com.au) Received: from svmarshal2.bytecraft.internal (svmarshal2.bytecraft.internal [10.0.0.3]) by bcmelmx.bytecraft.au.com (8.12.11/8.12.11) with ESMTP id k960EY2r004279; Fri, 6 Oct 2006 10:14:34 +1000 (EST) (envelope-from MTaylor@bytecraft.com.au) Received: from svmailmel.bytecraft.internal (Not Verified[10.0.0.24]) by svmarshal2.bytecraft.internal with MailMarshal (v6, 1, 4, 441) id ; Fri, 06 Oct 2006 10:14:33 +1000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C6E8DC.66925785" X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Fri, 6 Oct 2006 10:14:32 +1000 Message-ID: <04E232FDCD9FBE43857F7066CAD3C0F11EF89B@svmailmel.bytecraft.internal> X-MS-Has-Attach: yes X-MS-TNEF-Correlator: Thread-Topic: tool for checking website Thread-Index: Acbom3zaC9mwEowtT1up7a3cwVmvawAPzKwA From: "Murray Taylor" To: "Ivailo Tanusheff" , "Martin Schweizer" Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org Subject: RE: tool for checking website X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2006 00:14:42 -0000 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 > > 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 ZyA9IDANCnZlcmJvc2UgPSAwDQojIGRlZmF1bHQgdGhpcw0KdG8gPSAid2VidGVzdEBleGFtcGxl LmNvbSINCg0KIyBwcm9jZXNzIGFyZ3MNCm9wdHMuZWFjaCBkbyB8b3B0LCBhcmd8DQogIGNhc2Ug b3B0DQogICAgd2hlbiAnLXYnDQogICAgICAjIHNlbmQgT0sgbWVzc2FnZXMgYWxzbw0KICAgICAg dmVyYm9zZSA9IDENCg0KICAgIHdoZW4gJy1tJw0KICAgICAgIyBzZXQgdGhlIHJlYWwgVE8gYWRk cmVzcw0KICAgICAgdG8gPSBhcmcNCiAgZW5kDQplbmQNCg0KIyB0ZXN0IGFnYWluLCBkaWQ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