EEM applet that triggers on high CPU utilization

Unanswered Question
Aug 23rd, 2010

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


    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://$_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!



I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
GERARD PUOPLO Mon, 08/23/2010 - 12:19

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

darragh long Mon, 08/23/2010 - 12:58

Thanks you so much Gerard!   I think that's exactly what I was missing!


This Discussion