Tutorial - Setup a dev environment for Munin

<p>I discovered some time ago the marvelous <code>dev_scripts/</code> directory
in the munin source code. So, as its usage is <em>very</em> easy, I'll just
write a tutorial about how to use it</p>
<p>To use it, one has to install all the packages needed for munin, and to grab
a copy of the source code. Easiest is to use either a tarball, or to clone the
git repository.</p>
<p>Note that the <a href="http://munin-monitoring.org/browser/munin/README?rev=master" hreflang="en">guidelines on contributing</a> back are specified directly in the git
<p>Now, I just assume you want to contribute back, otherwise you would not care
much about the said dev environment. That means using the git way of doing
<h2>Download the source code</h2>
<p>First step is to clone the git repository. We will use
<code>$HOME/src/munin</code> as the development directory.</p>
<pre>mkdir -p $HOME/src
cd $HOME/src
git clone https://github.com/munin-monitoring/munin munin
cd munin
<h2>Compile munin</h2>
<p>Now, we have to compile the source code. I know that it sounds strange as
the code is mostly Perl, but there are some templates that need to be filled
with the environment specifics, such as the Perl interpreter path, a POSIX
compatible shell, ...</p>
<pre>dev_scripts/install 1
<p>Now all munin (and munin-node) should be compiled and installed in
<p>Note that the <code>1</code> at the end is explained below.</p>
<h2>Using the dev tools</h2>
<p>There are some different tools in <code>dev_scripts/</code> :</p>
<p>This is the one you used already. You have to use it every time you want to
recompile &amp; deploy the package.</p>
<p>The <code>1</code> argument, does a full re-install (wipe &amp; install), so
you don't usually want to do that.</p>
<p>This is a tool to start the developpement node. Note that it listens on the
port 4948, so you can use it alongside a normal munin-node.</p>
<h2>To Be Continued</h2>
<p>More on how to launch munin-update, munin-graph, .... &amp; even CGI</p> link

Posted by SourceForge Robot 2014-01-15

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks