Part of a private discussion I'm bumping back to -coders 'cause I think he found a bug.
-----Original Message----- From: Ed Ravin [mailto:[EMAIL PROTECTED] Sent: Friday, June 22, 2007 8:20 PM To: Bruce Shaw Subject: net-snmp 5.4 and very large filesystems On Fri, Jun 22, 2007 at 02:06:32PM -0600, Bruce Shaw wrote: > Gimme specific examples and I'll have a look at it. > > We (net-snmp) are just about to release a new version (5.4.1) so I'd > like to fix it before it goes to production. I've upgraded my Solaris snmpd to Net-SNMP 5.4. Here's what I'm seeing now. First, on the Solaris host: [EMAIL PROTECTED]: sbin/ [1] # df -h /export Filesystem size used avail capacity Mounted on Export 1.2T 3.8G 1.1T 1% /export Now, with the same Net-SNMP 5.4 build on the same host, I walk the hrStorage MIB and get: HOST-RESOURCES-MIB::hrStorageIndex.36 = INTEGER: 36 HOST-RESOURCES-MIB::hrStorageType.36 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /export HOST-RESOURCES-MIB::hrStorageAllocationUnits.36 = INTEGER: 512 Bytes HOST-RESOURCES-MIB::hrStorageSize.36 = INTEGER: -2001010982 HOST-RESOURCES-MIB::hrStorageUsed.36 = INTEGER: 8065283 HOST-RESOURCES-MIB::hrStorageAllocationFailures.36 = Counter32: 0 Note the negative number for hrStorageSize.36 I tried walking dskTable, but it says "no such object", which is strange because on my test machine, running the same snmpd binary, but without the giant ZFS filesystem, dskTable works fine. Here's the build info: UCD-SNMP-MIB::versionConfigureOptions.0 = STRING: '--prefix=/pkg/net-snmp-5.4-SunOS-5.10' '--with-default-snmp-version=3' '--enable-developer=yes' '--with-libs=-ldl' '--datadir=/etc/sma' '--with-mibdirs=/etc/sma/snmp/mibs' '--enable-agentx-dom-sock-only' '--with-mib-modules=host disman/event-mib ucd-snmp/diskio ucd-snmp/disk ucd-snmp/errormib ucd-snmp/proc' '--sysconfdir=/etc' '--with-zlib' '--with-libwrap' '--with-openssl=/usr/local/ssl' '--with-pic' '--enable-shared=no' '--localstatedir=/etc' '--without-logfile' '--with-sys-contact=Knowledgable Solar Frog' '--with-sys-location=On a Super Micro thingie' '--with-persistent-directory=/var/sma_snmp' '--with-dummy-values' 'CC=/usr/local/bin/gcc' 'LDFLAGS=-R/usr/local/ssl/lib/' My /usr/local/bin/gcc and SSL is all from the SMC packages. This communication is intended for the use of the recipient to which it is addressed, and may contain confidential, personal and or privileged information. Please contact us immediately if you are not the intended recipient of this communication, and do not copy, distribute, or take action relying on it. Any communication received in error, or subsequent reply, should be deleted or destroyed. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
