<?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>Munin | Nerdpress.org</title>
	<atom:link href="https://nerdpress.org/tag/munin/feed/" rel="self" type="application/rss+xml" />
	<link>https://nerdpress.org</link>
	<description>...dev, tech problems and solutions.</description>
	<lastBuildDate>Tue, 02 Nov 2010 19:55:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Server Monitoring mit Munin</title>
		<link>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/</link>
					<comments>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/#comments</comments>
		
		<dc:creator><![CDATA[Ivo Bathke]]></dc:creator>
		<pubDate>Tue, 02 Nov 2010 19:55:07 +0000</pubDate>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[vServer]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Munin]]></category>
		<category><![CDATA[Webserver]]></category>
		<guid isPermaLink="false">https://nerdpress.org/?p=1143</guid>

					<description><![CDATA[<p>Da ich ein Kontrollfreak bin ;) wollte ich mal meinen vServer monitoren. Nach allem was ich so las, scheint wohl Munin das geeignete Tool zu sein. Also aufgemacht und es installiert: Munin ist Server-Client mäßig aufgebaut, ich installiere der Einfachkeit halber mal Server und Client (Node) auf der selben Maschine. Für Debian Lenny geht das &#8230; </p>
<p class="link-more"><a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/" class="more-link">Continue reading<span class="screen-reader-text"> "Server Monitoring mit Munin"</span></a></p>
The post <a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/">Server Monitoring mit Munin</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></description>
										<content:encoded><![CDATA[<p>Da ich ein Kontrollfreak bin ;) wollte ich mal meinen vServer monitoren.<br />
Nach allem was ich so las, scheint wohl <a href="http://munin-monitoring.org">Munin</a>  das geeignete Tool zu sein.</p>
<p>Also aufgemacht und es installiert:<br />
Munin ist Server-Client mäßig aufgebaut, ich installiere der Einfachkeit halber mal Server und Client (Node) auf der selben Maschine.<br />
Für <strong>Debian Lenny</strong> geht das ganz einfach über apt-get:</p>
<pre class="brush: bash; title: ; notranslate">
apt-get install munin munin-node
</pre>
<p>So nun noch das Webinterface umlegen: ich mache dafür eine eigene Subdomain bei einem meiner vHosts über Plesk.<br />
zB munin.nerdpress.org (nein, die url gibts in echt nicht)</p>
<p>jetzt muss noch das www Verzeichnis, welches Munin generiert umkopiert werden in das Subdomain Verzeichnis:</p>
<pre class="brush: bash; title: ; notranslate">
cp -r /var/www/munin/* /var/www/vhosts/nerdpress/subdomains/munin/httpdocs
</pre>
<p><span id="more-1143"></span></p>
<p>Wichtig ist noch die Besitzer richtig zu setzen:</p>
<pre class="brush: bash; title: ; notranslate">
chown -R munin:munin /var/www/vhosts/nerdpress/subdomains/munin/httpdocs
</pre>
<p>Das Verzeichnis sollte man dann noch über .htaccess Passwort schützen.</p>
<p>Nun noch Munin beibringen das sein www Verzeichnis woanders ist, dafür muss man in die <em>munin.conf</em></p>
<pre class="brush: bash; title: ; notranslate">
joe /etc/munin/munin.conf:
</pre>
<p>und folgendes ändern:</p>
<pre class="brush: bash; title: ; notranslate">
htmldir /var/www/vhosts/nerdpress.org/subdomains/munin/httpdocs
</pre>
<p>Und wenn man schonmal da ist, kann man auch direkt seinen Server registrieren:</p>
<pre class="brush: bash; title: ; notranslate">
&#x5B;munin.nerdpress.org]
address 127.0.0.1
use_node_name yes
</pre>
<p>Weiter gehts mit dem Node, dieser will auch noch konfiguriert sein:</p>
<pre class="brush: bash; title: ; notranslate">
joe /etc/munin/munin-node.conf
</pre>
<p>Dort den host_name anpassen:</p>
<pre class="brush: bash; title: ; notranslate">
host_name munin.nerdpress.org
</pre>
<p>Soweit so gut. Nun sieht man aber noch nichts. Dafür muss man erstmal die Plugins, die man braucht aktivieren.<br />
Dies geschieht durch einen symlink:</p>
<pre class="brush: bash; title: ; notranslate">
ln -s /usr/share/munin/plugins/apache_accesses /etc/munin/plugins/apache_accesses
ln -s /usr/share/munin/plugins/memory /etc/munin/plugins/memory
</pre>
<p>Damit sind das Plugin, was den RAM monitored und das für die Apache Accesses &#8220;installiert&#8221;.</p>
<p>Jetzt noch den Node restarten </p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/munin-node restart
</pre>
<p>und ein wenig warten, dann sollte man unter <em>munin.nerdpress.org</em> die ersten Graphen sehen. </p>
<p>Aber nichts funktioniert ja auf Anhieb ohne Probleme, so auch hier:<br />
Die System Plugin Graphen für Memory, Plattenplatz und CPU funktionieren, die Apache Plugins produzieren jedoch einen <strong>leeren Graph</strong>.</p>
<p>Warum dies?<br />
Mit Googles Hilfe dann ein paar Debug Schritte vorgenommen:</p>
<pre class="brush: bash; title: ; notranslate">
munin-run apache_accesses
</pre>
<p>Dies sagt: <em>accesses80.value U</em></p>
<pre class="brush: bash; title: ; notranslate">
munin-node-configure --suggest | grep apache
</pre>
<p>sagt:<br />
<em>Got junk from apache_accesses:</em></p>
<p>Des Rätsels Lösung ist dem Apache &#8220;sprechen beibringen&#8221;, wie <a href="https://bugs.launchpad.net/ubuntu/+source/munin/+bug/231706">hier</a> und <a href="http://linuxundich.de/de/ubuntu/webbasierte-serveruberwachung-mit-munin/">hier</a> beschrieben.</p>
<p>Also die <em>/etc/apache2/apache2.conf</em> editiert und folgenden Block so umgeschrieben, wichtig ist dabei das <em>ExtendedStatus On</em>:</p>
<pre class="brush: bash; title: ; notranslate">
&lt;IfModule mod_status.c&gt;
    #
    # Allow server status reports generated by mod_status,
    # with the URL of http://servername/server-status
    # Change the &quot;.example.com&quot; to match your domain to enable.
    #
    ExtendedStatus On
    &lt;Location /server-status&gt;
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1
    &lt;/Location&gt;
&lt;/IfModule&gt;
 </pre>
<p>Noch den Apache restarten</p>
<pre class="brush: bash; title: ; notranslate">
/etc/init.d/apache2 restart
</pre>
<p>und siehe da auch die Apache Graphen werden gefüllt.</p>
<p>Ich hoffe Plesk läßt die Apache Konfiguration so stehen, aber bisher siehts so aus.</p>
<p>Mal sehen was man damit noch alles anstellen kann.</p>The post <a href="https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/">Server Monitoring mit Munin</a> first appeared on <a href="https://nerdpress.org">Nerdpress.org</a>.]]></content:encoded>
					
					<wfw:commentRss>https://nerdpress.org/2010/11/02/server-monitoring-mit-munin/feed/</wfw:commentRss>
			<slash:comments>5</slash:comments>
		
		
			</item>
	</channel>
</rss>
