From owner-freebsd-questions@FreeBSD.ORG Wed Nov 19 17:34:59 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 145701065680 for ; Wed, 19 Nov 2008 17:34:59 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: from mx1.identry.com (on.identry.com [66.111.0.194]) by mx1.freebsd.org (Postfix) with ESMTP id B046F8FC16 for ; Wed, 19 Nov 2008 17:34:58 +0000 (UTC) (envelope-from jalmberg@identry.com) Received: (qmail 52166 invoked by uid 89); 19 Nov 2008 17:34:58 -0000 Received: from unknown (HELO ?192.168.1.110?) (jalmberg@75.127.142.66) by mx1.identry.com with ESMTPA; 19 Nov 2008 17:34:57 -0000 In-Reply-To: <20081119172649.GA3139@icarus.home.lan> References: <20081119164919.GA2347@icarus.home.lan> <20081119172649.GA3139@icarus.home.lan> Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: John Almberg Date: Wed, 19 Nov 2008 12:34:55 -0500 To: Jeremy Chadwick X-Mailer: Apple Mail (2.753.1) Cc: freebsd-questions@freebsd.org Subject: Re: snmpd strangeness 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: Wed, 19 Nov 2008 17:34:59 -0000 >> Now I'm curious about snmp, so perhaps I'll try to figure out how >> to get >> it to something useful. This machine has 8 hard drives, and is >> located in >> Manhattan, so I would certainly like to be informed if one of the >> raid >> drives went on the blink. That was one of the things he was trying >> to get >> working. > > Net-SNMP won't give you the status of the RAID. Neither will bsnmpd > (10. > FreeBSD simply does not have the hooks to make this possible. Someone > needs to write the code. I do not recommend relying on shell scripts > tied into Net-SNMP to accomplish this either (for a lot of very good > reasons); write the code in native C. > > It also greatly depends on what you're using for RAID. If a hardware > controller, good luck getting the status out of an API natively (sans > Areca, which I believe offers an API) -- you'll resort to shell > scripts > and CLI binaries, in which case you're *easily* better off with a > cronjob, periodic(8), or a log monitor daemon. This machine has an Intel motherboard and a hardware raid controller. From what I can tell, there is some Intel software installed on the machine that makes hardware faults visible to snmp. That last sentence makes it sound like I know more than I do about this situation. I'm just reading from notes. :-) And I have an Intel disk that came with the motherboard that hints at the same type of thing. I've just scanned the docs on the disk... looks extraordinarily complicated. I think I'll leave this to a rainy day when I have nothing to do (ha!) -- John