A guide on how to monitor Juniper EX switches using SNMP and Opsview.
You are here
Monitoring Switches and Routers using SNMP
This post assumes a basic knowledge of SNMP and describes MIB-II OIDs that are handy for monitoring network devices - mainly switches and routers. These OIDs should be present on all SNMP capable devices.
String containing system name, if configured. Useful for working out which device you are querying.
String containing system location, if configured. Again, useful for working out which device you are querying.
System uptime in 1/100 of a second. Useful for detecting recently restarted equipment. This counter is actually from the time SNMP was started but usually this is analogous to system uptime.
NOTE: For the following OIDs <int> is a integer corresponding to the interface number. So to find the description of interface three you need to query ifDescr.3
String containing interface description, eg:
Similar to ifDescr Gives more specific technical information on interface. Eg:
A full list of interface types can be found here:
Speed of interface in bits per second.
Operational status of interface – up or down. Whether the interface is actually connected or not.
Administrative status of interface - whether the interface has been configured to be up or down. (For Cisco: shutdown / no shutdown)
Number of inbound unicast packets received. An entry also exists for outbound packets: ifOutUcastPkts. For traffic statistics it is necessary to monitor the change in this value over time.
Total packet errors for this interface. Again, an equivalent entry also exists for outbound packets: ifOutErrors.
Total number of received IP packets
Inbound IP packets discarded because of errors in header.
Inbound Ip packets discarded because of addressing issues.
Inbound IP packets discarded for other reasons (not header or address)
No route to host. High values indicate a routing issue.
And that is just about it...
More like this
This guide shows you how to run an SNMP walk in Opsview.
A complete guide on how to set up SNMPv3 traps.