From owner-freebsd-questions@FreeBSD.ORG Tue Oct 3 05:13:53 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 0F26016A403 for ; Tue, 3 Oct 2006 05:13:53 +0000 (UTC) (envelope-from freebsd@meijome.net) Received: from sigma.octantis.com.au (ns2.octantis.com.au [207.44.189.124]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31EB843D46 for ; Tue, 3 Oct 2006 05:13:52 +0000 (GMT) (envelope-from freebsd@meijome.net) Received: (qmail 17776 invoked from network); 3 Oct 2006 15:13:51 +1000 Received: from andromeda.lef.com.au (HELO localhost) (210.8.93.2) by sigma.octantis.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 3 Oct 2006 15:13:51 +1000 Date: Tue, 3 Oct 2006 15:13:48 +1000 From: Norberto Meijome To: jhall@vandaliamo.net Message-ID: <20061003151348.04d73720@localhost> In-Reply-To: <1559.12.170.206.13.1159753939.squirrel@admintool.trueband.net> References: <1532.12.170.206.13.1159751554.squirrel@admintool.trueband.net> <20061002013734.GC77128@dan.emsphone.com> <1559.12.170.206.13.1159753939.squirrel@admintool.trueband.net> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.8.20; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: jhall@vandaliamo.net, Dan Nelson , freebsd-questions@freebsd.org Subject: Re: Checking remote processes 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: Tue, 03 Oct 2006 05:13:53 -0000 On Mon, 2 Oct 2006 01:52:19 -0000 (GMT) jhall@vandaliamo.net wrote: > > In the last episode (Oct 02), jhall@vandaliamo.net said: > >> Is there a way to test a remote server to determine if certain > >> processes are running? > >> > >> For example, can server 1 check server 2, which is at a remote > >> location, to ensure squid is running? > >> > >> I have not been able to figure out how to do this, or if it is even > >> possible. > > > > Easiest way would be to try connecting to squid's listening port. This > > only works with daemons that listen on internet sockets, but quite a > > few do. > > > > -- > > Dan Nelson > > dnelson@allantgroup.com > > > I hadn't thought of that. I'll give it a try. you may want to look into a proper management system to handle this, like nagios and similar. No point reinventing the wheel. _________________________ {Beto|Norberto|Numard} Meijome "Time exists so everything doesn't happen at once" Albert Einstein I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned.