<?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: HOWTO: use monit to keep Lighttpd and Varnish running</title>
	<atom:link href="http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/feed/" rel="self" type="application/rss+xml" />
	<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/</link>
	<description>look out honey, &#039;cause I&#039;m using technology</description>
	<lastBuildDate>Sat, 11 Feb 2012 04:52:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Vasyl</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-990</link>
		<dc:creator>Vasyl</dc:creator>
		<pubDate>Mon, 29 Sep 2008 02:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-990</guid>
		<description>I made it daemon &lt;code&gt;&quot;set daemon&quot;&lt;/code&gt; in monit.conf and it works OK with that config. Looks strange</description>
		<content:encoded><![CDATA[<p>I made it daemon <code>"set daemon"</code> in monit.conf and it works OK with that config. Looks strange</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasyl</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-995</link>
		<dc:creator>Vasyl</dc:creator>
		<pubDate>Mon, 29 Sep 2008 02:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-995</guid>
		<description>I made it daemon &lt;code&gt;&quot;set daemon&quot;&lt;/code&gt; in monit.conf and it works OK with that config. Looks strange</description>
		<content:encoded><![CDATA[<p>I made it daemon <code>"set daemon"</code> in monit.conf and it works OK with that config. Looks strange</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-989</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Fri, 26 Sep 2008 14:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-989</guid>
		<description>Hey there, I *just* saw this issue at work the other day when I turned on some monit features to monitor some of our websites, and I came across a similar error.  While you have:

if failed host 1.2.3.4 port 80 protocol HTTP request / then restart
    if 5 restarts with 5 cycles then timeout

I&#039;m using:
check host DOMAIN.COM with address xxx.xxx.xxx.xxx
    if failed port 80 protocol http with timeout 45 seconds then alert

I know it&#039;s only a slight syntax change, but that fixed it for me.  Try it out, if it doesn&#039;t fix it let me know and I&#039;ll plugin your syntax on my box and see what it does.  Also, for my nginx block I have more checks that you may want to consider:

check process nginx with pidfile /var/run/nginx.pid
        start program = &quot;/etc/init.d/nginx start&quot;
	stop program  = &quot;/etc/init.d/nginx stop&quot;
        if cpu &gt; 60% for 2 cycles then alert
	if cpu &gt; 80% for 5 cycles then restart
	if totalmem &gt; 200.0 MB for 5 cycles then restart
        if children &gt; 250 then restart
	if loadavg(5min) greater than 10 for 8 cycles then stop

:wq!</description>
		<content:encoded><![CDATA[<p>Hey there, I *just* saw this issue at work the other day when I turned on some monit features to monitor some of our websites, and I came across a similar error.  While you have:</p>
<p>if failed host 1.2.3.4 port 80 protocol HTTP request / then restart<br />
    if 5 restarts with 5 cycles then timeout</p>
<p>I&#8217;m using:<br />
check host DOMAIN.COM with address xxx.xxx.xxx.xxx<br />
    if failed port 80 protocol http with timeout 45 seconds then alert</p>
<p>I know it&#8217;s only a slight syntax change, but that fixed it for me.  Try it out, if it doesn&#8217;t fix it let me know and I&#8217;ll plugin your syntax on my box and see what it does.  Also, for my nginx block I have more checks that you may want to consider:</p>
<p>check process nginx with pidfile /var/run/nginx.pid<br />
        start program = &#8220;/etc/init.d/nginx start&#8221;<br />
	stop program  = &#8220;/etc/init.d/nginx stop&#8221;<br />
        if cpu &gt; 60% for 2 cycles then alert<br />
	if cpu &gt; 80% for 5 cycles then restart<br />
	if totalmem &gt; 200.0 MB for 5 cycles then restart<br />
        if children &gt; 250 then restart<br />
	if loadavg(5min) greater than 10 for 8 cycles then stop</p>
<p>:wq!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-994</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Fri, 26 Sep 2008 14:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-994</guid>
		<description>Hey there, I *just* saw this issue at work the other day when I turned on some monit features to monitor some of our websites, and I came across a similar error.  While you have:

if failed host 1.2.3.4 port 80 protocol HTTP request / then restart
    if 5 restarts with 5 cycles then timeout

I&#039;m using:
check host DOMAIN.COM with address xxx.xxx.xxx.xxx
    if failed port 80 protocol http with timeout 45 seconds then alert

I know it&#039;s only a slight syntax change, but that fixed it for me.  Try it out, if it doesn&#039;t fix it let me know and I&#039;ll plugin your syntax on my box and see what it does.  Also, for my nginx block I have more checks that you may want to consider:

check process nginx with pidfile /var/run/nginx.pid
        start program = &quot;/etc/init.d/nginx start&quot;
	stop program  = &quot;/etc/init.d/nginx stop&quot;
        if cpu &gt; 60% for 2 cycles then alert
	if cpu &gt; 80% for 5 cycles then restart
	if totalmem &gt; 200.0 MB for 5 cycles then restart
        if children &gt; 250 then restart
	if loadavg(5min) greater than 10 for 8 cycles then stop

:wq!</description>
		<content:encoded><![CDATA[<p>Hey there, I *just* saw this issue at work the other day when I turned on some monit features to monitor some of our websites, and I came across a similar error.  While you have:</p>
<p>if failed host 1.2.3.4 port 80 protocol HTTP request / then restart<br />
    if 5 restarts with 5 cycles then timeout</p>
<p>I&#8217;m using:<br />
check host DOMAIN.COM with address xxx.xxx.xxx.xxx<br />
    if failed port 80 protocol http with timeout 45 seconds then alert</p>
<p>I know it&#8217;s only a slight syntax change, but that fixed it for me.  Try it out, if it doesn&#8217;t fix it let me know and I&#8217;ll plugin your syntax on my box and see what it does.  Also, for my nginx block I have more checks that you may want to consider:</p>
<p>check process nginx with pidfile /var/run/nginx.pid<br />
        start program = &#8220;/etc/init.d/nginx start&#8221;<br />
	stop program  = &#8220;/etc/init.d/nginx stop&#8221;<br />
        if cpu &gt; 60% for 2 cycles then alert<br />
	if cpu &gt; 80% for 5 cycles then restart<br />
	if totalmem &gt; 200.0 MB for 5 cycles then restart<br />
        if children &gt; 250 then restart<br />
	if loadavg(5min) greater than 10 for 8 cycles then stop</p>
<p>:wq!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasyl</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-988</link>
		<dc:creator>Vasyl</dc:creator>
		<pubDate>Fri, 26 Sep 2008 04:33:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-988</guid>
		<description>monit 4.9 on Centos 5 (monit from rpmforge) tries to monitor nginx 0.7.17 on the server with IP 1.2.3.4. with file /etc/monit.d/nginx:

check process nginx with pidfile /var/run/nginx.pid
  start program = &quot;/etc/init.d/nginx start&quot;
  stop program = &quot;/etc/init.d/nginx stop&quot;
  if failed host 1.2.3.4 port 80 protocol HTTP request / then restart
  if 5 restarts with 5 cycles then timeout


When trying to start:

# /etc/init.d/monit start
Starting Process Monitor (monit): HTTP error: Server returned status 400
&#039;nginx&#039; failed protocol test [HTTP] at INET[1.2.3.4:80] via TCP
&#039;nginx&#039; trying to restart
&#039;nginx&#039; stop: /etc/init.d/nginx
&#039;nginx&#039; failed to stop

and kills nginx :(

wget http://1.2.3.4/ returns:
# wget http://208.113.97.31
--21:31:49--  http://1.2.3.4/
Connecting to 1.2.3.4... connected.
HTTP request sent, awaiting response... 302
Location: /UnsupportedBrowser?returnUrl= [following]
--21:31:49--  http://1.2.3.4/UnsupportedBrowser?returnUrl=
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `UnsupportedBrowser?returnUrl=.2&#039;

    [                                     ] 1,427       --.-K/s   in 0s

21:31:49 (136 MB/s) - `UnsupportedBrowser?returnUrl=.2&#039; saved [1427]

Maybe something wrong with monit&#039;s http client? Any idea?</description>
		<content:encoded><![CDATA[<p>monit 4.9 on Centos 5 (monit from rpmforge) tries to monitor nginx 0.7.17 on the server with IP 1.2.3.4. with file /etc/monit.d/nginx:</p>
<p>check process nginx with pidfile /var/run/nginx.pid<br />
  start program = &#8220;/etc/init.d/nginx start&#8221;<br />
  stop program = &#8220;/etc/init.d/nginx stop&#8221;<br />
  if failed host 1.2.3.4 port 80 protocol HTTP request / then restart<br />
  if 5 restarts with 5 cycles then timeout</p>
<p>When trying to start:</p>
<p># /etc/init.d/monit start<br />
Starting Process Monitor (monit): HTTP error: Server returned status 400<br />
&#8216;nginx&#8217; failed protocol test [HTTP] at INET[1.2.3.4:80] via TCP<br />
&#8216;nginx&#8217; trying to restart<br />
&#8216;nginx&#8217; stop: /etc/init.d/nginx<br />
&#8216;nginx&#8217; failed to stop</p>
<p>and kills nginx <img src='http://fak3r.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>wget <a href="http://1.2.3.4/" rel="nofollow">http://1.2.3.4/</a> returns:<br />
# wget <a href="http://208.113.97.31" rel="nofollow">http://208.113.97.31</a><br />
&#8211;21:31:49&#8211;  <a href="http://1.2.3.4/" rel="nofollow">http://1.2.3.4/</a><br />
Connecting to 1.2.3.4&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 302<br />
Location: /UnsupportedBrowser?returnUrl= [following]<br />
&#8211;21:31:49&#8211;  <a href="http://1.2.3.4/UnsupportedBrowser?returnUrl" rel="nofollow">http://1.2.3.4/UnsupportedBrowser?returnUrl</a>=<br />
Connecting to 1.2.3.4:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: unspecified [text/html]<br />
Saving to: `UnsupportedBrowser?returnUrl=.2&#8242;</p>
<p>    [                                     ] 1,427       &#8211;.-K/s   in 0s</p>
<p>21:31:49 (136 MB/s) &#8211; `UnsupportedBrowser?returnUrl=.2&#8242; saved [1427]</p>
<p>Maybe something wrong with monit&#8217;s http client? Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasyl</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-993</link>
		<dc:creator>Vasyl</dc:creator>
		<pubDate>Fri, 26 Sep 2008 04:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-993</guid>
		<description>monit 4.9 on Centos 5 (monit from rpmforge) tries to monitor nginx 0.7.17 on the server with IP 1.2.3.4. with file /etc/monit.d/nginx:

check process nginx with pidfile /var/run/nginx.pid
  start program = &quot;/etc/init.d/nginx start&quot;
  stop program = &quot;/etc/init.d/nginx stop&quot;
  if failed host 1.2.3.4 port 80 protocol HTTP request / then restart
  if 5 restarts with 5 cycles then timeout


When trying to start:

# /etc/init.d/monit start
Starting Process Monitor (monit): HTTP error: Server returned status 400
&#039;nginx&#039; failed protocol test [HTTP] at INET[1.2.3.4:80] via TCP
&#039;nginx&#039; trying to restart
&#039;nginx&#039; stop: /etc/init.d/nginx
&#039;nginx&#039; failed to stop

and kills nginx :(

wget http://1.2.3.4/ returns:
# wget http://208.113.97.31
--21:31:49--  http://1.2.3.4/
Connecting to 1.2.3.4... connected.
HTTP request sent, awaiting response... 302
Location: /UnsupportedBrowser?returnUrl= [following]
--21:31:49--  http://1.2.3.4/UnsupportedBrowser?returnUrl=
Connecting to 1.2.3.4:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `UnsupportedBrowser?returnUrl=.2&#039;

    [                                     ] 1,427       --.-K/s   in 0s

21:31:49 (136 MB/s) - `UnsupportedBrowser?returnUrl=.2&#039; saved [1427]

Maybe something wrong with monit&#039;s http client? Any idea?</description>
		<content:encoded><![CDATA[<p>monit 4.9 on Centos 5 (monit from rpmforge) tries to monitor nginx 0.7.17 on the server with IP 1.2.3.4. with file /etc/monit.d/nginx:</p>
<p>check process nginx with pidfile /var/run/nginx.pid<br />
  start program = &#8220;/etc/init.d/nginx start&#8221;<br />
  stop program = &#8220;/etc/init.d/nginx stop&#8221;<br />
  if failed host 1.2.3.4 port 80 protocol HTTP request / then restart<br />
  if 5 restarts with 5 cycles then timeout</p>
<p>When trying to start:</p>
<p># /etc/init.d/monit start<br />
Starting Process Monitor (monit): HTTP error: Server returned status 400<br />
&#8216;nginx&#8217; failed protocol test [HTTP] at INET[1.2.3.4:80] via TCP<br />
&#8216;nginx&#8217; trying to restart<br />
&#8216;nginx&#8217; stop: /etc/init.d/nginx<br />
&#8216;nginx&#8217; failed to stop</p>
<p>and kills nginx <img src='http://fak3r.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>wget <a href="http://1.2.3.4/" rel="nofollow">http://1.2.3.4/</a> returns:<br />
# wget <a href="http://208.113.97.31" rel="nofollow">http://208.113.97.31</a><br />
&#8211;21:31:49&#8211;  <a href="http://1.2.3.4/" rel="nofollow">http://1.2.3.4/</a><br />
Connecting to 1.2.3.4&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 302<br />
Location: /UnsupportedBrowser?returnUrl= [following]<br />
&#8211;21:31:49&#8211;  <a href="http://1.2.3.4/UnsupportedBrowser?returnUrl" rel="nofollow">http://1.2.3.4/UnsupportedBrowser?returnUrl</a>=<br />
Connecting to 1.2.3.4:80&#8230; connected.<br />
HTTP request sent, awaiting response&#8230; 200 OK<br />
Length: unspecified [text/html]<br />
Saving to: `UnsupportedBrowser?returnUrl=.2&#8242;</p>
<p>    [                                     ] 1,427       &#8211;.-K/s   in 0s</p>
<p>21:31:49 (136 MB/s) &#8211; `UnsupportedBrowser?returnUrl=.2&#8242; saved [1427]</p>
<p>Maybe something wrong with monit&#8217;s http client? Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-987</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Thu, 01 May 2008 15:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-987</guid>
		<description>So, from lighty it looks like the error is:

&lt;code&gt;ErrorDocument 400 /error/invalidSyntax.html&lt;/code&gt;

At work I have monit watching Lighttpd without Varnish in the way, so its block in monitrc is this:

&lt;code&gt;check process lighttpd with pidfile /var/run/lighttpd.pid
     start program = &quot;/etc/init.d/lighttpd start&quot;
     stop program  = &quot;/etc/init.d/lighttpd stop&quot;
     if cpu &gt; 60% for 2 cycles then alert
     if cpu &gt; 80% for 5 cycles then restart
     if totalmem &gt; 200.0 MB for 5 cycles then restart
     if children &gt; 250 then restart
     if loadavg(5min) greater than 10 for 8 cycles then stop
     if failed host 127.0.0.1 port 80
           protocol HTTP request /monit_check.php
        timeout 20 seconds
        then restart
     if 3 restarts within 5 cycles then timeout
     depends on lighttpd_bin
     depends on lighttpd_rc
     group system&lt;/code&gt;

So, from your server, can you do something like:

&lt;code&gt;wget http://127.0.0.1&lt;/code&gt;

and get a successful response?  If not, you may want to place a &#039;dummy&#039; file for it to grab (touch /var/www/test.html; chown www-data /var/www/test.html) so it&#039;ll give you a 200 - Success response:

&lt;code&gt;mbglinuxdevsrv01:/etc/monit# wget http://127.0.0.1/test.html
--2008-05-01 10:13:24--  http://127.0.0.1/test.html
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
[...]&lt;/code&gt;

I use a PHP file for monit to check so it can ensure that Fastcgi is still running, since a restart of Lighttpd would restart the Fastcgi process, although I&#039;m going to start running that as a separate process so monit will watch it directly.

Let me know, that should work.</description>
		<content:encoded><![CDATA[<p>So, from lighty it looks like the error is:</p>
<p><code>ErrorDocument 400 /error/invalidSyntax.html</code></p>
<p>At work I have monit watching Lighttpd without Varnish in the way, so its block in monitrc is this:</p>
<p><code>check process lighttpd with pidfile /var/run/lighttpd.pid<br />
     start program = "/etc/init.d/lighttpd start"<br />
     stop program  = "/etc/init.d/lighttpd stop"<br />
     if cpu &gt; 60% for 2 cycles then alert<br />
     if cpu &gt; 80% for 5 cycles then restart<br />
     if totalmem &gt; 200.0 MB for 5 cycles then restart<br />
     if children &gt; 250 then restart<br />
     if loadavg(5min) greater than 10 for 8 cycles then stop<br />
     if failed host 127.0.0.1 port 80<br />
           protocol HTTP request /monit_check.php<br />
        timeout 20 seconds<br />
        then restart<br />
     if 3 restarts within 5 cycles then timeout<br />
     depends on lighttpd_bin<br />
     depends on lighttpd_rc<br />
     group system</code></p>
<p>So, from your server, can you do something like:</p>
<p><code>wget <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a></code></p>
<p>and get a successful response?  If not, you may want to place a &#8216;dummy&#8217; file for it to grab (touch /var/www/test.html; chown www-data /var/www/test.html) so it&#8217;ll give you a 200 &#8211; Success response:</p>
<p><code>mbglinuxdevsrv01:/etc/monit# wget <a href="http://127.0.0.1/test.html" rel="nofollow">http://127.0.0.1/test.html</a><br />
--2008-05-01 10:13:24--  <a href="http://127.0.0.1/test.html" rel="nofollow">http://127.0.0.1/test.html</a><br />
Connecting to 127.0.0.1:80... connected.<br />
HTTP request sent, awaiting response... 200 OK<br />
[...]</code></p>
<p>I use a PHP file for monit to check so it can ensure that Fastcgi is still running, since a restart of Lighttpd would restart the Fastcgi process, although I&#8217;m going to start running that as a separate process so monit will watch it directly.</p>
<p>Let me know, that should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fak3r</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-992</link>
		<dc:creator>fak3r</dc:creator>
		<pubDate>Thu, 01 May 2008 15:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-992</guid>
		<description>So, from lighty it looks like the error is:

&lt;code&gt;ErrorDocument 400 /error/invalidSyntax.html&lt;/code&gt;

At work I have monit watching Lighttpd without Varnish in the way, so its block in monitrc is this:

&lt;code&gt;check process lighttpd with pidfile /var/run/lighttpd.pid
     start program = &quot;/etc/init.d/lighttpd start&quot;
     stop program  = &quot;/etc/init.d/lighttpd stop&quot;
     if cpu &gt; 60% for 2 cycles then alert
     if cpu &gt; 80% for 5 cycles then restart
     if totalmem &gt; 200.0 MB for 5 cycles then restart
     if children &gt; 250 then restart
     if loadavg(5min) greater than 10 for 8 cycles then stop
     if failed host 127.0.0.1 port 80
           protocol HTTP request /monit_check.php
        timeout 20 seconds
        then restart
     if 3 restarts within 5 cycles then timeout
     depends on lighttpd_bin
     depends on lighttpd_rc
     group system&lt;/code&gt;

So, from your server, can you do something like:

&lt;code&gt;wget http://127.0.0.1&lt;/code&gt;

and get a successful response?  If not, you may want to place a &#039;dummy&#039; file for it to grab (touch /var/www/test.html; chown www-data /var/www/test.html) so it&#039;ll give you a 200 - Success response:

&lt;code&gt;mbglinuxdevsrv01:/etc/monit# wget http://127.0.0.1/test.html
--2008-05-01 10:13:24--  http://127.0.0.1/test.html
Connecting to 127.0.0.1:80... connected.
HTTP request sent, awaiting response... 200 OK
[...]&lt;/code&gt;

I use a PHP file for monit to check so it can ensure that Fastcgi is still running, since a restart of Lighttpd would restart the Fastcgi process, although I&#039;m going to start running that as a separate process so monit will watch it directly.

Let me know, that should work.</description>
		<content:encoded><![CDATA[<p>So, from lighty it looks like the error is:</p>
<p><code>ErrorDocument 400 /error/invalidSyntax.html</code></p>
<p>At work I have monit watching Lighttpd without Varnish in the way, so its block in monitrc is this:</p>
<p><code>check process lighttpd with pidfile /var/run/lighttpd.pid<br />
     start program = "/etc/init.d/lighttpd start"<br />
     stop program  = "/etc/init.d/lighttpd stop"<br />
     if cpu &gt; 60% for 2 cycles then alert<br />
     if cpu &gt; 80% for 5 cycles then restart<br />
     if totalmem &gt; 200.0 MB for 5 cycles then restart<br />
     if children &gt; 250 then restart<br />
     if loadavg(5min) greater than 10 for 8 cycles then stop<br />
     if failed host 127.0.0.1 port 80<br />
           protocol HTTP request /monit_check.php<br />
        timeout 20 seconds<br />
        then restart<br />
     if 3 restarts within 5 cycles then timeout<br />
     depends on lighttpd_bin<br />
     depends on lighttpd_rc<br />
     group system</code></p>
<p>So, from your server, can you do something like:</p>
<p><code>wget <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a></code></p>
<p>and get a successful response?  If not, you may want to place a &#8216;dummy&#8217; file for it to grab (touch /var/www/test.html; chown www-data /var/www/test.html) so it&#8217;ll give you a 200 &#8211; Success response:</p>
<p><code>mbglinuxdevsrv01:/etc/monit# wget <a href="http://127.0.0.1/test.html" rel="nofollow">http://127.0.0.1/test.html</a><br />
--2008-05-01 10:13:24--  <a href="http://127.0.0.1/test.html" rel="nofollow">http://127.0.0.1/test.html</a><br />
Connecting to 127.0.0.1:80... connected.<br />
HTTP request sent, awaiting response... 200 OK<br />
[...]</code></p>
<p>I use a PHP file for monit to check so it can ensure that Fastcgi is still running, since a restart of Lighttpd would restart the Fastcgi process, although I&#8217;m going to start running that as a separate process so monit will watch it directly.</p>
<p>Let me know, that should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Herou</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-986</link>
		<dc:creator>Marcus Herou</dc:creator>
		<pubDate>Wed, 30 Apr 2008 07:11:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-986</guid>
		<description>Hi.

Nice article. However my lighttpd instance only throws a 400 error.
monit[9262]: HTTP error: Server returned status 400

My app server is monitored the exact same way as lighttpd but no error.

check process lighttpd with pidfile /var/run/lighttpd.pid
   group root
   start program = &quot;/etc/init.d/lighttpd start&quot;
   stop  program = &quot;/etc/init.d/lighttpd stop&quot;
   if failed host 192.168.10.6 port 80 protocol http
        then restart
        alert XXXX@XXXX with the mail-format { subject: Alarm Webserver is down! }
   if 5 restarts within 5 cycles then timeout

Any ideas ?</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Nice article. However my lighttpd instance only throws a 400 error.<br />
monit[9262]: HTTP error: Server returned status 400</p>
<p>My app server is monitored the exact same way as lighttpd but no error.</p>
<p>check process lighttpd with pidfile /var/run/lighttpd.pid<br />
   group root<br />
   start program = &#8220;/etc/init.d/lighttpd start&#8221;<br />
   stop  program = &#8220;/etc/init.d/lighttpd stop&#8221;<br />
   if failed host 192.168.10.6 port 80 protocol http<br />
        then restart<br />
        alert XXXX@XXXX with the mail-format { subject: Alarm Webserver is down! }<br />
   if 5 restarts within 5 cycles then timeout</p>
<p>Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Herou</title>
		<link>http://fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-991</link>
		<dc:creator>Marcus Herou</dc:creator>
		<pubDate>Wed, 30 Apr 2008 07:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.fak3r.com/2008/02/19/howto-use-monit-to-keep-lighttpd-and-varnish-running/#comment-991</guid>
		<description>Hi.

Nice article. However my lighttpd instance only throws a 400 error.
monit[9262]: HTTP error: Server returned status 400

My app server is monitored the exact same way as lighttpd but no error.

check process lighttpd with pidfile /var/run/lighttpd.pid
   group root
   start program = &quot;/etc/init.d/lighttpd start&quot;
   stop  program = &quot;/etc/init.d/lighttpd stop&quot;
   if failed host 192.168.10.6 port 80 protocol http
        then restart
        alert XXXX@XXXX with the mail-format { subject: Alarm Webserver is down! }
   if 5 restarts within 5 cycles then timeout

Any ideas ?</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>Nice article. However my lighttpd instance only throws a 400 error.<br />
monit[9262]: HTTP error: Server returned status 400</p>
<p>My app server is monitored the exact same way as lighttpd but no error.</p>
<p>check process lighttpd with pidfile /var/run/lighttpd.pid<br />
   group root<br />
   start program = &#8220;/etc/init.d/lighttpd start&#8221;<br />
   stop  program = &#8220;/etc/init.d/lighttpd stop&#8221;<br />
   if failed host 192.168.10.6 port 80 protocol http<br />
        then restart<br />
        alert XXXX@XXXX with the mail-format { subject: Alarm Webserver is down! }<br />
   if 5 restarts within 5 cycles then timeout</p>
<p>Any ideas ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

