<?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>The WebDevil &#187; RRD</title>
	<atom:link href="http://dmitry.shaposhnik.name/category/rrd/feed/" rel="self" type="application/rss+xml" />
	<link>http://dmitry.shaposhnik.name</link>
	<description>Enjoy development</description>
	<lastBuildDate>Mon, 24 May 2010 01:29:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Having fun with RRD and architecture</title>
		<link>http://dmitry.shaposhnik.name/2009/06/19/having-fun-with-rrd-and-architecture/</link>
		<comments>http://dmitry.shaposhnik.name/2009/06/19/having-fun-with-rrd-and-architecture/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 02:16:12 +0000</pubDate>
		<dc:creator>dm</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[RRD]]></category>

		<guid isPermaLink="false">http://dmitry.shaposhnik.name/?p=282</guid>
		<description><![CDATA[Переезжал на новый сервер, и наигрался вволю со всеми мониторингами и прочим. Была обнаружена неприятная особенность RRD: бд платформозависима. Пришлось на старом сервере делать дамп
for i in *.rrd; do rrdtool dump $i &#62; $i.xml; done
тащить на новый (tar, scp либо nc) и там разворачивать:
for i in *.xml; do A=`echo $i&#124;sed 's/\.xml//'`; rrdtool restore -f $i [...]]]></description>
			<content:encoded><![CDATA[<p>Переезжал на новый сервер, и наигрался вволю со всеми мониторингами и прочим. Была обнаружена неприятная особенность RRD: бд платформозависима. Пришлось на старом сервере делать дамп</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.rrd; <span style="color: #000000; font-weight: bold;">do</span> rrdtool dump <span style="color: #007800;">$i</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #007800;">$i</span>.xml; <span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>тащить на новый (tar, scp либо nc) и там разворачивать:</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> i <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">*</span>.xml; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #007800;">A</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$i</span><span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s/\.xml//'</span><span style="color: #000000; font-weight: bold;">`</span>; rrdtool restore <span style="color: #660033;">-f</span> <span style="color: #007800;">$i</span> <span style="color: #007800;">$A</span>; <span style="color: #000000; font-weight: bold;">done</span></div></div>
<p>По поводу того как тащить данные между серверами &#8211; ninja way:<br />
На стороне получателя</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">netcat <span style="color: #660033;">-l</span> <span style="color: #660033;">-p</span> <span style="color: #000000;">7000</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> x</div></div>
<p>На стороне отправителя</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">tar</span> cf - <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">|</span> netcat otherhost <span style="color: #000000;">7000</span></div></div>
<p>Ссылки по теме:<br />
<a href="http://compsoc.dur.ac.uk/~djw/tarpipe.html">tarpipe</a><br />
<a href="http://forums.cacti.net/about19026.html">RRD convert</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dmitry.shaposhnik.name/2009/06/19/having-fun-with-rrd-and-architecture/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
