On 19. apr. 2006, at 20.26, Marc Petitmermet wrote:
Usually one of those processes are the control-process and you
only need to monitor, start and stop that one. It's probably the
one with the lowest pid of the eights. Test by sending this
process the SIGTERM signal to check if it takes down the rest.
Not for nfsd. As I mentioned before these are 8 independent
daemons; there is no parent or control process.
Well, monit cannot handle a multiple pids file as you found out.
You need to either write 8 'check process' tests or much easier,
monitor the port number used by nfs. For instance using something
like this:
check host some.host.name with address localhost
start = ".."
stop = ".."
if failed port 2049 then ...