From owner-freebsd-proliant@FreeBSD.ORG Tue Feb 13 13:02:13 2007 Return-Path: X-Original-To: freebsd-proliant@freebsd.org Delivered-To: freebsd-proliant@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0B6F16A407 for ; Tue, 13 Feb 2007 13:02:13 +0000 (UTC) (envelope-from soren@klintrup.dk) Received: from mail.telmore.dk (mail.telmore.dk [62.242.232.133]) by mx1.freebsd.org (Postfix) with ESMTP id 8B5AD13C49D for ; Tue, 13 Feb 2007 13:02:13 +0000 (UTC) (envelope-from soren@klintrup.dk) Received: from [192.168.11.31] (unknown [192.168.11.31]) by mail.telmore.dk (Postfix) with ESMTP id 656A03A26B for ; Tue, 13 Feb 2007 13:44:34 +0100 (CET) Message-ID: <45D1B2B1.3070703@klintrup.dk> Date: Tue, 13 Feb 2007 13:44:33 +0100 From: =?ISO-8859-1?Q?S=F8ren_Klintrup?= User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-proliant@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Subject: HP Proliant SmartArray nagios check X-BeenThere: freebsd-proliant@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion of FreeBSD on HP ProLiant server platforms." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Feb 2007 13:02:13 -0000 Hi, I've written a small shellscript, which will check any smartarray volume in the system, and output the state of the volumes to stdout, as well as exit with non-zero errorlevel in case of degraded/rebuilding raid, as per the nagios specs. The script is easily rewritten to perform other tasks in case of problems with the raids, like emailing, snmp-oid, being part of daily checks or whatever, we use nagios with nrpe for this purpose. The script itself runs on a bare FreeBSD without any kind of HP support-tools, it uses camcontrol to get the device information. More information at http://www.klintrup.dk/soren/proliant/ Comments/patches/ideas are welcome :-) Regards, Søren Klintrup