SMARTCTL-MIB details

MIB structure

Once the snmp-mibs/smartctl-snmp-mib package has been installed the Hacking Networked Solutions SMARTCTL-MIB will be loaded automatically by all of the SNMP aware applications which search for MIB files in the standard location. The example below shows the snmptranslate utility (part of the net-analyzer/net-snmp package) being used to display the structure of the SMARTCTL-MIB as a tree.

lisa snmptranslate -Tp SMARTCTL-MIB::smartCtlTable
+--smartCtlTable(2) 
   +--smartCtlEntry(1) 
      |  Index: smartCtlDeviceIndex 
      +-- -R-- Integer32 smartCtlDeviceIndex(1) 
      |        Range: 0..65535 
      +-- -R-- String    smartCtlDeviceDev(2) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- String    smartCtlDeviceModelFamily(3) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- String    smartCtlDeviceDeviceModel(4) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- String    smartCtlDeviceSerialNumber(5) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- String    smartCtlDeviceUserCapacity(6) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- String    smartCtlDeviceATAVersion(7) 
      |        Textual Convention: DisplayString 
      |        Size: 0..255 
      +-- -R-- EnumVal   smartCtlDeviceHealthOK(8) 
      |        Textual Convention: TruthValue 
      |        Values: true(1), false(2) 
      +-- -R-- Gauge     smartCtlDeviceTemperatureCelsius(9) 
      +-- -R-- Gauge     smartCtlDeviceReallocatedSectorCt(10) 
      +-- -R-- Gauge     smartCtlDeviceCurrentPendingSector(11) 
      +-- -R-- Gauge     smartCtlDeviceOfflineUncorrectable(12) 
      +-- -R-- Gauge     smartCtlDeviceUDMACRCErrorCount(13) 
      +-- -R-- Gauge     smartCtlDeviceReadErrorRate(14) 
      +-- -R-- Gauge     smartCtlDeviceSeekErrorRate(15) 
      +-- -R-- Gauge     smartCtlDeviceHardwareECCRecovered(16) 

MIB entries

The Hacking Networked Solutions SMARTCTL-MIB contains a number of entries for each monitored disk device. The table below lists these entries and provides a brief description of the data provided in each along with example values.

Description of the SMARTCTL-MIB::smartCtlTable entries
smartCtlDeviceIndex (1) This field contains the index to the data in the rest of the table.
1 - n (number of monitored devices)
smartCtlDeviceDev (2) The smartCtlDeviceDev entry provides access to a string containing the device path of the target disk.
/dev/sda
smartCtlDeviceModelFamily (3) The smartCtlDeviceModelFamily entry provides access to the string identifier of the Model Family of the target device.
Seagate Barracuda 7200.7 and 7200.7 Plus family
smartCtlDeviceDeviceModel (4) The smartCtlDeviceDeviceModel entry provides access to the string identifier of the Device Model of the target device.
ST3160827AS
smartCtlDeviceSerialNumber (5) To ensure simple and certain disk identification the smartCtlDeviceSerialNumber contains the string representation of the Serial Number of the target disk. This should be the same as that printed on the disk itself, usually on a sticker attached to the top face of the drive. When mounting disks it is wise to ensure that this information is easily visible without having to remove the disk first.
4MT00KR4
smartCtlDeviceUserCapacity (6) All disk devices return a User Capacity, usually in bytes. The smartCtlDeviceUserCapacity provides access to this data as a string.
160,041,885,696 bytes
smartCtlDeviceATAVersion (7) The smartCtlDeviceATAVersion is an integer representing the ATA protocol version in use by the target disk.
6
smartCtlDeviceHealthOK (8) The smartCtlDeviceATAVersion is an integer representing the ATA protocol version in use by the target disk.
6
smartCtlDeviceTemperatureCelsius (9) One of the most significant causes of early drive failure is continued operation outside the manufacturers design specifications. The smartCtlDeviceTemperatureCelsius entry allows the disk temperature to be monitored to ensure that sufficient cooling is being provided to ensure that the disk operates within recommended guidelines.
< 45 (normal operation) > 45 (improved cooling recommended)
smartCtlDeviceReallocatedSectorCt (10) All modern harddisk drives contain an area reserved for re-mapping failing sectors. The smartCtlDeviceReallocatedSectorCt entry provides access to this counter. A sudden increase in this value, or indeed any value consistently increasing from zero, indicates that this disk device has probably reached the end of its life and should be replaced.
0
smartCtlDeviceCurrentPendingSector (11) As discussed above, all modern harddisks contain an area reserved for re-mapping failing sectors. The smartCtlDeviceCurrentPendingSector gauge indicates how many sectors could not be read and are awaiting re-mapping. If one of these sectors is subsequently successfully read then this count will be decreased. If the sector is re-mapped then this count will be decreased and the smartCtlDeviceReallocatedSectorCt will increase accordingly. As with the other similar measurements a sudden increase in this value usually indicates imminent drive failure and an affected drive should probably be replaced.
0
smartCtlDeviceOfflineUncorrectable (12) All modern harddisk drives perform off-line surface scans attempting to read, and if required and possible, re-write any sectors which could not be accurately read. The smartCtlDeviceOfflineUncorrectable entry provides access to a counter indicating how many times this process has encountered a sector which could not be recovered. A sudden increase in this value, or indeed any value consistently increasing from zero, indicates that this disk device has probably reached the end of its life and should be replaced.
0
smartCtlDeviceUDMACRCErrorCount (13) To protect against data transmission errors modern harddisks use a Cyclic Redundancy Check (CRC) algorithm to provide a checksum which can be computed and compared by the disk to ensure that data has been passed correctly. The smartCtlDeviceUDMACRCErrorCount entry provides access to the drive maintained count of such errors. An increase in this value usually indicates a problem with the cable or data connection to the device, although sometimes a power supply problem can also be responsible for UDMA CRC errors.
0
smartCtlDeviceReadErrorRate (14) The smartCtlDeviceReadErrorRate entry provides a gauge mapped to the lifetime attribute representing the Read Error Rate of the target device. A sudden drop in this value indicates that more read errors are occurring which usually precedes a disk failure.
0 (imminent drive failure) - < 100 (normal operation)
smartCtlDeviceSeekErrorRate (15) The smartCtlDeviceSeekErrorRate entry provides a gauge mapped to the lifetime attribute representing the Seek Error Rate of the target device. A sudden drop in this value indicates that more seek errors are occurring. This may be due to thermal expansion of the disk or may be due to mechanical wear which usually precedes a disk failure.
0 (imminent drive failure) - < 100 (normal operation)
smartCtlDeviceHardwareECCRecovered (16) The smartCtlDeviceHardwareECCRecovered entry provides a gauge mapped to the lifetime attribute representing the Hardware ECC Recovered rate of the target device. A sudden drop in this value indicates that disk sectors are becoming more difficult to read. This may be due to thermal expansion of the disk or may be due to mechanical wear which usually precedes a disk failure.
0 (imminent drive failure) - < 100 (normal operation)