disk usage not showing up in HOST-RESOURCES-MIB::hrStorageTable after latest update

Bug #1843005 reported by gunny26 on 2019-09-06
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
net-snmp (Ubuntu)
Undecided
Unassigned

Bug Description

on ubuntu 18.04 and 16.04 after updating snmpd to latest version,
snmpwalk does not show the blockdevices (type hrStorageFixedDisk) any more.

snmpwalk on server with 18.04, snmpd version 5.7.3+dfsg-1.8ubuntu3.2

HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2041752
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 4138900
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 2041752
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1198856
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 37032
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 2097148
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 1805536
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 1806828
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 269176
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 1198856
HOST-RESOURCES-MIB::hrStorageUsed.8 = INTEGER: 37032
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 1292

looks like missing all disks type hrStorageFixedDisk are missing.
the same on servers with 16.04, snmpd version 5.7.3+dfsg-1ubuntu4.3

on ubuntu 14.04 this work properly

HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageIndex.8 = INTEGER: 8
HOST-RESOURCES-MIB::hrStorageIndex.10 = INTEGER: 10
HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31
HOST-RESOURCES-MIB::hrStorageIndex.34 = INTEGER: 34
HOST-RESOURCES-MIB::hrStorageIndex.40 = INTEGER: 40
HOST-RESOURCES-MIB::hrStorageIndex.41 = INTEGER: 41
HOST-RESOURCES-MIB::hrStorageIndex.42 = INTEGER: 42
HOST-RESOURCES-MIB::hrStorageIndex.43 = INTEGER: 43
HOST-RESOURCES-MIB::hrStorageIndex.45 = INTEGER: 45
HOST-RESOURCES-MIB::hrStorageIndex.46 = INTEGER: 46
HOST-RESOURCES-MIB::hrStorageIndex.47 = INTEGER: 47
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.8 = OID: HOST-RESOURCES-TYPES::hrStorageOther
HOST-RESOURCES-MIB::hrStorageType.10 = OID: HOST-RESOURCES-TYPES::hrStorageVirtualMemory
HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.34 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.40 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.41 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.42 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.43 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.45 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.46 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.47 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: /
HOST-RESOURCES-MIB::hrStorageDescr.34 = STRING: /sys/fs/cgroup
HOST-RESOURCES-MIB::hrStorageDescr.40 = STRING: /run
HOST-RESOURCES-MIB::hrStorageDescr.41 = STRING: /run/lock
HOST-RESOURCES-MIB::hrStorageDescr.42 = STRING: /run/shm
HOST-RESOURCES-MIB::hrStorageDescr.43 = STRING: /run/user
HOST-RESOURCES-MIB::hrStorageDescr.45 = STRING: /boot
HOST-RESOURCES-MIB::hrStorageDescr.46 = STRING: /var/log
HOST-RESOURCES-MIB::hrStorageDescr.47 = STRING: /var/rrd
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.8 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.10 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.34 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.40 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.41 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.42 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.43 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.45 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.46 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.47 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 2049512
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 4146660
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 2049512
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 1038216
HOST-RESOURCES-MIB::hrStorageSize.8 = INTEGER: 68
HOST-RESOURCES-MIB::hrStorageSize.10 = INTEGER: 2097148
HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 1968937
HOST-RESOURCES-MIB::hrStorageSize.34 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageSize.40 = INTEGER: 51238
HOST-RESOURCES-MIB::hrStorageSize.41 = INTEGER: 1280
HOST-RESOURCES-MIB::hrStorageSize.42 = INTEGER: 256189
HOST-RESOURCES-MIB::hrStorageSize.43 = INTEGER: 25600
HOST-RESOURCES-MIB::hrStorageSize.45 = INTEGER: 233191
HOST-RESOURCES-MIB::hrStorageSize.46 = INTEGER: 1257376
HOST-RESOURCES-MIB::hrStorageSize.47 = INTEGER: 48991069
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 1977136
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 2352972
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 6568
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 1038216
HOST-RESOURCES-MIB::hrStorageUsed.8 = INTEGER: 68
HOST-RESOURCES-MIB::hrStorageUsed.10 = INTEGER: 375836
HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 1337567
HOST-RESOURCES-MIB::hrStorageUsed.34 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.40 = INTEGER: 207
HOST-RESOURCES-MIB::hrStorageUsed.41 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.42 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.43 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageUsed.45 = INTEGER: 70969
HOST-RESOURCES-MIB::hrStorageUsed.46 = INTEGER: 307264
HOST-RESOURCES-MIB::hrStorageUsed.47 = INTEGER: 2461313

we are using this to monitor disk usage on our servers

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in net-snmp (Ubuntu):
status: New → Confirmed
gunny26 (arthur-messner) wrote :

Downgrade to previous version does cure the bug, the mentioned filesystems are showing up.
But this is not a sustainable solution, on next unattended update this will be updated.

cmdline to downgrade:
sudo apt install snmp=5.7.3+dfsg-1.8ubuntu3.1 libsnmp30=5.7.3+dfsg-1.8ubuntu3.1 snmpd=5.7.3+dfsg-1.8ubuntu3.1 libsnmp-base=5.7.3+dfsg-1.8ubuntu3.1

This affects about 70 servers in our network, we use snmp in conjunction with icinga2
for monitoring disk usage.

David Ford (atheros1200) wrote :

Not an ideal solution as you will need to go back to the servers afterwards but we have had to do it on our unattended upgrade servers as well

sudo apt-mark hold snmp snmpd libsnmp30 libsnmp-base

This will stop the package being upgraded again

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers