From owner-freebsd-questions@FreeBSD.ORG Tue Nov 9 23:35:45 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 B1952106566C for ; Tue, 9 Nov 2010 23:35:45 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5948FC14 for ; Tue, 9 Nov 2010 23:35:44 +0000 (UTC) Received: by wya21 with SMTP id 21so41855wya.13 for ; Tue, 09 Nov 2010 15:35:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=2bj3s1KaRA3SLI9KaShfh+rGhz2w+0o9yllPzIgze+s=; b=HiEVShlwavvdPiQoL3MV1J24mTMhDyA+AGAt3YGsCbtgDbR8/cKuxPhZywkBJpparm TTK/DlmDyvLPJ+TOZbYexL/KIysQ3hvTfNAgZij39QtsDDHjgSD4uMPrhToMRwC4UIAi nbhP+5pQ3jjelh1y5OTq/14VoP5s9fDn5zMwc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=FrAyzxIN6YH7d60aZ5m1jp0ogQxP9RG0pCT0bg2bAFjyh0J0qlXVJaI69y+kD21hcm PsxqKW8mqkViax0CdS1Bo4p9dDrVhhZbc/5zcqkDY3aeKE+VugsbwGUxy/VyzX0TL496 NDaS9iTbmUYNSXpTpYiyfhWVggAnKe2N1KLos= MIME-Version: 1.0 Received: by 10.216.71.206 with SMTP id r56mr346589wed.29.1289345743699; Tue, 09 Nov 2010 15:35:43 -0800 (PST) Received: by 10.216.72.148 with HTTP; Tue, 9 Nov 2010 15:35:43 -0800 (PST) In-Reply-To: <20101109195535.GA46822@dan.emsphone.com> References: <20101109195535.GA46822@dan.emsphone.com> Date: Tue, 9 Nov 2010 23:35:43 +0000 Message-ID: From: krad To: Dan Nelson Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Omer Faruk SEN , 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 23:35:45 -0000 On 9 November 2010 19:55, Dan Nelson wrote: > 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 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > the way i have done it at work is to write a custom script that just runs a zpool list command. I then put it in as an extend script to build the mib tree. We then monitor these values