<?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>Robert Accettura&#039;s Fun With Wordage &#187; rrdtool</title>
	<atom:link href="http://robert.accettura.com/blog/tag/rrdtool/feed/" rel="self" type="application/rss+xml" />
	<link>http://robert.accettura.com</link>
	<description>Robert Accettura&#039;s Personal Blog on Web Development and Tech</description>
	<lastBuildDate>Thu, 09 Feb 2012 01:43:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://robert.accettura.com/?pushpress=hub'/>
<cloud domain='robert.accettura.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Remove Spikes From RRDtool Graphs</title>
		<link>http://robert.accettura.com/blog/2009/10/24/remove-spikes-from-rrdtool-graphs/</link>
		<comments>http://robert.accettura.com/blog/2009/10/24/remove-spikes-from-rrdtool-graphs/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 03:24:46 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[rrdtool]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=3004</guid>
		<description><![CDATA[I use RRDtool to make graphs on various things I monitor like server stats, network stats and it does a relatively good job. My one (big) complaint is that when you restart you occasionally see these gigantic spikes that completely &#8230; <a href="http://robert.accettura.com/blog/2009/10/24/remove-spikes-from-rrdtool-graphs/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I use RRDtool to make graphs on various things I monitor like server stats, network stats and it does a relatively good job.  My one (big) complaint is that when you restart you occasionally see these gigantic spikes that completely mess up the data.  I&#8217;ve even seen spikes larger than what the system can technically handle.</p>
<p>Nobody mentioned there&#8217;s a <code>removespikes.pl</code> script (<a href="http://oss.oetiker.ch/rrdtool/pub/contrib/removespikes.tar.gz">download</a>) that will remove these outliers from your rrds.  I put together a quick shell script to make it quick for when I need to run it again:</p>
<pre>

!/bin/sh

for i in /path/to/graphs/rrd/*;
do
        perl removespikes.pl $i;
done;
</pre>
<p>If you have a ton of graphs a quick shell script to iterate through the directly may be quicker.  If you only have a handful like me, no big deal.</p>
<p>Keep the script around for the next time you have spikes to deal with.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=3004#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2009/10/20479c7.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2009/10/24/remove-spikes-from-rrdtool-graphs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling RRDtool 1.3.x On Mac OS X</title>
		<link>http://robert.accettura.com/blog/2009/01/03/compiling-rrdtool-13x-on-mac-os-x/</link>
		<comments>http://robert.accettura.com/blog/2009/01/03/compiling-rrdtool-13x-on-mac-os-x/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 02:11:23 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[cairo]]></category>
		<category><![CDATA[glib]]></category>
		<category><![CDATA[mac-os-x]]></category>
		<category><![CDATA[pango]]></category>
		<category><![CDATA[pixman]]></category>
		<category><![CDATA[rrdtool]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=2289</guid>
		<description><![CDATA[I&#8217;ve recently been trying to upgrade RRDtool to 1.3.x as I&#8217;ve previously been using 1.2.x. New in 1.3 is moving to Cairo graphics, which is pretty cool and provides much better anti-aliased text. MMAP IO should also help since I &#8230; <a href="http://robert.accettura.com/blog/2009/01/03/compiling-rrdtool-13x-on-mac-os-x/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been trying to upgrade RRDtool to <a href="http://oss.oetiker.ch/rrdtool-trac/wiki/RRDtool13">1.3.x</a> as I&#8217;ve previously been using 1.2.x.  New in 1.3 is moving to Cairo graphics, which is pretty cool and provides much better anti-aliased text.  MMAP IO should also help since I run it on an old box.  It&#8217;s a worthwhile upgrade.</p>
<p><span id="more-2289"></span></p>
<p>Unfortunately the <a href="http://oss.oetiker.ch/rrdtool/doc/rrdbuild.en.html">build directions</a> for Mac OS X are lacking (they don&#8217;t really exist).  Building the dependencies didn&#8217;t really work for me.  For anyone who wants to follow this, note that these are <em>changes</em> to the instructions, not replacements.  It doesn&#8217;t discuss everything.  I have only done this on Mac OS X 10.4.11.  I have no idea if this works on any other version, though I suspect 10.5 will work fine.</p>
<p>For starters I used the following <code>LDFLAGS</code>:</p>
<pre>
LDFLAGS="-Wl,-blibpath:${INSTALL_DIR}/lib"
</pre>
<p>I&#8217;m not sure if <code>-Wl</code> is necessary or not, but I don&#8217;t think it&#8217;s harmful.</p>
<p>In general the directions listed on the build page are pretty strait forward and work fine on Mac OS X but I did encounter an issue once I started to compile Pango 1.17.5:</p>
<pre>
 gcc -DHAVE_CONFIG_H -I. -I.. -DG_LOG_DOMAIN=\"Pango\" -DPANGO_ENABLE_BACKEND -DPANGO_ENABLE_ENGINE -DSYSCONFDIR=\"/usr/local/rrdtool-1.3.5/etc\" -DLIBDIR=\"/usr/local/rrdtool-1.3.5/lib\" -I.. -DPANGO_ENABLE_DEBUG -D_REENTRANT -I/usr/local/rrdtool-1.3.5/include/glib-2.0 -I/usr/local/rrdtool-1.3.5/lib/glib-2.0/include -I/usr/local/rrdtool-1.3.5/include/cairo -I/usr/local/rrdtool-1.3.5/include/freetype2 -I/usr/local/rrdtool-1.3.5/include -I/usr/local/rrdtool-1.3.5/include/libpng12 -I/usr/local/rrdtool-1.3.5/include/pixman-1 -I/usr/local/rrdtool-1.3.5/include -I/usr/local/rrdtool-1.3.5/include/freetype2 -I/usr/local/rrdtool-1.3.5/include -xobjective-c -O3 -fPIC -Wall -MT libpangocairo_1_0_la-pangocairo-fontmap.lo -MD -MP -MF .deps/libpangocairo_1_0_la-pangocairo-fontmap.Tpo -c pangocairo-fontmap.c  -fno-common -DPIC -o .libs/libpangocairo_1_0_la-pangocairo-fontmap.o
In file included from pangocairo-fontmap.c:29:
pangocairo-atsui.h:27:25: error: cairo-atsui.h: No such file or directory
make[4]: *** [libpangocairo_1_0_la-pangocairo-fontmap.lo] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
</pre>
<p>After some experimentation I found that I had to update to a newer version of Pango.  Which needs a newer version of GLib and Cairo.  Which requires a newer version of Pixman.  You&#8217;ve got to love how that cascades.  Here&#8217;s what I changed:</p>
<h3>Pixman</h3>
<p>I ended up using <a href="http://www.cairographics.org/releases/pixman-0.13.2.tar.gz">Pixman 0.13.2</a> and doing:</p>
<pre>
tar -xzf pixman-0.13.2.tar.gz
cd pixman-0.13.2
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
make
make install
</pre>
<h3>Cairo</h3>
<p>Then I installed <a href="http://www.cairographics.org/releases/cairo-1.8.6.tar.gz">Cairo 1.8.6</a> using:</p>
<pre>
tar -xzf cairo-1.8.6.tar.gz
cd cairo-1.8.6
./configure --prefix=$INSTALL_DIR --enable-xlib=no --enable-xlib-xrender=no --enable-win32=no  --enable-quartz=yes --enable-quartz-font=yes CFLAGS="-O3 -fPIC"
make
make install
</pre>
<p>I modified a few configure flags to use quartz though I left <code>--enable-quartz-image</code> off because it&#8217;s experimental as of 1.8.6.  Also some of the flags changed slightly between versions (xlib-render is now xlib-xrender).</p>
<h3>GLib</h3>
<p>I then upgraded <a href="http://ftp.gnome.org/pub/gnome/sources/glib/2.18/glib-2.18.0.tar.gz">GLib to 2.18</a>:</p>
<pre>
tar -xzf glib-2.18.tar.gz
cd glib-2.18
./configure --prefix=$INSTALL_DIR CFLAGS="-O3 -fPIC"
make
make install
</pre>
<p>This took forever to build, but it worked fine.</p>
<h3>Pango</h3>
<p>I then finally installed <a href="http://ftp.gnome.org/pub/GNOME/sources/pango/1.22/pango-1.22.4.tar.gz">Pango 1.22.4</a>:</p>
<pre>
tar -xzf pango-1.22.4.tar.gz
cd pango-1.22.4
./configure --prefix=$INSTALL_DIR --disable-tcl --disable-python
make
make install
</pre>
<p>If for some reason Pango doesn&#8217;t include Cairo as it&#8217;s backend like this when <code>./configure</code> ends:</p>
<pre>
configuration:
        backends: Cairo FreeType X
</pre>
<p>Try using the following statements first:</p>
<pre>
CAIRO_CFLAGS="-I=/usr/local/rrdtool-1.3.5/include/cairo"
CAIRO_LIBS=/usr/local/rrdtool-1.3.5/lib/
</pre>
<p>Then run <code>./configure</code> again.</p>
<p>Then compile RRDtool itself by following the directions as normal.  This worked fine for me.  </p>
<p>Cascading dependencies suck.  There may have been an easier fix to my problem, but I wasn&#8217;t able to find it.  Simply updating to newer versions of these libraries seemed like the best solution.  That said, these aren&#8217;t officially sanctioned versions by the RRDtool team.  Be warned.</p>
<p>Good luck to anyone else who tries this.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=2289#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2009/01/43351f7.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2009/01/03/compiling-rrdtool-13x-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Goodbye MRTG</title>
		<link>http://robert.accettura.com/blog/2008/06/15/goodbye-mrtg/</link>
		<comments>http://robert.accettura.com/blog/2008/06/15/goodbye-mrtg/#comments</comments>
		<pubDate>Sun, 15 Jun 2008 04:35:45 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[graphing]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[rrdtool]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=1786</guid>
		<description><![CDATA[I&#8217;ve finally got just about all the network graphs I maintain using RRDtool rather than MRTG. I started doing this since MRTG isn&#8217;t good for graphing things with more than 2 sets of numbers. I started doing this because I &#8230; <a href="http://robert.accettura.com/blog/2008/06/15/goodbye-mrtg/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally got just about all the network graphs I maintain using RRDtool rather than MRTG.  I started doing this since MRTG isn&#8217;t good for graphing things with more than 2 sets of numbers.  I started doing this because I wanted to track <a href="http://robert.accettura.com/blog/2008/05/26/cable-modem-power-level-graphing/">cable modem data</a>.  I figured while I&#8217;m at it, I should move other stuff too.  </p>
<p>So much easier to read, and so much faster since your not spitting out graphics files every time the system polls.  Not to mention the quality of the graphing image is much nicer.  These are shrunk a little and they still look great.</p>
<p><img src="http://robert.accettura.com/wp-content/uploads/2008/06/20080615_traffic.png" alt="Traffic" class="centered aligncenter size-full wp-image-1787" /></p>
<p><img src="http://robert.accettura.com/wp-content/uploads/2008/06/20080615_ping.png" alt="Ping" class="centered aligncenter size-full wp-image-1788" /></p>
<p>MRTG is still running, but I think I&#8217;ll shut it down as soon as I can verify things are working the way I want.
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=1786#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2008/06/6449f44.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2008/06/15/goodbye-mrtg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cable Modem Power Level Graphing</title>
		<link>http://robert.accettura.com/blog/2008/05/26/cable-modem-power-level-graphing/</link>
		<comments>http://robert.accettura.com/blog/2008/05/26/cable-modem-power-level-graphing/#comments</comments>
		<pubDate>Tue, 27 May 2008 01:35:00 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[cable modem]]></category>
		<category><![CDATA[comcast]]></category>
		<category><![CDATA[rrdtool]]></category>

		<guid isPermaLink="false">http://robert.accettura.com/?p=1755</guid>
		<description><![CDATA[As I hinted last week, I graph a fair amount of data, since I find it pretty handy at times, not to mention just interesting to see in a pretty graph form. I&#8217;ve been doing this for years and it&#8217;s &#8230; <a href="http://robert.accettura.com/blog/2008/05/26/cable-modem-power-level-graphing/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As I hinted <a href="http://robert.accettura.com/blog/2008/05/17/poor-broadband-performance/">last week</a>, I graph a fair amount of data, since I find it pretty handy at times, not to mention just interesting to see in a pretty graph form.  I&#8217;ve been doing this for years and it&#8217;s served me well.</p>
<p>One thing I really wanted to get going was monitoring the cable modem&#8217;s power levels.  This is now implemented:</p>
<p><img src="http://robert.accettura.com/wp-content/uploads/2008/05/20080526_cable_modem_power_levels.png" alt="Cable Modem Power Levels" class="centered aligncenter wp-image-1754" /></p>
<p>How pretty is that?  I also moved my ping/latency graphs away from MRTG to RRDTool based graphs.  Next up is interface traffic (when I get around to figuring out why it didn&#8217;t work when I just tried it).
<div id="rja_commentCountImage"><a href="http://robert.accettura.com/?p=1755#comments"><img src="http://robert.accettura.com/wp-content/commentCount/2008/05/d8d31bd.gif" alt="Comment Count" style="border:0;" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://robert.accettura.com/blog/2008/05/26/cable-modem-power-level-graphing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

