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: alexw...@jabber80.com | Google Talk: a.sk...@gmail.com ] [ Mehr => AIM: alexws77 ] [ $[ $RANDOM % 6 ] = 0 ] && rm -rf / || echo 'CLICK!' _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss