08-23-2010 10:11 AM
Hi Folks,
I am trying to create an eem applet which triggers on high cpu utilization (detected by erm). The applet should then tftp the output from "show proc cpu sorted" to a tftp server.
I am trying to configure this on a 1841 running 124-24.T3 code
This is my config:
resource policy
policy HighGlobalCPU global
system
cpu total
critical rising 5 falling 2 interval 10
cpu process
critical rising 5 falling 2 interval 10
! I'm not sure whether it is correct to monitor 'cpu total' or 'cpu process'. The rising thresholds are deliberately low to maker testing easier
event manager applet ReportHighCPU
event resource policy "HighGlobalCPU"
action 1.0 cli command "show process cpu sorted 5sec | redirect tftp://192.168.1.1/highCPU$_resource_time_sent.txt"
action 2.0 syslog priority debugging msg "high cpu event detected, output tftp sent"
The problem is that I can't seem to trigger the applet. I have generated enough traffic to push the cpu utilization to over 30% (according to 'show proc cpu'), but the applet does not appear to trigger (no syslog messages appear, and my syslog server does not receive anything).
If anyone can tell me what I've done wrong here I would be very grateful!
Thanks,
Darragh
08-23-2010 12:19 PM
I am just replying off the top of my head but I believe you
need to also add to your conf the line
user global HighGlobalCPU
08-23-2010 12:58 PM
Thanks you so much Gerard! I think that's exactly what I was missing!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide