Alexander Skwar
2009-Jul-07  11:43 UTC
[zfs-discuss] UCD-SNMP-MIB::dskAvail et.al. not supported on ZFS?
Hi.
I''ve got a fully patched Solaris 10 U7 Sparc system, on which
I enabled SNMP disk monitoring by adding those lines to the
/etc/sma/snmp/snmpd.conf configuration file:
disk / 5%
disk /tmp 10%
disk /data 5%
That''s supposed to mean, that I see <5% available on / to be
critical, <10% on /tmp and <%5 on /data. And it''s also supposed
to mean, that I want to see available space on those directories,
ie. filesystems.
I then did a snmpwalk  -t 30  -v2c -cpublic winds07 .1.3.6.1.4.1.2021.9,
to get all the values; I got:
UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /tmp
UCD-SNMP-MIB::dskPath.3 = STRING: /data
UCD-SNMP-MIB::dskDevice.1 = STRING: rpool/ROOT/s10s_u7wos_08
UCD-SNMP-MIB::dskDevice.2 = STRING: swap
UCD-SNMP-MIB::dskDevice.3 = STRING: rpool/ROOT/s10s_u7wos_08/data
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: 5
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: 10
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: 5
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 27593472
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 27188624
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 0
UCD-SNMP-MIB::dskUsed.2 = INTEGER: 404848
UCD-SNMP-MIB::dskUsed.3 = INTEGER: 0
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 2
UCD-SNMP-MIB::dskPercent.2 = INTEGER: 1
UCD-SNMP-MIB::dskPercent.3 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.3 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: noError(0)
UCD-SNMP-MIB::dskErrorMsg.1 = STRING:
UCD-SNMP-MIB::dskErrorMsg.2 = STRING:
UCD-SNMP-MIB::dskErrorMsg.3 = STRING:
Pay attention to the .1 and .3 values. As you can see SNMP
returns eg. UCD-SNMP-MIB::dskAvail.1 = INTEGER: 0
This is not correct:
--($ ~)-- LC_ALL=C /bin/df -h /
Filesystem             size   used  avail capacity  Mounted on
rpool/ROOT/s10s_u7wos_08
                       274G   4.0G   261G     2%    /
I would''ve expected that SNMP would''ve returned 261G for
dskAvail. But most certainly not 0 (unless there''s 0 space
available, of course...)!
Are the dskTotal, dskAvail and dskUsed figures not supported
on ZFS?
I''m using the SMA snmp daemon that comes with Solaris 10.
Thanks,
Alexander
-- 
[[ http://zensursula.net ]]
[ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77 ]
[ Mehr => http://zyb.com/alexws77 ]
[ Chat => Jabber: alexws77 at jabber80.com | Google Talk: a.skwar at
gmail.com ]
[ Mehr => AIM: alexws77 ]
[ $[ $RANDOM % 6 ] = 0 ] && rm -rf / || echo ''CLICK!''
Joerg Schilling
2009-Jul-07  11:53 UTC
[zfs-discuss] UCD-SNMP-MIB::dskAvail et.al. not supported on ZFS?
Alexander Skwar <alexanders.mailinglists+nospam at gmail.com> wrote:> Hi. > > I''ve got a fully patched Solaris 10 U7 Sparc system, on which > I enabled SNMP disk monitoring by adding those lines to the > /etc/sma/snmp/snmpd.conf configuration file:This is an OpenSolaris related list. Please repeat your tests on the current development platform. If you have the same problem on the development version, it seems to be of interest for OpenSolaris related discussions. J?rg -- EMail:joerg at schily.isdn.cs.tu-berlin.de (home) J?rg Schilling D-13353 Berlin js at cs.tu-berlin.de (uni) joerg.schilling at fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Alexander Skwar
2009-Jul-07  11:58 UTC
[zfs-discuss] UCD-SNMP-MIB::dskAvail et.al. not supported on ZFS?
Hallo J?rg! On Tue, Jul 7, 2009 at 13:53, Joerg Schilling<Joerg.Schilling at fokus.fraunhofer.de> wrote:> Alexander Skwar <alexanders.mailinglists+nospam at gmail.com> wrote: > >> Hi. >> >> I''ve got a fully patched Solaris 10 U7 Sparc system, on which >> I enabled SNMP disk monitoring by adding those lines to the >> /etc/sma/snmp/snmpd.conf configuration file: > > This is an OpenSolaris related list.I read "ZFS Discuss" and thought, that this would be the right place to ask ZFS related questions ;)> Please repeat your tests on the current > development platform.Would I get useful figures, if I ran the same test on OS? I don''t have an OS system at hand right now, so it would be great if someone could check that out - it''s not so hard to test it, after all ;)> If you have the same problem on the development version, > it seems to be ?of interest for OpenSolaris related discussions.Where should ZFS (or SNMP?) related questions/problems be directed to? Thanks a lot, Alexander -- [[ http://zensursula.net ]] [ Soc. => http://twitter.com/alexs77 | http://www.plurk.com/alexs77 ] [ Mehr => http://zyb.com/alexws77 ] [ Chat => Jabber: alexws77 at jabber80.com | Google Talk: a.skwar at gmail.com ] [ Mehr => AIM: alexws77 ] [ $[ $RANDOM % 6 ] = 0 ] && rm -rf / || echo ''CLICK!''
Richard Elling
2009-Jul-07  16:17 UTC
[zfs-discuss] UCD-SNMP-MIB::dskAvail et.al. not supported on ZFS?
Joerg Schilling wrote:> Alexander Skwar <alexanders.mailinglists+nospam at gmail.com> wrote: > > >> Hi. >> >> I''ve got a fully patched Solaris 10 U7 Sparc system, on which >> I enabled SNMP disk monitoring by adding those lines to the >> /etc/sma/snmp/snmpd.conf configuration file: >> > > This is an OpenSolaris related list. Please repeat your tests on the current > development platform. If you have the same problem on the development version, > it seems to be of interest for OpenSolaris related discussions. >That is not a very nice thing to say! This is the best place for ZFS questions anywhere on the planet. -- richard