Monit multiple processes with same name

Viewed 532

I'm new to Monit and trying to understand if it offers a way to handle multiple processes of the same name where the PIDs are unknown. My ideal Monit behaviour would be:

Watch every process with the name 'x' and restart any of them for which memory usage exceeds X

If that's not possible, I'd also settle for:

Watch every process with the name 'x' and restart ALL of them if ANY of them's memory usage exceeds X

Most of the Monit examples I see depend on PIDs or expect only one process will have the specified name.

I'm also interested in suggestions of other tools which may be better suited than Monit.

Thanks!

0 Answers
Related