Hi, I've made two patches for the host resources part of snmpd. One is for the skipNFSInHostResources option. If enabled a 'snmpwalk' of the hrStorageTable stops at the first occurance of a net-filesystem (because Get_Next_HR_Store() should return -1 or something similar at this point). Subsequent snmpwalks return only an empty list. I think - didn't analysed it really - the snmp agent gets confused when counting the index. A 'snmpget' for a specific table entry works by the way and afterwards the 'snmpwalk' will return the table up to the first net-filesystem.
Though the first patch solves this problem by skipping net-filesystem in the function Get_Next_HR_Store. The second patch is an update of the HRFS_ignore list for linux. Filesystem were taken from /proc/filesystems with a "nodev" remark on a box running linux kernel 2.6.16 and incorporated with the current list of snmpd. I've tested the two patches and they work here very well (especially the skipNFSInHostResources patch). bye Chris phone: +49 6898/10-4987 fax: +49 6898/10-54987 http://www.saarstahl.de
net-snmp-5.4-skipNFSInHostResources.patch
Description: Binary data
net-snmp-5.4-linux-HRFS_ignores.patch
Description: Binary data
------------------------------------------------------------------------- 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
