ā09-05-2022 09:30 PM
Hi Everyone.
I just found CPU core 01 spikes many time on C4506-E.
Can I make a EEM Script and use iod 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 for collect logs during CPU spikes on CPU 01?
ā09-05-2022 11:43 PM
Hello,
here is a script that should work. You might need to define your own entry-val and poll interval values.
event manager applet CPU_MON
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type next entry-op le entry-val 10 poll-interval 1
action 1.0 cli command "enable"
action 2.0 info type snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type next
action 3.0 syslog msg "CPU Spike on Core 01 = $_info_snmp_value"
ā09-05-2022 11:55 PM
Hi Georg
Thank you for your answer. Currently I have installed and define script work well with entry-val 10 and then I adjusted to 70, but script doesn't collect logs when CPU core 1 spike over 70% and core 0 running 40%.
I'm not sure 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 is average between core 0 and core 1.
ā09-06-2022 12:06 AM
Hello,
the OID looks like the correct one.
I changed the script a bit (see below), can you post the one you are actually using ?
event manager applet CPU_MON
event snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact entry-op ge entry-val 70 poll-interval 1
action 1.0 cli command "enable"
action 2.0 info type snmp oid 1.3.6.1.4.1.9.9.109.1.1.1.1.3.1 get-type exact
action 3.0 syslog msg "CPU Spike on Core 01 = $_info_snmp_value"
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