Article 5AXMQ How can I trigger an alarm over CPU use?

How can I trigger an alarm over CPU use?

by
lucmove
from LinuxQuestions.org on (#5AXMQ)
Of course, the 'top' command tells me how much CPU each process is using.

But 'top' is made for humans to look at.

What if I want some script to check all CPU usage non-interactively and trigger an alarm if any process goes above say, 80%?

TIAlatest?d=yIl2AUoC8zA latest?i=i9d_bzD4vKg:K-X_1crd5E8:F7zBnMy latest?i=i9d_bzD4vKg:K-X_1crd5E8:V_sGLiP latest?d=qj6IDK7rITs latest?i=i9d_bzD4vKg:K-X_1crd5E8:gIN9vFwi9d_bzD4vKg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments