On Feb 21, 9:23 pm, "Rob Sanheim" <[EMAIL PROTECTED]> wrote:
> On 2/20/07, Charles Brian Quinn <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > We use both monit and nagios -- I find nagios hard to setup, every
> > time, but it sure does work well.  On the purely rails and mongrel
> > side of things, I use a custom capistrano task to setup monit along
> > with mongrel_cluster to manage mongrels.  It looks a little something
> > like this:
>
> > desc "Setup monit daemon monitoring"
> > task :setup_monit do
>
> >   monit_configuration = render :template => <<-EOF
> > # This monit configuration was generated dynamically
> > #
> > EOF
>
> >   (0..mongrel_servers-1).each do |server|
> >     monit_configuration +=<<-EOF
> > check process mongrel-#{mongrel_start_port + server} with pidfile
> > #{deploy_to}/current/log/mongrel.#{mongrel_start_port + server}.pid
> >   group mongrel
> >   start program = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails
> > start -d -e production -p #{mongrel_start_port + server} -a 127.0.0.1
> > -l #{deploy_to}/current/log/mongrel.log -P
> > #{deploy_to}/shared/log/mongrel.#{mongrel_start_port + server}.pid -c
> > #{deploy_to}/current"
> >   stop program  = "/usr/local/bin/ruby /usr/local/bin/mongrel_rails
> > stop -P #{deploy_to}/shared/log/mongrel.#{mongrel_start_port +
> > server}.pid"
> >   if totalmem > 100.0 MB for 5 cycles then restart
> >   if failed port #{mongrel_start_port + server} protocol http with
> > timeout 10 seconds then restart
>
> > EOF
> >   end
>
> >   put monit_configuration, "/etc/monit.d/rails.conf"
>
> > end
>
> > You'll need to add the appropriate --user and --group in there too,
> > otherwise they start back up as root.  I've been experimenting with
> > that timeout -- it's pretty low...  Also probably could use the
> > addition of Bradley Taylor's mongrel_cluster --cleanup with single
> > mongrels specified....
>
> > Let us (rails-deployment) know what you go for.
>
> > shameless plug -- I also use heartbeat for simple monitoring of my
> > site and making sure important rails actions are still responding in a
> > timely manner:  http://heartbeat.highgroove.com/
>
> > cheers
> > --
> > Charles Brian Quinn
> > self-promotion:www.seebq.com
> > highgroove studios:www.highgroove.com
> > slingshot hosting:www.slingshothosting.com
> > main: 678.389.9462  fax: 678.826.0969
>
> > Ruby on Rails Bootcamp at the Big Nerd Ranch
> > Intensive Ruby on Rails Training:
> >http://www.bignerdranch.com/classes/ruby.shtml
>
> Thanks for the advice here...we have nagios installed, just not
> configured at all yet.
>
> Also, I *knew* someone had developed a very simple monitoring app like
> Heartbeat, I just couldn't remember the name.  Thanks for reminding me
> off it before I went a wrote something myself =).  It seems the
> Railsday SVN doesn't work anymore, is the code still available and
> open to play with or extend?
>
> - Rob

Big Sister <http://bigsister.graeff.com/> is a simpler, but easier to
configure option. It keeps history by default, I think, and it runs on
port 1984, which I like.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to