From owner-freebsd-questions Wed Apr 29 11:29:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA00429 for freebsd-questions-outgoing; Wed, 29 Apr 1998 11:29:10 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from relay.lsumc.edu (RELAY.LSUMC.EDU [155.58.128.154]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA00412 for ; Wed, 29 Apr 1998 11:28:56 -0700 (PDT) (envelope-from jmire@lsumc.edu) Received: from exchgateway.lsumc.edu ([155.58.128.195]) by relay.lsumc.edu (Post.Office MTA v3.1.2 release (PO205-101c) ID# 0-42511U8000L8000S0) with ESMTP id AAA184; Wed, 29 Apr 1998 13:28:32 -0500 Received: by EXCHGATEWAY.LSUMC.EDU with Internet Mail Service (5.5.1960.3) id ; Wed, 29 Apr 1998 13:28:28 -0500 Message-ID: From: jmire@lsumc.edu (Mire, John) To: "'FreeBSD Questions'" Cc: =?iso-8859-1?Q?=27Patrik_=C5str=F6m=27?= Subject: RE: Monitoring a HTTP service !! Date: Wed, 29 Apr 1998 13:29:06 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id LAA00420 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG try /usr/ports/www/apache/work/apache_1.2.6/support/log_server_status works for me and we have several MS IIE servers here, along with apache.... heres the info from the perl script. #Log Server Status # Mark J Cox, UK Web Ltd 1996, mark@ukweb.com # # This script is designed to be run at a frequent interval by something # like cron. It connects to the server and downloads the status # information. It reformats the information to a single line and logs # it to a file. Make sure the directory $wherelog is writable by the # user who runs this script. # \john -- John Mire: jmire@lsumc.edu LSUMC Shreveport Computer Services pgpkey: voice: 318.675.5443 fax: 318.675.4641 > ---------- > From: Patrik Åström[SMTP:patrik.astrom@tv3.se] > Sent: Wednesday, April 29, 1998 6:46 AM > To: 'freebsd-questions@freebsd.org' > Subject: Monitoring a HTTP service !! > > 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. > > Regards Patrik Astrom, Stockholm > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message