07-09-2012 06:39 AM - edited 03-04-2019 04:54 PM
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?
Solved! Go to Solution.
07-09-2012 06:55 AM
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.
07-09-2012 06:55 AM
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.
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