Возможно ли что-то подобное с помощью monit:
check process foo with bar
check process foo2 with bar2
start program = "baz start"
stop program = "baz stop"
В основном я ищу условие «ИЛИ».
Это не совсем условие ИЛИ, которое вы просили, но взгляните на check process <name> matching <regex>
синтаксис.
CHECK PROCESS <unique name> MATCHING <regex>
<regex> is alternative process specification using pattern matching
to process name (command line) from process table instead of pidfile.
Пример:
check process foo_foo2 matching "foo_name|foo2_name"
start program = "baz start"
stop program = "baz stop"