Another Way to Generate SNMP Trap on High CPU Load
When testing the ERM functionality that together with an EEM applet generates SNMP traps whenever the CPU load exceeds predefined thresholds, I started to wonder what the snmp-server enable traps cpu threshold command does.
After lenghty conversation with uncle Google and Cisco documentation, I found that there's another way to detect and report high CPU load in Cisco IOS: the CPU threshold notification introduced in IOS release 12.3T.
To use this feature, you have to configure the thresholds with the process cpu threshold configuration command and enable related SNMP traps with the snmp-server enable traps cpu threshold. For example, to send SNMP traps whenever the total CPU load measured over a 30-second interval exceeds 40%, use the following configuration:
snmp-server enable traps cpu threshold
process cpu threshold type total rising 40 interval 30
http://www.itcertnotes.com/2011/05/nx-os-cpu-thresholding-snmp-trap-rmon.html
Below is excerpted from OReilly - Cisco IOS Cookbook 2nd Edition.
"IOS includes some extremely helpful but seldom-used remote monitoring (RMON) functionality."