From owner-freebsd-questions@FreeBSD.ORG Tue Nov 9 19:55:41 2010 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 2A1D0106564A for ; Tue, 9 Nov 2010 19:55:41 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id C88238FC1C for ; Tue, 9 Nov 2010 19:55:40 +0000 (UTC) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email2.allantgroup.com (8.14.4/8.14.4) with ESMTP id oA9Jtap2079067 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Nov 2010 13:55:36 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.4/8.14.4) with ESMTP id oA9JtaXF032318 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 9 Nov 2010 13:55:36 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.4/8.14.4/Submit) id oA9JtZxg032317; Tue, 9 Nov 2010 13:55:35 -0600 (CST) (envelope-from dan) Date: Tue, 9 Nov 2010 13:55:35 -0600 From: Dan Nelson To: Omer Faruk SEN Message-ID: <20101109195535.GA46822@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 8.1-STABLE User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: clamav-milter 0.96.4 at email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (email2.allantgroup.com [199.67.51.78]); Tue, 09 Nov 2010 13:55:37 -0600 (CST) X-Scanned-By: MIMEDefang 2.68 on 199.67.51.78 Cc: FreeBSD Subject: Re: zfs snmpd disk status 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, 09 Nov 2010 19:55:41 -0000 In the last episode (Nov 09), Omer Faruk SEN said: > I have a system like: > > /dev/da0s1a 48G 2.2G 42G 5% / > devfs 1.0K 1.0K 0B 100% /dev > /dev/da0s1d 72G 940M 66G 1% /usr > opt 547G 14G 534G 2% /opt > > /opt is a zfs partition > > snmpd.conf : > > disk / 10000 > disk /opt 10000 > > Above configuration doesn't work (I only see / partition) > > snmpwalking UCD-SNMP-MIB::dskTable is as follows: dskTable is empty on all my servers, but hrStorageTable exists (that's the table that the snmpdf command uses by default), and lists all my ZFS filesystems (/ and /u01 are zfs): $ df Filesystem 1K-blocks Used Avail Capacity Mounted on local/root 33521876 20769770 12752105 62% / devfs 1 1 0 100% /dev /dev/ufs/boot 253740 134068 99374 57% /.boot procfs 4 4 0 100% /proc u01 152763879 44677387 108086492 29% /u01 /dev/md0 507630 43996 423024 9% /tmp devfs 1 1 0 100% /var/named/dev $ snmpdf localhost | grep / / 33521867 20771171 12750695 61% /dev 1 1 0 100% /.boot 253740 134068 119672 52% /proc 4 4 0 100% /u01 152763879 44677387 108086492 29% /tmp 507630 43996 463634 8% /var/named/dev 1 1 0 100% /mnt 0 0 0 0% $ pkg_info | grep net-snmp net-snmp-5.5_4 An extendable SNMP implementation -- Dan Nelson dnelson@allantgroup.com