Currently there is no test for number of threads - you can use the "check program" with custom script that will return error if the number of threads go bellow some number. Example of the program test: http://www.mmonit.com/monit/documentation/monit.html#program_status_testing
Regards, Martin On Dec 6, 2012, at 3:27 PM, shiva rkreddy <[email protected]> wrote: > I've another question on whether monit can restart a process based on number > of threads that are running? > For example: A process has 10 threads to start with and then 7 of the > threads have crashed. It needs 5 threads to be running to be considered > healthy. If thread count is less than 5, can monit restart the whole process? > > > Thanks > -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
