Restart debian server if one specific process has more than 10 seconds have high cpu load

Hi,

could someone give me an example for a debian server script? I need to check a process if the process has a high cpu load (top).
If yes the whole server needs to reboot.

Thats it, nothing more. :wink:
Hope someone could help me.

Regards
woisch

It would be better to find the root cause to the problem and fix it, instead of reboot the whole server. If needed, restart only the process.

Thanks Jotne.

I try to find why but for now this is my only solution for this. Also a process restart did not work. Don`t know why.

So could you please help me with this by now since i found a solution why the process got so high?

Regards
woisch