monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting the number of instances of a process


From: Lawrence, Wayne
Subject: getting the number of instances of a process
Date: Tue, 24 Apr 2012 10:07:14 +0100

Hi

i have a basic check that looks like this

 check process myprocess
           matching "myprocess"
           start = "/etc/init.d/myprocess start"
           stop  = "/etc/init.d/myprocess stop"

the process concerned doesn't use a pid file but starts a number of identical instances of the process.

is there any way in monit i can check how many instances of the process are running within a check and alert if it drops below that number?

Regards

Wayne





reply via email to

[Prev in Thread] Current Thread [Next in Thread]