[Slightly OT] backgroundrb monit config

Anyone have a a good monit config section for backgroundrb?

I’m thinking something like this:

check process backgroundrb with pidfile
/var/www/apps/foo/current/log/backgroundrb.pid
start program = “/var/www/apps/foo/current/script/backgroundrb start”
stop program = “/var/www/apps/foo/current/script/backgroundrb stop”
if failed host 127.0.0.1 port 2000 then restart
if 5 restarts within 5 cycles then timeout

Problem is the port test fails - I thought 2000 is the default…

Thanks,


Zack C.
http://depixelate.com

On May 1, 2007, at 2:03 PM, Zack C. wrote:

if failed host 127.0.0.1 port 2000 then restart
if 5 restarts within 5 cycles then timeout

Problem is the port test fails - I thought 2000 is the default…

Thanks,


Zack C.
http://depixelate.com

Zack-

It depends on what version fo the plugin you are using. The 0.2.x
branch uses 2000 by default but it also uses unix domain sockets by
default. So it really is not listening on any port, its using socket
files to do its communicating. I havent gotten monit port checking to
work with bdrb so I just monito it for memory and cpu and uptime.

Cheers-
– Ezra Z.
– Lead Rails Evangelist
[email protected]
– Engine Y., Serious Rails Hosting
– (866) 518-YARD (9273)

if 5 restarts within 5 cycles then timeout

    It depends on what version fo the plugin you are using. The 0.2.x

branch uses 2000 by default but it also uses unix domain sockets by
default. So it really is not listening on any port, its using socket
files to do its communicating. I havent gotten monit port checking to
work with bdrb so I just monito it for memory and cpu and uptime.

Cheers-
– Ezra Z.

Ezra,

Thanks - I had read about 0.2.x using domain sockets but had
promptly forgot when updating my monit config.

Thanks,


Zack C.
http://depixelate.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs