Date: Wed, 29 Apr 1998 15:13:21 +0200 (CEST) From: Dirk-Willem van Gulik <dirk.vangulik@jrc.it> To: =?iso-8859-1?Q?Patrik_=C5str=F6m?= <patrik.astrom@tv3.se> Cc: "'freebsd-questions@freebsd.org'" <freebsd-questions@FreeBSD.ORG> Subject: Re: Monitoring a HTTP service !! Message-ID: <Pine.BSF.3.96.980429151126.10987m-100000@mda00.jrc.it> In-Reply-To: <43A432602D33D111BA8F00805FA6FE132CC789@STK_FILE>
next in thread | previous in thread | raw e-mail | index | archive | help
Check out libwww, it has a nice fetcher. you could use the HEAD request; or intentially call a 'fake' page; to avoid logging trouble. Or use the exit code from a crontab' 1 * * * * * /usr/sbin/fetch http://some/where/test.html > /dev/null will send you an email on failure. Dw. On Wed, 29 Apr 1998, [iso-8859-1] 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. > > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.980429151126.10987m-100000>