Discussion:
ZFS disk space monitoring with SNMP
Ray Van Dolson
2010-10-01 21:49:24 UTC
Permalink
Hey folks;

Running on Solaris 10 U9 here. How do most of you monitor disk usage /
capacity on your large zpools remotely via SNMP tools?

Net SNMP seems to be using a 32-bit unsigned integer (based on the MIB)
for hrStorageSize and friends, and thus we're not able to get accurate
numbers for sizes >2TB.

Looks like potentially later versions of Net-SNMP deal with this
(though I'm not sure on that), but the version of Net-SNMP with Solaris
10 is of course, not bleeding edge. :)

Thanks,
Ray
Volker A. Brandt
2010-10-01 22:00:16 UTC
Permalink
Hello Ray, hello list!
Post by Ray Van Dolson
Running on Solaris 10 U9 here. How do most of you monitor disk usage /
capacity on your large zpools remotely via SNMP tools?
Net SNMP seems to be using a 32-bit unsigned integer (based on the MIB)
for hrStorageSize and friends, and thus we're not able to get accurate
numbers for sizes >2TB.
Looks like potentially later versions of Net-SNMP deal with this
(though I'm not sure on that), but the version of Net-SNMP with Solaris
10 is of course, not bleeding edge. :)
Sorry to be a lamer, but "me too"...

Has anyone integrated an SNMP-based ZFS monitoring with their
favorite management tool? I am looking for disk usage warnings,
but I am also interested in "OFFLINE" messages, or nonzero values
for READ/WRITE/CKSUM errors. Casual googling did not turn up anything
that looked promising.

There is an older ex-Sun download of an SNMP kit, but to be candid
I haven't really looked at it yet.


Thanks -- Volker
--
------------------------------------------------------------------------
Volker A. Brandt Consulting and Support for Sun Solaris
Brandt & Brandt Computer GmbH WWW: http://www.bb-c.de/
Am Wiesenpfad 6, 53340 Meckenheim Email: ***@bb-c.de
Handelsregister: Amtsgericht Bonn, HRB 10513 Schuhgröße: 45
Geschäftsführer: Rainer J. H. Brandt und Volker A. Brandt
Ray Van Dolson
2010-10-01 22:06:43 UTC
Permalink
Post by Volker A. Brandt
Hello Ray, hello list!
Post by Ray Van Dolson
Running on Solaris 10 U9 here. How do most of you monitor disk usage /
capacity on your large zpools remotely via SNMP tools?
Net SNMP seems to be using a 32-bit unsigned integer (based on the MIB)
for hrStorageSize and friends, and thus we're not able to get accurate
numbers for sizes >2TB.
Looks like potentially later versions of Net-SNMP deal with this
(though I'm not sure on that), but the version of Net-SNMP with Solaris
10 is of course, not bleeding edge. :)
Sorry to be a lamer, but "me too"...
Has anyone integrated an SNMP-based ZFS monitoring with their
favorite management tool? I am looking for disk usage warnings,
but I am also interested in "OFFLINE" messages, or nonzero values
for READ/WRITE/CKSUM errors. Casual googling did not turn up anything
that looked promising.
There is an older ex-Sun download of an SNMP kit, but to be candid
I haven't really looked at it yet.
Note that I'm sure we could extend Net-SNMP and configure a custom OID
to gather and present the information we're interested in.

Totally willing to go that route and standardize on it here, but am
curious if there's more of an "out of the box" solution -- even if I
find out it's only available in later versions of Net-SNMP (at least I
could file an RFE with Oracle for this).

Ray
Dave
2010-10-02 23:14:39 UTC
Permalink
I just query for the percentage in use via snmp (net-snmp)

In my snmpd.conf I have:
extend .1.3.6.1.4.1.2021.60 drive15 /usr/gnu/bin/sh /opt/utils/zpools.ksh rpool space


and the zpools.ksh is:

#!/bin/ksh
export PATH=/usr/bin:/usr/sbin:/sbin
export LD_LIBRARY_PATH=/usr/lib
zpool list -H -o capacity ${1} | sed -e 's/%//g'
--
This message posted from opensolaris.org
Loading...