<?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: Munin plugins to graph apache virtual hosts</title>
	<atom:link href="http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts/feed" rel="self" type="application/rss+xml" />
	<link>http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts</link>
	<description></description>
	<lastBuildDate>Thu, 04 Aug 2011 08:27:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Xenon69</title>
		<link>http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts/comment-page-1#comment-3473</link>
		<dc:creator>Xenon69</dc:creator>
		<pubDate>Thu, 04 Aug 2011 08:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.benlumley.co.uk/?p=42#comment-3473</guid>
		<description>Hi,

If you want this very nice plugin works for virtualmin vhosts, you have to replace lines :

define(&#039;LOG_PATH&#039;, &quot;/var/log/apache2/&quot;);
by
define(&#039;LOG_PATH&#039;, &quot;/var/log/virtualmin/&quot;);

and 

exec(sprintf(&quot;find %s -iname *_access.log&quot;, LOG_PATH), $files);
by
exec(sprintf(&quot;find %s -iname *_access_log&quot;, LOG_PATH), $files);

in plugin source files.

it should work...

Fred</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>If you want this very nice plugin works for virtualmin vhosts, you have to replace lines :</p>
<p>define(&#8216;LOG_PATH&#8217;, &#8220;/var/log/apache2/&#8221;);<br />
by<br />
define(&#8216;LOG_PATH&#8217;, &#8220;/var/log/virtualmin/&#8221;);</p>
<p>and </p>
<p>exec(sprintf(&#8220;find %s -iname *_access.log&#8221;, LOG_PATH), $files);<br />
by<br />
exec(sprintf(&#8220;find %s -iname *_access_log&#8221;, LOG_PATH), $files);</p>
<p>in plugin source files.</p>
<p>it should work&#8230;</p>
<p>Fred</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts/comment-page-1#comment-3391</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Sat, 09 Jul 2011 10:13:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.benlumley.co.uk/?p=42#comment-3391</guid>
		<description>Hi, thanks for the feedback.

I was aware of the issue, just not got round to fixing it! :)

I will do.</description>
		<content:encoded><![CDATA[<p>Hi, thanks for the feedback.</p>
<p>I was aware of the issue, just not got round to fixing it! <img src='http://benlumley.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I will do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts/comment-page-1#comment-3062</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 11 Mar 2011 07:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.benlumley.co.uk/?p=42#comment-3062</guid>
		<description>Hi there, just wanted to say thanks heaps for these plugins! They are great. I use them all the time. However there seems to be an outstanding bug in the &quot;calculate_rate&quot; function. 

When the log file it finds is empty it results in a divide by 0 error in the sub and complains in the munin logs. I have a couple of virtual hosts that get configured but not accessed until the client uploads web pages. It causes lots of errors in the munin logs for these scripts.

I fixed this on my sever with a dirty hack that if the value of $age was 0, return 0 and don&#039;t execute : 

return round($num_lines/$ago, 4);

Dunno if there is a more elegent fix for this. But I felt I should let you know. :) 

Thanks again for this plugin. It&#039;s awesome!</description>
		<content:encoded><![CDATA[<p>Hi there, just wanted to say thanks heaps for these plugins! They are great. I use them all the time. However there seems to be an outstanding bug in the &#8220;calculate_rate&#8221; function. </p>
<p>When the log file it finds is empty it results in a divide by 0 error in the sub and complains in the munin logs. I have a couple of virtual hosts that get configured but not accessed until the client uploads web pages. It causes lots of errors in the munin logs for these scripts.</p>
<p>I fixed this on my sever with a dirty hack that if the value of $age was 0, return 0 and don&#8217;t execute : </p>
<p>return round($num_lines/$ago, 4);</p>
<p>Dunno if there is a more elegent fix for this. But I felt I should let you know. <img src='http://benlumley.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Thanks again for this plugin. It&#8217;s awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zeeshan</title>
		<link>http://benlumley.co.uk/2010/02/02/munin-plugins-to-graph-apache-virtual-hosts/comment-page-1#comment-2595</link>
		<dc:creator>Zeeshan</dc:creator>
		<pubDate>Mon, 21 Jun 2010 19:17:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.benlumley.co.uk/?p=42#comment-2595</guid>
		<description>Thanks for these wonderful plugins. I&#039;ll try to use them on my server to monitor my virtual hosts.</description>
		<content:encoded><![CDATA[<p>Thanks for these wonderful plugins. I&#8217;ll try to use them on my server to monitor my virtual hosts.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

