I'm using SNMP (polling not traps) to monitor a Snap Server with MIB-II (RFC 1213). Since there is no specialized MIB for this device I am stuck via standard MIB-II. My main goal is to poll the disks and make sure they are not disconnected and mounted. I'm really just looking for best practice here since I'm not much of a Linux admin.
The snap server has a RAID 1.
My plan is to monitor /dev/sda, /dev/sdb, /dev/sdc ect. Starting at OID: .1.3.6.1.2.1.25.3.2.1.3.1552 and up. Right now the string just returns /dev/sda/ which I told my software is the proper string to return. If disk 0 goes down I assume it will no longer return /dev/sda for .1.3.6.1.2.1.25.3.2.1.3.1552 at least this is what I'm hoping.
Can anyone confirm my suspicion on this one? I don't really have an easy way of testing this one without physically building a PC and unplugging a drive as the linux boxes I have access to are in production.
Best Answer
You should check the Host Resources MIB. The OID you are mentioning is the
hrDeviceDescr
field. If you look further in that MIB, you can see thehrDeviceStatus
, which is an integer defined as follows:Thus, you should probably better monitor the following OID:
.1.3.6.1.2.1.25.3.2.1.5.1552
.