cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
601
Views
0
Helpful
1
Replies

event manager help

farshid_sh
Level 1
Level 1

hello experts

i need to make an event manager to send first 10 lines of "show process cpu" with email to me, when cpu process 5 min goes above 70%.

can u help please?

1 Accepted Solution

Accepted Solutions

smehrnia
Level 7
Level 7

Hi there,

I think you have to use this object (cmpcputotal5minrev) for this application, with the following script:

event manager applet CPU5min

!

event ioswdsysmon sub1 cpu-proc taskname "cmpcputotal5minrev" op gt val 70 per 60

!

action 10 cli comman "enable"

action 20 cli command "show process cpu | inc ^C|^_P|^___[1-8]"

action 30 mail server [ip address] to [you@noc.com] from [router@me.com] subject "HIGH PROCESS Percent" body "$_cli_result"

you have to replace the addresses and with no [ ] n can change the email subject, it's just an example.

Hope it Helps,

Soroush.

Hope it Helps!

Soroush.

View solution in original post

1 Reply 1

smehrnia
Level 7
Level 7

Hi there,

I think you have to use this object (cmpcputotal5minrev) for this application, with the following script:

event manager applet CPU5min

!

event ioswdsysmon sub1 cpu-proc taskname "cmpcputotal5minrev" op gt val 70 per 60

!

action 10 cli comman "enable"

action 20 cli command "show process cpu | inc ^C|^_P|^___[1-8]"

action 30 mail server [ip address] to [you@noc.com] from [router@me.com] subject "HIGH PROCESS Percent" body "$_cli_result"

you have to replace the addresses and with no [ ] n can change the email subject, it's just an example.

Hope it Helps,

Soroush.

Hope it Helps!

Soroush.
Review Cisco Networking for a $25 gift card