Problem with net-snmp, HOST-RESOURCES-MIB, solaris and zfs
"Daniel Werner" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
I compiled net-snmp 5.7.1 without problems on Solaris 10. But
then I noticed that
snmpwalk -v2c -c public localhost HOST-RESOURCES-MIB::hrStorageDescr
doesn't return any ZFS filesystems at all.
I then traced it down to this part of hrh_filesys.c:
Get_Next_HR_FileSys(void)
{
if ( HRFS_entry ) {
HRFS_entry = netsnmp_fsys_get_next( HRFS_entry );
} else {
HRFS_entry = netsnmp_fsys_get_first();
}
/* Skip "inactive" entries */
while ( HRFS_entry && !(HRFS_entry->flags & NETSNMP_FS_FLAG_ACTIVE))
HRFS_entry = netsnmp_fsys_get_next( HRFS_entry );
HRFS_index = (HRFS_entry ? HRFS_entry->idx.oids[0] : -1 );
return HRFS_index;
}
When I eliminated that while-loop to skip inactive entries, the
ZFS filesystems are listed correctly. But I don't understand why.
The flags on the ZFS filesystems are 0x04, NETSNMP_FS_FLAG_ACTIVE
is 0x01.
So what would be the correct way to solve that problem?
Regards
Daniel
--
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users