Depending on your case, partition layout and mount points your indexes can vary:
but here is example of reporting free disk space on partitions
two mounted partitions:
df | grep mnt
/dev/xvdz1 5160576 10236 4888196 1% /mnt
/dev/xvdz2 36123264 49032 34239276 1% /mnt/test
getting indexes for them from snmpwalk:
snmpwalk -On -v 2c -c public localhost .1.3.6.1.4.1.2021.9 | grep /dev/xvdz
.1.3.6.1.4.1.2021.9.1.3.8 = STRING: "/dev/xvdz1"
.1.3.6.1.4.1.2021.9.1.3.9 = STRING: "/dev/xvdz2"
8
and 9
for xvdz1
and xvdz2
accordingly
so querying for free disk these indexes:
for xvdz1
# snmpwalk -On -v 2c -c public localhost .1.3.6.1.4.1.2021.9.1.7.8
.1.3.6.1.4.1.2021.9.1.7.8 = INTEGER: 4888196
for xvdz2
# snmpwalk -On -v 2c -c public localhost .1.3.6.1.4.1.2021.9.1.7.9
.1.3.6.1.4.1.2021.9.1.7.9 = INTEGER: 34239276
Compare it to output of df