From radar@db.gsoft.com.au  Tue Feb 12 06:53:16 2013
Return-Path: <radar@db.gsoft.com.au>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id C2C45843
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Feb 2013 06:53:16 +0000 (UTC)
	(envelope-from radar@db.gsoft.com.au)
Received: from db.gsoft.com.au (db.gsoft.com.au [203.31.81.50])
	by mx1.freebsd.org (Postfix) with ESMTP id 477637D9
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Feb 2013 06:53:15 +0000 (UTC)
Received: from db.gsoft.com.au (localhost [127.0.0.1])
	by db.gsoft.com.au (8.14.5/8.14.5) with ESMTP id r1C6fsi5033018
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 12 Feb 2013 06:41:54 GMT
	(envelope-from radar@db.gsoft.com.au)
Received: (from radar@localhost)
	by db.gsoft.com.au (8.14.5/8.14.5/Submit) id r1C6fsbS033017;
	Tue, 12 Feb 2013 06:41:54 GMT
	(envelope-from radar)
Message-Id: <201302120641.r1C6fsbS033017@db.gsoft.com.au>
Date: Tue, 12 Feb 2013 06:41:54 GMT
From: doconnor@gsoft.com.au
Reply-To: doconnor@gsoft.com.au
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Periodic script to monitor mfi(4) arrays
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         176049
>Category:       conf
>Synopsis:       [patch] 410.status-mfi: new periodic script to monitor mfi(4) arrays
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 12 07:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri May 24 20:10:00 UTC 2013
>Originator:     Daniel O'Connor
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
Genesis Software
>Environment:
System: FreeBSD db.gsoft.com.au 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r224195: Tue Jul 19 17:45:03 CST 2011 radar@maarsy-acq3.gsoft.com.au:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
This is a simple script to show mfi(4) array status using mfiutil based on the gmirror one.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       410.status-mfi
#
echo x - 410.status-mfi
sed 's/^X//' >410.status-mfi << '3a7aa4f227ff0f30f691b713411da5bd'
X#!/bin/sh
X#
X# $FreeBSD$
X#
X
X# If there is a global system configuration file, suck it in.
X#
Xif [ -r /etc/defaults/periodic.conf ]
Xthen
X    . /etc/defaults/periodic.conf
X    source_periodic_confs
Xfi
X
Xcase "$daily_status_mfi_enable" in
X    [Yy][Ee][Ss])
X       echo
X       echo 'Checking status of mfi(4) devices:'
X
X       if mfiutil show volumes; then
X               components="$(mfiutil show volumes | fgrep DEGRADED)"
X               if [ "${components}" ]; then
X                       rc=3
X               else
X                       rc=0
X               fi
X       else
X               rc=2
X       fi
X       ;;
X
X    *)  rc=0;;
Xesac
X
Xexit $rc
3a7aa4f227ff0f30f691b713411da5bd
exit


>Release-Note:
>Audit-Trail:

From: "Daniel O'Connor" <doconnor@gsoft.com.au>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: misc/176049: Periodic script to monitor mfi(4) arrays
Date: Tue, 12 Feb 2013 17:50:26 +1030

 I forgot to change the from address on this, it should be =
 doconnor@gsoft.com.au
 
 --
 Daniel O'Connor software and network engineer
 for Genesis Software - http://www.gsoft.com.au
 "The nice thing about standards is that there
 are so many of them to choose from."
   -- Andrew Tanenbaum
 GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
 
 
 
 
 
 

From: Mike Jakubik <mike.jakubik@intertainservices.com>
To: bug-followup@FreeBSD.org, doconnor@gsoft.com.au
Cc:  
Subject: Re: conf/176049: [patch] 410.status-mfi: new periodic script to monitor
 mfi(4) arrays
Date: Fri, 24 May 2013 15:56:34 -0400

 I found this script useful, it would be nice if it was part of base, I'm 
 sure many people are using these raid controllers.
 
 Thanks.
>Unformatted:
