Script that reporting of process of Cpu via email

kobi.l

New Member
Credits
26
hello
i try to find script that reporting me of utilization of cpu in my campus ....i want the server sent me email if the cpu is higer then 85% for 5 sec

and in the script i got i list with the higer cpu process ....

(i try to debug a problem that i have and i need to see who of the process is spofing)

tanks

i have a check point gaia distribution
 

Attachments



JasKinasis

Well-Known Member
Credits
5,067
I'm sorry, but your post is difficult to understand.
I can see that you're trying to get a script working, which will email you when the cpu usage is over 85% for 5 seconds. But it's not entirely clear what the problem is that you are debugging, or which Linux distribution you are using.

Gaia is a firewall isn't it? Not a Linux distribution?!
Your screen-shot doesn't really help - all we can see is that you wrote your post on a Windows 10 computer.

I appreciate that English is a second language and might be difficult for you, but please can you provide some more details about your problem? And some information about which Linux distribution you are using?

The more details you can provide about this problem, the easier it will be for the community to help you.
 

kobi.l

New Member
Credits
26
tanks alot jaskinasis

my distribution linux is Red Hat Enterprise Linux 5.2

I want to know which of the processes utilizes the largest amount of CPU.


My goal is to send an email alerting that the server has passed its 80% CPU with the processes that make the most use of the CPU
 

f33dm3bits

Gold Member
Gold Supporter
Credits
9,106
tanks alot jaskinasis

my distribution linux is Red Hat Enterprise Linux 5.2

I want to know which of the processes utilizes the largest amount of CPU.


My goal is to send an email alerting that the server has passed its 80% CPU with the processes that make the most use of the CPU
I would suggest taking that system offline or migrating to a supported version because RHEL5 is not supported anymore, EOL date was 3-3-2017.
 
Last edited:

Members online


Top