Review the OID information to use in the Check
After reviewing the MIB and OID information returned from the device. We will use the OID and value information from the ifTable to create our custom SNMP Check.
As we want our SNMP Check to monitor all interfaces in the table. We will use OIDs without an index value. Where you want to query a specific indicator. You can enter its index number when setting up the Check.
Name: ifDescr
OID: .1.3.6.1.2.1.2.2.1.2
Syntax: DisplayString
Note: Description. Used to identify the interface in the Check
Name: ifPhysAddress
OID: .1.3.6.1.2.1.2.2.1.6
Syntax: PhysAddress
Note: Interface's address at the protocol layer
Name: ifOperStatus
OID: .1.3.6.1.2.1.2.2.1.8
Syntax: Integer
Raw Value/Value: 1 (up), 2 (down), 3 (testing), 4 (unknown), 5 (dormant), 6 (notPresent), 7 (lowerLayerDown)
The Check reports back the Raw Value.
Note: State of the interface
Name: ifSpeed
OID: .1.3.6.1.2.1.2.2.1.5
Syntax: Gauge
Note: Current bandwidth in bits per second
What do you want to do?
- Learn about SNMP
- Retrieve SNMP Information from a Device using a MIB browser
- Identify the Interface OIDs
- Walk through the creation of a custom SNMP Check