monit-general
[Top][All Lists]
Advanced

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

[monit] Monit Doesn't Execute Start Command


From: Damien Bargiacchi
Subject: [monit] Monit Doesn't Execute Start Command
Date: Fri, 13 Mar 2009 12:18:11 -0700

I have monit configured to monitor some merb instances. They are
actually controlled by another process, but I want monit to restart
them when they start taking up too much memory. The processes aren't
too good at keeping their pid files around so sometimes monit has to
execute something to recreate the pid files, but it never does.

Here's the configuration
check process merb_4009 with pidfile "/var/run/merb.cluster.4009.pid"
every 5 cycles
   start = "/bin/merb-cluster redoworkerpid 9"
   group app
   if cpu > 50% for 2 cycles then exec "/bin/merb-cluster gracefulworker 9"
   if totalmemory > 70 MB for 1 cycles then exec "/bin/merb-cluster
gracefulworker 9"
   if failed port 4009 proto http with timeout 30 seconds for 2 times
within 2 cycles then exec "/bin/merb-cluster stopworker 9"
   alert address@hidden on {timeout}
   depends on merb_cluster

Here's the log:

[EDT Mar 13 14:27:24] error    : 'merb_4009' process is not running
[EDT Mar 13 14:32:28] error    : 'merb_4009' process is not running
[EDT Mar 13 14:37:47] error    : 'merb_4009' process is not running
[EDT Mar 13 14:42:55] error    : 'merb_4009' process is not running
[EDT Mar 13 14:47:56] error    : 'merb_4009' process is not running
[EDT Mar 13 14:53:06] error    : 'merb_4009' process is not running
[EDT Mar 13 14:58:13] error    : 'merb_4009' process is not running

That's every line from that period. Notice monit never tries to
"start" the process.

Any ideas?

I'm using monit version 4.10.1




reply via email to

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