<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>nowakmarcin.com</title>
	<atom:link href="http://nowakmarcin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nowakmarcin.com</link>
	<description>A place where you can find some info about struggling Gentoo Linux, photography, mountain biking and others</description>
	<lastBuildDate>Wed, 15 Feb 2012 11:09:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Messing with PERL when setting up Collectd-web</title>
		<link>http://nowakmarcin.com/messing-with-perl-when-setting-up-collectd-web/</link>
		<comments>http://nowakmarcin.com/messing-with-perl-when-setting-up-collectd-web/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 19:00:45 +0000</pubDate>
		<dc:creator>Nowak Marcin</dc:creator>
				<category><![CDATA[Gentoo Linux]]></category>
		<category><![CDATA[collectd]]></category>
		<category><![CDATA[collectd-web]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PERL]]></category>

		<guid isPermaLink="false">http://nowakmarcin.com/wordpress/?p=5</guid>
		<description><![CDATA[After a fresh installation of Gentoo I have decided to use Collectd to monitor my system status, so I have emerged it as stated in Gentoo wiki page, than I have also emerged Collectd-web which is a great frontend for &#8230; <a href="http://nowakmarcin.com/messing-with-perl-when-setting-up-collectd-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After a fresh installation of Gentoo I have decided to use Collectd to monitor my system status, so I have emerged it as stated in Gentoo wiki page, than I have also emerged Collectd-web which is a great frontend for Collectd. Here my problems started <img src='http://nowakmarcin.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Collectd-web was working (interface was present) but it displayed no graphs, after checking apache <code>error_log</code> I have found this:</p>
<p><code>[Tue Nov 15 22:35:24 2011] [error] [client *.*.*.*] [Tue Nov 15 22:35:24 2011] collection.modified.cgi: Can't locate HTML/Entities.pm in @INC (@INC contains: /etc/perl /usr/lib64/perl5/site_perl/5.12.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.12.4 /usr/lib64/perl5/vendor_perl/5.12.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.12.4 /usr/lib64/perl5/site_perl /usr/lib64/perl5/vendor_perl /usr/lib64/perl5/5.12.4/x86_64-linux-thread-multi /usr/lib64/perl5/5.12.4 /usr/local/lib/site_perl .) at /var/www/localhost/htdocs/collectd-web/cgi-bin/collection.modified.cgi line 25., referer: [my_host_name]</code></p>
<p>First spot was to emerge PERL again &#8211; no effect&#8230;</p>
<p>Than I have started searching over the Internet. First good tool was <code>perl-cleaner</code>, I had run:</p>
<p><code>perl-cleaner --all</code></p>
<p>which emerged all missing libraries and deleted those not used. After that I have found that I am still missing some modules i.e. <code>URI::Escape</code>, searching around lead me to this site:<br />
<a title="http://forums.slimdevices.com/archive/index.php/t-16975.html" href="http://forums.slimdevices.com/archive/index.php/t-16975.html" target="_blank"> http://forums.slimdevices.com/archive/index.php/t-16975.html</a><br />
so I run</p>
<p><code>cpan URI::Escape</code></p>
<p>and that was all I needed to start Collectd-web displaying data properly</p>
]]></content:encoded>
			<wfw:commentRss>http://nowakmarcin.com/messing-with-perl-when-setting-up-collectd-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making collectd ping plugin work in Collectd-web</title>
		<link>http://nowakmarcin.com/making-collectd-ping-plugin-work-in-collectd-web/</link>
		<comments>http://nowakmarcin.com/making-collectd-ping-plugin-work-in-collectd-web/#comments</comments>
		<pubDate>Mon, 21 Nov 2011 17:59:09 +0000</pubDate>
		<dc:creator>Nowak Marcin</dc:creator>
				<category><![CDATA[Gentoo Linux]]></category>
		<category><![CDATA[collectd]]></category>
		<category><![CDATA[collectd-web]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://nowakmarcin.com/wordpress/?p=3</guid>
		<description><![CDATA[After setting up Collectd and Collectd-web I have started looking for interesting plugins for them. One of them is definitely ping plugin, which is capable of monitoring your Internet connection constantly by simply sending a ping request to selected hosts, &#8230; <a href="http://nowakmarcin.com/making-collectd-ping-plugin-work-in-collectd-web/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After setting up Collectd and Collectd-web I have started looking for interesting plugins for them. One of them is definitely ping plugin, which is capable of monitoring your Internet connection constantly by simply sending a ping request to selected hosts, more about plugin can be fount on Collectd wiki page located here:</p>
<p><a title="http://collectd.org/wiki/index.php/Plugin:Ping" href="http://collectd.org/wiki/index.php/Plugin:Ping" target="_blank">http://collectd.org/wiki/index.php/Plugin:Ping</a></p>
<p>After making plugin work (configuration is pretty simple, but don&#8217;t forget to run collectd as root &#8211; otherwise plugin is not gathering data) I wanted to view my results, unfortunately Collecd-web displayed no graphs for ping data. As I checked corresponding RRD files were updated as all other RRDs. Apache <code>error_log</code> stated:</p>
<p><code>[Sun Nov 06 16:27:06 2011] [error] [client 192.168.44.108] [Sun Nov 6 16:27:06 2011] collection.modified.cgi: RRDs::graph: No DS called 'ping' in '/var/lib/collectd/mnet-proliant/ping/ping-google.com.rrd' at /var/www/localhost/htdocs/collectd-web/cgi-bin/collection.modified.cgi line 838., referer: [my_host_name]</code></p>
<p>So I have manually converted RRD to XML to view what is in there by issuing command:</p>
<p><code>rrdtool dump ping-google.com.rrd &gt; ping-google.com.xml</code> (more on this here <a title="http://oss.oetiker.ch/rrdtool/doc/rrddump.en.html" href="http://oss.oetiker.ch/rrdtool/doc/rrddump.en.html" target="_blank">http://oss.oetiker.ch/rrdtool/doc/rrddump.en.html</a>)</p>
<p>There I have found that Collectd is writing data not as <code>ping</code> but as <code>value</code>. So I have quickly applied corrections to <code>collection.modified.cgi</code> and <code>graphdef.cgi</code> where I have changed definition of ping RRD to:</p>
<p><code>ping =&gt; [<br />
'DEF:ping_avg={file}:value:AVERAGE',<br />
'DEF:ping_min={file}:value:MIN',<br />
'DEF:ping_max={file}:value:MAX',<br />
"AREA:ping_max#$HalfBlue",<br />
"AREA:ping_min#$Canvas",<br />
"LINE1:ping_avg#$FullBlue:Ping",<br />
'GPRINT:ping_min:MIN:%4.1lf ms Min,',<br />
'GPRINT:ping_avg:AVERAGE:%4.1lf ms Avg,',<br />
'GPRINT:ping_max:MAX:%4.1lf ms Max,',<br />
'GPRINT:ping_avg:LAST:%4.1lf ms Last'<br />
],</code></p>
<p><code>ping_droprate =&gt; [<br />
'DEF:ping_avg={file}:value:AVERAGE',<br />
'DEF:ping_min={file}:value:MIN',<br />
'DEF:ping_max={file}:value:MAX',<br />
"AREA:ping_max#$HalfBlue",<br />
"AREA:ping_min#$Canvas",<br />
"LINE1:ping_avg#$FullBlue:Drop rate",<br />
'GPRINT:ping_min:MIN:%4.1lf Min,',<br />
'GPRINT:ping_avg:AVERAGE:%4.1lf Avg,',<br />
'GPRINT:ping_max:MAX:%4.1lf Max,',<br />
'GPRINT:ping_avg:LAST:%4.1lf Last'<br />
],</code></p>
<p><code>ping_stddev =&gt; [<br />
'DEF:ping_avg={file}:value:AVERAGE',<br />
'DEF:ping_min={file}:value:MIN',<br />
'DEF:ping_max={file}:value:MAX',<br />
"AREA:ping_max#$HalfBlue",<br />
"AREA:ping_min#$Canvas",<br />
"LINE1:ping_avg#$FullBlue:StDev",<br />
'GPRINT:ping_min:MIN:%4.1lf ms Min,',<br />
'GPRINT:ping_avg:AVERAGE:%4.1lf ms Avg,',<br />
'GPRINT:ping_max:MAX:%4.1lf ms Max,',<br />
'GPRINT:ping_avg:LAST:%4.1lf ms Last'<br />
],</code></p>
<p>This resulted in correct display of ping statistics and also two others gathered by Collectd</p>
]]></content:encoded>
			<wfw:commentRss>http://nowakmarcin.com/making-collectd-ping-plugin-work-in-collectd-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

