<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Monit makes Mongrel play nice!</title>
	<atom:link href="http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Tue, 16 Mar 2010 13:50:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Aninda</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-214092</link>
		<dc:creator>Aninda</dc:creator>
		<pubDate>Fri, 18 Sep 2009 06:01:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-214092</guid>
		<description>ahh ... i see ... i have to exec a script for the failure condition. 

It would be nice though if I could specify a file location to be sent as an email attachment in the mail-format. 

Thanks for your quick reply!</description>
		<content:encoded><![CDATA[<p>ahh &#8230; i see &#8230; i have to exec a script for the failure condition. </p>
<p>It would be nice though if I could specify a file location to be sent as an email attachment in the mail-format. </p>
<p>Thanks for your quick reply!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-214090</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Fri, 18 Sep 2009 05:56:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-214090</guid>
		<description>Aninda, yes you could do that by creating a script to do the necessary work (extract data from log file, prepare email, send email) and then invoking that script as a condition for the event under monit / god / whichever monitoring system you're using.</description>
		<content:encoded><![CDATA[<p>Aninda, yes you could do that by creating a script to do the necessary work (extract data from log file, prepare email, send email) and then invoking that script as a condition for the event under monit / god / whichever monitoring system you&#8217;re using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aninda</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-214089</link>
		<dc:creator>Aninda</dc:creator>
		<pubDate>Fri, 18 Sep 2009 05:29:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-214089</guid>
		<description>Very nice!
Would it also be possible to send a mongrel log file as an attachment to the alert email?

How could I do something like that?

Thanks.</description>
		<content:encoded><![CDATA[<p>Very nice!<br />
Would it also be possible to send a mongrel log file as an attachment to the alert email?</p>
<p>How could I do something like that?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Trinh</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-181493</link>
		<dc:creator>Chris Trinh</dc:creator>
		<pubDate>Thu, 02 Apr 2009 06:25:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-181493</guid>
		<description>Thank you for the great article/tut! I've learned quite a few new things from it. I just want to add you should probably do this instead after setting up a mongrel_cluster.

start program = "/usr/bin/mongrel_rails cluster::start -C /home/yourapp/config/mongrel_cluster.yml --clean --only 9000" 
stop program = "/usr/bin/mongrel_rails cluster::stop -C /home/yourapp/config/mongrel_cluster.yml --clean --only 9000" 

For every port/process in your mongrel cluster. Other than that everything else works like a charm. You do need to have the lastest version of mongrel_cluster to use the option --clean. This helps clean out those pesky rouge pid files store in your tmp. For whatever reason that they still persist in the tmp/pid. Its not wise but I tested monit out by "kill -9" processes in the cluster one at a time, and watch it bring it back to life, all the while giving me alerts =). 

I'm fairly new to RoR so my understanding of all this maybe be hazardous to your production sever.</description>
		<content:encoded><![CDATA[<p>Thank you for the great article/tut! I&#8217;ve learned quite a few new things from it. I just want to add you should probably do this instead after setting up a mongrel_cluster.</p>
<p>start program = &#8220;/usr/bin/mongrel_rails cluster::start -C /home/yourapp/config/mongrel_cluster.yml &#8211;clean &#8211;only 9000&#8243;<br />
stop program = &#8220;/usr/bin/mongrel_rails cluster::stop -C /home/yourapp/config/mongrel_cluster.yml &#8211;clean &#8211;only 9000&#8243; </p>
<p>For every port/process in your mongrel cluster. Other than that everything else works like a charm. You do need to have the lastest version of mongrel_cluster to use the option &#8211;clean. This helps clean out those pesky rouge pid files store in your tmp. For whatever reason that they still persist in the tmp/pid. Its not wise but I tested monit out by &#8220;kill -9&#8243; processes in the cluster one at a time, and watch it bring it back to life, all the while giving me alerts =). </p>
<p>I&#8217;m fairly new to RoR so my understanding of all this maybe be hazardous to your production sever.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Monit and Mongrel - betweenGo</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-159939</link>
		<dc:creator>Monit and Mongrel - betweenGo</dc:creator>
		<pubDate>Mon, 12 Jan 2009 21:06:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-159939</guid>
		<description>[...] by Frank Kim on May.27, 2008, under Ruby on Rails This post about Monit and Mongrel is based on this fantastic post, Monit makes Mongrel play nice! [...]</description>
		<content:encoded><![CDATA[<p>[...] by Frank Kim on May.27, 2008, under Ruby on Rails This post about Monit and Mongrel is based on this fantastic post, Monit makes Mongrel play nice! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mongrel freezing - monitoring tools &#171; Vlad Zloteanu&#8217;s Technical Blog</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-154633</link>
		<dc:creator>Mongrel freezing - monitoring tools &#171; Vlad Zloteanu&#8217;s Technical Blog</dc:creator>
		<pubDate>Fri, 26 Dec 2008 12:58:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-154633</guid>
		<description>[...] http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/ - The Monit project, described with a small tutorial [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/" rel="nofollow">http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/</a> - The Monit project, described with a small tutorial [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-153329</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Fri, 19 Dec 2008 13:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-153329</guid>
		<description>Marcelo, you might want to try the monit newsgroup, it sounds like a debugging question. Have you tried running monit in 'verbose' mode to see more details?</description>
		<content:encoded><![CDATA[<p>Marcelo, you might want to try the monit newsgroup, it sounds like a debugging question. Have you tried running monit in &#8216;verbose&#8217; mode to see more details?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcelo Marqueti</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-152464</link>
		<dc:creator>Marcelo Marqueti</dc:creator>
		<pubDate>Sun, 14 Dec 2008 16:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-152464</guid>
		<description>Hi,
I tring to use monit, I can start and stop the mongrel with monit with this command line:

check process mongrel_3001 with pidfile /home/mongrel/testmongrel/tmp/pids/mongrel.3001.pid

        start program = "/usr/bin/mongrel_rails cluster::start -C /etc/mongrel_cluster/testmongrel.yml --clean"
        stop program = "/usr/bin/mongrel_rails cluster::stop -C /etc/mongrel_cluster/testmongrel.yml --clean"

But the error message I get this error yet 'mongrel_3001' failed to start.
The servers starts, but the monit daemon dont start.
I try monit status and I get a error, the daemon not running.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I tring to use monit, I can start and stop the mongrel with monit with this command line:</p>
<p>check process mongrel_3001 with pidfile /home/mongrel/testmongrel/tmp/pids/mongrel.3001.pid</p>
<p>        start program = &#8220;/usr/bin/mongrel_rails cluster::start -C /etc/mongrel_cluster/testmongrel.yml &#8211;clean&#8221;<br />
        stop program = &#8220;/usr/bin/mongrel_rails cluster::stop -C /etc/mongrel_cluster/testmongrel.yml &#8211;clean&#8221;</p>
<p>But the error message I get this error yet &#8216;mongrel_3001&#8242; failed to start.<br />
The servers starts, but the monit daemon dont start.<br />
I try monit status and I get a error, the daemon not running.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nash Kabbara</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-125408</link>
		<dc:creator>Nash Kabbara</dc:creator>
		<pubDate>Sat, 06 Sep 2008 19:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-125408</guid>
		<description>Referring to the patch.
 unless `ps axo pid= &#124; grep #{pid} &#124; grep -v grep`.length &gt; 0 is safer.

ps ax alone will include the name of all processes which could have arguments that include the pid number.</description>
		<content:encoded><![CDATA[<p>Referring to the patch.<br />
 unless `ps axo pid= | grep #{pid} | grep -v grep`.length &gt; 0 is safer.</p>
<p>ps ax alone will include the name of all processes which could have arguments that include the pid number.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D. Rothlisberger</title>
		<link>http://www.igvita.com/2006/11/07/monit-makes-mongrel-play-nice/comment-page-1/#comment-105345</link>
		<dc:creator>D. Rothlisberger</dc:creator>
		<pubDate>Mon, 07 Jul 2008 14:48:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/11/07/monit-makes-mongrel-play-nice/#comment-105345</guid>
		<description>If you are trying to configure monit to start your mongrels and it simply won't (with no complaints from monit) check your mongrel logs.

I had to set my monit config's start line to something like this:
&lt;code&gt;start = "/usr/bin/env PATH=$PATH:/usr/local/bin HOME=/home/user /usr/local/bin/mongrel_rails cluster::start -C /home/user/path/to/app/config/mongrel_cluster.yml --only 8000"&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>If you are trying to configure monit to start your mongrels and it simply won&#8217;t (with no complaints from monit) check your mongrel logs.</p>
<p>I had to set my monit config&#8217;s start line to something like this:<br />
<code>start = "/usr/bin/env PATH=$PATH:/usr/local/bin HOME=/home/user /usr/local/bin/mongrel_rails cluster::start -C /home/user/path/to/app/config/mongrel_cluster.yml --only 8000"</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
