09-07-2017 05:09 PM - edited 03-08-2019 11:57 AM
Hello
I am monitoring the CPU using EEM in WS-C4510R+E
WS-C4510R+E's supervior engine is "WS-X45-SUP8-E" and IOS is cat4500es8-universalk9.SPA.03.03.01.XO.151-1.XO1.bin.
I set it as follows.
process cpu threshold type total rising 10 interval 5
event manager applet CPU_Monitor
event syslog pattern ".*SYS-1-CPURISINGTHRESHOLD.*"
action 0.0 set filename "cpu_log.txt"
action 1.0 cli command "enable"
action 1.1 cli command "show clock | append bootflash:cpu_log.txt"
action 1.2 cli command "term leng 0"
action 1.3 cli command "show proc cpu sort | append bootflash:cpu_log.txt"
action 1.4 cli command "term leng 45"
end
But not occur syslog "SYS-1-CPURISINGTHRESHOLD"
therefore EEM is not operating .. what is the problem ???
Help me .. plz
09-08-2017 12:44 AM
Hello,
possibly the rising threshold you configured (10) is too low; also, change the syslog match pattern.
Change your config to the one below (changes marked in bold):
process cpu threshold type total rising 60 interval 5 falling 30 interval 5
event manager applet CPU_Monitor
event syslog pattern "SYS-1-CPURISINGTHRESHOLD"
action 0.0 set filename "cpu_log.txt"
action 1.0 cli command "enable"
action 1.1 cli command "show clock | append bootflash:cpu_log.txt"
action 1.2 cli command "term leng 0"
action 1.3 cli command "show proc cpu sort | append bootflash:cpu_log.txt"
action 1.4 cli command "term leng 45"
end
This generates a syslog message every time the CPU usage exceeds 60% for 5 or more seconds and falls below 30%
09-10-2017 04:45 PM
Thank you for your reply. ^^
Is there a possibility that the syslog message is not generated because the set rising threshold value is too low?
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