! ! version v_02 / 28.9.2008 / packetlevel.ch ! event manager applet disable_something ! --- 1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 gives the cpu utilization using 1 min interval ! --- trigger event when cpu utilization hits 75% and starts monitoring (re-arms) ! --- again when it drops below 40% ! --- SNMP polling interval is set to 60 secs event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 get-type exact entry-op ge entry-val 75 exit-op le exit-val 40 poll-interval 60 ! --- logs a message action 10 syslog priority notifications msg "Disabling Something" ! --- disable something action 15 cli command "enable" action 20 cli command "config t" action 25 cli command "no SOMETHING" action 30 cli command "end" event manager applet enable_something ! --- 1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 gives the cpu utilization using 1 min interval ! --- trigger event when cpu utilization is below 40% and starts monitoring (re-arms) ! --- again when it rises to 75% ! --- SNMP polling interval is set to 60 secs event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.4.1 get-type exact entry-op le entry-val 40 exit-op ge exit-val 75 poll-interval 60 ! --- logs a message action 10 syslog priority notifications msg "Re-enabling Something" ! --- re-enable something action 15 cli command "enable" action 20 cli command "config terminal" action 25 cli command "ip SOMETHING" action 30 cli command "end"