From owner-freebsd-questions Wed Apr 29 09:05:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA02262 for freebsd-questions-outgoing; Wed, 29 Apr 1998 09:05:58 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from ii.pilsnet.sunet.se (ii.pilsnet.sunet.se [192.36.125.164]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA02248 for ; Wed, 29 Apr 1998 09:05:45 -0700 (PDT) (envelope-from bengan@ii.pilsnet.sunet.se) Received: (from bengan@localhost) by ii.pilsnet.sunet.se (8.8.8/8.8.5) id SAA01999; Wed, 29 Apr 1998 18:05:25 +0200 (CEST) Message-ID: <19980429180524.01907@sunet.se> Date: Wed, 29 Apr 1998 18:05:24 +0200 From: Bengt Gorden To: =?iso-8859-1?Q?Patrik_=C5str=F6m?= , "'freebsd-questions@freebsd.org'" Subject: Re: Monitoring a HTTP service !! References: <43A432602D33D111BA8F00805FA6FE132CC789@STK_FILE> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.89.1i In-Reply-To: =?iso-8859-1?Q?=3C43A432602D33D111BA8F00805FA6FE132CC789=40STK_FILE=3E?= =?iso-8859-1?Q?=3B_from_Patrik_=C5str=F6m_on_Wed=2C_Apr_29=2C_1998_at_01?= =?iso-8859-1?Q?=3A46=3A13PM_+0200?= Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Apr 29, 1998 at 01:46:13PM +0200, Patrik Åström wrote: > Hi! > > I need to monitor a Microsoft IIS server, I have lots of trouble with > this one and can not change to FreeBSD due to some special applications. > I would like to be able to have cron job that calls a program that > checks if this server respond to http requests. I could make bourne > script and use "wget" or some other software to retrieve a .html > document but I don't want to retrieve a document just se if the server > respond to calls on port 80. Is there a perl script that use the > "socket" call or some other neat way to fix this, I would be most > grateful for any hints or suggestions. Install strobe from /usr/ports/net/strobe and try: strobe -p 80 -t 2 www.tv3.se -- mvh, /Bengan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message