<?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>asyd's blog &#187; jrds</title>
	<atom:link href="http://blog.asyd.net/tag/jrds/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.asyd.net</link>
	<description>unix forever, for everyone. Not convinced, try Mac OS X!</description>
	<lastBuildDate>Wed, 21 Jul 2010 14:26:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to build and deploy JRDS</title>
		<link>http://blog.asyd.net/2009/05/how-to-build-and-deploy-jrds/</link>
		<comments>http://blog.asyd.net/2009/05/how-to-build-and-deploy-jrds/#comments</comments>
		<pubDate>Mon, 25 May 2009 19:15:33 +0000</pubDate>
		<dc:creator>asyd</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[jrds]]></category>

		<guid isPermaLink="false">http://blog.asyd.net/?p=318</guid>
		<description><![CDATA[At my work, we currently use nagios and cacti for monitoring, the &#8220;standard&#8221; tools. However, why it&#8217;s difficult to replace nagios &#8211; for many reasons (it use standard flat configuration flies) &#8211; I&#8217;m looking for a way to replace Cacti. Indeed, it&#8217;s written in pure PHP, there is almost no CLI. So, when I add [...]]]></description>
			<content:encoded><![CDATA[<p>At my work, we currently use nagios and cacti for monitoring, the &#8220;standard&#8221; tools. However, why it&#8217;s difficult to replace nagios &#8211; for many reasons (it use standard flat configuration flies) &#8211; I&#8217;m looking for a way to replace Cacti. Indeed, it&#8217;s written in pure PHP, there is almost no CLI. So, when I add a new host, I need to use my browser, and my mouse, and I don&#8217;t like that. By chance, a friend of mine wrote his own tool, called <a href="http://jrds.sourceforge.net">JRDS</a>, in pure Java. I&#8217;m actually in test phase, however, here are some pros:</p>
<ul>
<li>It&#8217;s Java, no need for php, whatever.</li>
<li>JRDS use <a href="http://rrd4j.dev.java.net/">rrd4j</a>, RRDTool Java implementation</li>
<li>Use flat files for configuration, so it&#8217;s very easy to manage</li>
</ul>
<p>However, one of its wort cons i s the lack of documentation! So here some notes to build JRDS :</p>
<ol>
<li>Fetch and extract JRDS sources from the <a href="http://sourceforge.net/scm/?type=svn&#038;group_id=134636">subversion repository</a></li>
<li>Fetch and extract RRD4j sources from the <a href="https://rrd4j.dev.java.net/source/browse/rrd4j/">subversion repository</a> (note: a dev.java.net account seem to be required)</li>
<li>Build RRD4j
<ul>
<li><code># cd rrd4j/rrd4j</code></li>
<li><code># ant</code></li>
<li><code># cp rrd4j-&lt;version&gt;.jar $JRDS_HOME/trunk/lib</code></li>
</ul>
</li>
<li>Build JRDS
<ul>
<li>If you don&#8217;t have it, download <a href="http://ant.apache.org/ivy/">ivy</a> and copy its jar in ~/.ant/lib directory</li>
<li><code># cd $JRDS_HOME/trunk</code></li>
<li><code># ant resolve</code></li>
<li>Extrat <em>c.tld</em> from lib/standard.jar and copy the file in the <em>lib/</em> directory (<code> # unzip lib/standard.jar META-INF/c.tld ; mv META-INF/c.tld lib/ ; rmdir META-INF</code></li>
<li><code># cp local.properties.sample local.properties</code>
<li>
<li>Edit local.properties, don&#8217;t forget to set <em>jai.home</em> at the end of file</li>
<li><code># ant war</code></li>
</ul>
</li>
<li>Before deploy jrds.war, you need to create a properties file, and some directories. See the <a href="http://jrds.sourceforge.net/ug/userguide.html#Initial+setup">inital setup</a> chapter of JRDS Userguide.</li>
<li>Note: to deploy JRDS on Glassfish, the only way I found to create the property is to defined in the JVM options. I also have sometimes a deadlock, if that appears, you need to kill the Glassfish process and restart it.</li>
</ol>
<p><br/></p>
<h3>jrds.properties</h3>
<p><pre>
configdir=/Users/bbonfils/tools/jrds/config
rrddir=/Users/bbonfils/tools/jrds/probe
logfile=/Users/bbonfils/tools/jrds/log/jrds.log
libspath=/Users/bbonfils/sources/jrds/trunk/build/probes.jar
#loglevel=debug
</pre>
</p>
<p><br/></p>
<h3>config/host-kaoru.xml</h3>
<p>
<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;host</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;kaoru.asyd.net&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snmp</span> <span style="color: #000066;">community</span>=<span style="color: #ff0000;">&quot;secret&quot;</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;2&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;TcpSnmp&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;IpSnmp&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;UdpSnmp&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;IcmpSnmp&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;MemLinux&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;CpuRawTimeLinux&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;UcdRawSystemCounter&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;PartitionSpace&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;/&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/probe<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;IfSnmp&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
               <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;arg</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;String&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;eth0&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/probe<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;CpuLoadFloat&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;probe</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;TcpStat&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/host<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>
</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.asyd.net/2009/05/how-to-build-and-deploy-jrds/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
