28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Discussion</strong><br />

RMON is an SNMP specification that allows an SNMP agent (your router) to proactively<br />

monitor its system health and performance and then send traps to an SNMP<br />

manager. The local SNMP agent compares MIBvalues against predefined thresholds<br />

and generates exception alarms without the need for polling by a central SNMP management<br />

platform. This is an effective mechanism for proactive management, provided<br />

that you have baselined and set the thresholds correctly. RMON also decreases<br />

the amount of traffic between the manager and the router because the SNMP manager<br />

does not always have to poll for information and it allows the manager to get<br />

more timely status reports because the router reports events as they occur.<br />

You can monitor many things. This recipe monitors the router’s backplane temperature.<br />

The backplane is in the center of the router, so the temperature gives you an<br />

idea of whether the router might be overheating. This recipe sets the threshold at 40<br />

degrees Celsius. When this value is exceeded, an RMON event is triggered, a trap is<br />

sent, and the event is logged.<br />

To set up RMON, configure the OID and the threshold values that trigger the alarm<br />

(with the set alarm commands), the router’s response to the alarm (with the set<br />

event commands), and the NMS systems to receive the trap (with the set trap-group<br />

commands).<br />

The alarm’s threshold value can be an actual value, as in these two alarms (set with<br />

the sample-type statement and absolute-value option), or the difference between the<br />

current value and the last value (set with the delta-value option).<br />

Finally, choose a number to identify the alarm and to link the alarm with the event.<br />

Specify the number in the rising-alarm-index statement when monitoring a rising<br />

threshold or in the falling-alarm-index statement when monitoring a falling threshold.<br />

For alarm 1, rising-alarm-index 1 associates event 1 with this alarm.<br />

The event statement hierarchy defines the router’s response to the alarm. In this recipe,<br />

the type log-and-trap statement logs both sets of traps. The community statement<br />

associates the events with the trap group overtemperature, which sends the<br />

traps to the NMS system defined in the targets statement.<br />

When you configure the trap group to handle the RMON event, the category must<br />

be rmon-alarm. The targets are all the NMS systems to receive the trap.<br />

Events are generated only when the threshold is first crossed in any one direction,<br />

not after each sample period. Once the threshold is crossed, no more events are generated<br />

until after the value crosses back into the normal range and again crosses the<br />

threshold. This mechanism considerably reduces the quantity of alarms produced by<br />

the router, making it easier for you to react when alarms do occur. Keep in mind that<br />

because SNMP uses UDP, there is no guarantee of the delivery of the alarm to the<br />

SNMP manager.<br />

Using RMON Traps to Monitor the Router’s Temperature | 151<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!