From owner-freebsd-geom@FreeBSD.ORG Wed Apr 26 21:44:12 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BBE916A401 for ; Wed, 26 Apr 2006 21:44:12 +0000 (UTC) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: from rescomp.berkeley.edu (keyserver.Rescomp.Berkeley.EDU [169.229.70.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC94F43D49 for ; Wed, 26 Apr 2006 21:44:11 +0000 (GMT) (envelope-from yontege@hal.rescomp.berkeley.edu) Received: by rescomp.berkeley.edu (Postfix, from userid 1032) id 22F8A5B77B; Wed, 26 Apr 2006 14:44:04 -0700 (PDT) Date: Wed, 26 Apr 2006 14:44:04 -0700 From: "Ian A. Tegebo" To: freebsd-geom@freebsd.org Message-ID: <20060426214402.GA2496@rescomp.berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Failure Detection X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 21:44:12 -0000 I'm trying to write a nagios check that will run on my gmirror hosts. I'd like to know what I should look for to be able to determine if a failure has occurred. I took a look at the man pages: gmirror, geom, vinum, and so on but couldn't find much information about state (DIRTY for instance). After searching this list some, I found that DIRTY apparently means that it's ready to be written to? Further search revealed that a 'gmirror status' should return something like "degraded" if a device has failed. I'm running 5.3 and am not seeing the 'status' command for gmirror so I'm supposing I'll need to upgrade. Where can I find more detailed information about what the output of 'gmirror list' means? Has anyone come up with a better way then grepping 'gmirror status' output for 'degraded'? Thanks, -- Ian Tegebo