Hello All,

While upgrading from NETsnmp 5.7.3 to 5.9.3 I encounter a problem which 
is that root(/) filesystem is missing from UCD-SNMP-MIB disk table:

# snmpwalk -v1 -c public localhost 1.3.6.1.4.1.2021.9
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3
UCD-SNMP-MIB::dskPath.2 = STRING: /tmp
UCD-SNMP-MIB::dskPath.3 = STRING: /var
UCD-SNMP-MIB::dskDevice.2 = STRING: none
UCD-SNMP-MIB::dskDevice.3 = STRING: none

While with 5.7.3 I get

# snmpwalk -v1 -c public localhost 1.3.6.1.4.1.2021.9
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: /var
UCD-SNMP-MIB::dskDevice.1 = STRING: ubi0:rootfs
UCD-SNMP-MIB::dskDevice.2 = STRING: none
UCD-SNMP-MIB::dskDevice.3 = STRING: none

In snmpd.conf I have:

disk /
disk /tmp
disk /var

Mounted filestems are:

# cat /proc/mounts
ubi0:rootfs / ubifs rw,sync,relatime,assert=read-only,ubi=0,vol=0 0 0
none /dev devtmpfs rw,relatime,size=64k,nr_inodes=3496,mode=755 0 0
none /proc proc rw,relatime 0 0
none /sys sysfs rw,relatime 0 0
none /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
none /dev/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=1024k 0 0
none /var tmpfs rw,nosuid,nodev,noexec,relatime,size=4096k,mode=755 0 0
none /tmp tmpfs rw,nosuid,nodev,noexec,relatime,size=28112k 0 0
none /mnt/hugetlbfs hugetlbfs rw,relatime,pagesize=512K 0 0

The problem doesn't exist in NETsnmp v5.7, it appears in v5.8

Bisection identified commit e3fc76e0ae ("CHANGES: snmpd: Make 
UCD-SNMP::dskTable dynamic if includeAllDisks is set.") as the first bad 
commit.

Reverting this commit on top of v5.8 or v5.9 or v5.9.1 fixes the issue.

Can't revert on top of v5.9.2 nor v5.9.3, several non trivial conflicts 
occur in agent/mibgroup/ucd-snmp/disk_hw.c

Can you help fix the issue ?

Thanks
Christophe

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to