<?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>Geekfault &#187; monitoring</title>
	<atom:link href="http://geekfault.org/tag/monitoring/feed/" rel="self" type="application/rss+xml" />
	<link>http://geekfault.org</link>
	<description>If it doesn&#039;t segfault, you&#039;re doing it wrong.</description>
	<lastBuildDate>Tue, 08 May 2012 17:13:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Monitoring &#8211; Munin</title>
		<link>http://geekfault.org/2010/02/20/monitoring-munin/</link>
		<comments>http://geekfault.org/2010/02/20/monitoring-munin/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 17:40:17 +0000</pubDate>
		<dc:creator>bragon</dc:creator>
				<category><![CDATA[Logiciel]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[munin]]></category>
		<category><![CDATA[planet-libre]]></category>
		<category><![CDATA[serveur]]></category>

		<guid isPermaLink="false">http://geekfault.org/?p=1893</guid>
		<description><![CDATA[Je vais ici vous parler de Munin. C&#8217;est un outils de génération de graphs basé sur rrdtool. Il permet de grapher toute sorte de chose vachement bien, et comme j&#8217;en suis pleinement convaincu, je vais vous le présenter ici. L&#8217;intégration de plugins supplémentaire afin de grapher des choses non prévu à la base est enfantine. [...]
<h3>Si vous avez aimé ce post...</h3><ol>
<li><a href='http://geekfault.org/2010/03/01/nginx-et-python-le-perfect-setup/' rel='bookmark' title='nginx et python &#8211; le perfect setup'>nginx et python &#8211; le perfect setup</a></li>
<li><a href='http://geekfault.org/2009/12/31/construire-sa-gateway-from-scratch/' rel='bookmark' title='EeeGW : Créer soi-même une passerelle réseau'>EeeGW : Créer soi-même une passerelle réseau</a></li>
<li><a href='http://geekfault.org/2010/04/09/filtrer-ses-mails-un-cauchemard/' rel='bookmark' title='Filtrer ses mails ! Un cauchemard !'>Filtrer ses mails ! Un cauchemard !</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/munin_logo/" rel="attachment wp-att-2099"><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;' align="left"   src="http://geekfault.org/wp-content/uploads/2010/02/Munin_logo.png" alt="" title="Munin_logo" width="305" height="80" class="alignleft size-full wp-image-2099" /></a></p>
<p>Je vais ici vous parler de Munin.<br />
C&#8217;est un outils de génération de graphs basé sur rrdtool.<br />
Il permet de grapher toute sorte de chose vachement bien, et comme j&#8217;en suis pleinement convaincu, je vais vous le présenter ici.<br />
L&#8217;intégration de plugins supplémentaire afin de grapher des choses non prévu à la base est enfantine.<br />
Il existe pas mal de munin publique qui peuvent vous permettre de vous rendre compte de la puissance de l&#8217;outils.<br />
Allez par exemple visualiser : <a href="https://supervision.globenet.org/munin">https://supervision.globenet.org/munin/</a></p>
<p>Geeknode génére sa page statistique grace à des plugins Munin homemade également :<br />
Allez visualiser : <a href="http://www.geeknode.org/statistiques.html">http://www.geeknode.org/statistiques.html</a></p>
<p>J&#8217;espère ainsi vous avoir donné l&#8217;envie d&#8217;aller voir plus loin avec ce soft très bien fait.</p>
<p><!--more--></p>
<h4> Munin se décompose en 2 parties : </h4>
<p>Le grapheur munin sur une machine qui va se charger de la surveillance, c&#8217;est la machine qui va s&#8217;occuper d&#8217;interroger tous les nodes, et de générer les graphiques à partir des fichiers rrd collectés.</p>
<p>Le démon munin-node sur chaque machine qui va fournir son état au grapheur.</p>
<p>Evidement, si vous n&#8217;avez qu&#8217;un seul serveur vous aurez a exécuter munin-graph et munin-node sur la même machine.</p>
<p>munin-node.conf doit binder sur 127.0.0.1 (host) et n&#8217;a pas besoin d&#8217;accepter autre chose que 127.0.0.1 (allow) dans le cas d&#8217;une machine simple.</p>
<p>Si vous avez plusieurs machines à grapher vous devez bien sur écouter sur une ipv4 publique afin que le grapher puisse récupérer vos données.</p>
<h4>Pour firewaller munin-node : </h4>
<p><code><br />
INPUT TCP IP.SRC.MUNIN.GRAPH/32 4949 sur les munin-node<br />
OUTPUT TCP 4949 sur le munin-graph<br />
</code></p>
<h3> On install munin-node sur les machines à surveiller </h3>
<p>MUNIN-NODE est à installer sur toutes les machines que l&#8217;on veut grapher.</p>
<p>Installation du daemon munin-node  sous Gentoo :<br />
<code><br />
echo 'net-analyzer/munin minimal -ssl -mysql' >> /etc/portage/package.use<br />
emerge -av net-analyzer/munin<br />
</code></p>
<p>Installation du daemon munin-node sous Debian<br />
<code><br />
apt-get install munin-node<br />
</code></p>
<h3> Configuration du daemon munin-node </h3>
<p>On importe les plugins sous gentoo :<br />
On ajoute les plugins de base<br />
Sous debian les plugins de base en fonction des services tournant sur la machine sont par defaut activés.</p>
<p><code><br />
cd /etc/munin/plugins<br />
ln -s /usr/libexec/munin/plugins/swap<br />
ln -s /usr/libexec/munin/plugins/memory<br />
ln -s /usr/libexec/munin/plugins/processes<br />
ln -s /usr/libexec/munin/plugins/if_ /etc/munin/plugins/if_eth0<br />
ln -s /usr/libexec/munin/plugins/if_ /etc/munin/plugins/if_eth1<br />
ln -s /usr/libexec/munin/plugins/uptime<br />
ln -s /usr/libexec/munin/plugins/cpu<br />
ln -s /usr/libexec/munin/plugins/load<br />
ln -s /usr/libexec/munin/plugins/df<br />
ln -s /usr/libexec/munin/plugins/interrupts<br />
ln -s /usr/libexec/munin/plugins/iostat<br />
ln -s /usr/libexec/munin/plugins/netstat<br />
ln -s /usr/libexec/munin/plugins/users<br />
</code></p>
<h4> On ajoute les plugins apache</h4>
<p><code><br />
ln -s /usr/libexec/munin/plugins/apache_accesses<br />
ln -s /usr/libexec/munin/plugins/apache_processes<br />
ln -s /usr/libexec/munin/plugins/apache_volume<br />
</code></p>
<h3> On autorise le serveur à grapher à accéder au munin-node </h3>
<p>* /etc/munin/munin-node.conf<br />
 allow ^IP\.PRIVE\.DU-SERVEUR-QUI-GRAPH\.ETH1$</p>
<p>* au passage on bind le munin-node sur eth1 aussi, ça évite d&#8217;écouter inutilement sur toutes les autres interfaces<br />
 host IP.PRIVE.DE.CETTE.MACHINE</p>
<h4> Exemple de fichier munin-node.conf </h4>
<p><code><br />
log_level 4<br />
log_file /var/log/munin/munin-node.log<br />
port 4949<br />
pid_file /var/run/munin/munin-node.pid<br />
background 1<br />
setseid 1</p>
<p># Which port to bind to;<br />
host *<br />
user root<br />
group root<br />
setsid yes</p>
<p># Regexps for files to ignore</p>
<p>ignore_file ~$<br />
ignore_file \.bak$<br />
ignore_file %$<br />
ignore_file \.dpkg-(tmp|new|old|dist)$<br />
ignore_file \.rpm(save|new)$</p>
<p>allow ^10\.0\.69\.250$<br />
</code></p>
<h3> Installation du grapheur </h3>
<p>Sous Gentoo :<br />
<code><br />
echo 'net-analyzer/munin -minimal -mysql' > /etc/portage/package.use<br />
emerge -av munin<br />
</code></p>
<p>Sous Debian :<br />
<code><br />
apt-get install munin<br />
</code></p>
<h4> Exemple de fichier munin.conf </h4>
<p><code></p>
<p>dbdir   /var/lib/munin<br />
htmldir /var/www/munin<br />
logdir  /var/log/munin<br />
rundir  /var/run/munin<br />
tmpldir /etc/munin/templates</p>
<p>[localhost.localdomain]<br />
    address 127.0.0.1<br />
    use_node_name yes</p>
<p>[brag-nas]<br />
        address 10.0.69.240<br />
        use_node_name yes</p>
<p>[satanas.bragon.info]<br />
        address 10.0.69.45<br />
        use_node_name yes<br />
[lucifer.bragon.info]<br />
        address 10.0.69.1<br />
        use_node_name yes</p>
<p></code></p>
<h4> crontab </h4>
<p>Une crontab doit logiquement s&#8217;etre ajouté lors de l&#8217;installation sur le grapher pour l&#8217;utilisateur munin :<br />
<code><br />
crontab -u munin -l<br />
# m h  dom mon dow   command<br />
*/5     * * * *         [ -x /usr/bin/munin-cron ] &#038;&#038; /usr/bin/munin-cron<br />
</code></p>
<p>Si la crontab ne s&#8217;est pas mise en place rajoutez la.</p>
<p><code><br />
crontab -u munin -e<br />
</code></p>
<h3> Exemples de graphs </h3>
<p>Et enjoy les supra bien graph <img src='http://geekfault.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/acpi-month/" rel="attachment wp-att-2102"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/acpi-month.png" alt="" title="acpi-month" width="501" height="275" class="aligncenter size-full wp-image-2102" /></a></p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/openvpn_clients-week/" rel="attachment wp-att-2103"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/openvpn_clients-week.png" alt="" title="openvpn_clients-week" width="501" height="275" class="aligncenter size-full wp-image-2103" /></a></p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/sdf_mysql_queries-day/" rel="attachment wp-att-2104"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/sdf_mysql_queries-day.png" alt="" title="sdf_mysql_queries-day" width="501" height="347" class="aligncenter size-full wp-image-2104" /></a></p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/cps_0-week/" rel="attachment wp-att-2105"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/cps_0-week.png" alt="" title="cps_0-week" width="501" height="347" class="aligncenter size-full wp-image-2105" /></a></p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/nfsd-week/" rel="attachment wp-att-2108"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/nfsd-week.png" alt="" title="nfsd-week" width="501" height="527" class="aligncenter size-full wp-image-2108" /></a></p>
<p><a href="http://geekfault.org/2010/02/20/monitoring-munin/if_eth0-day/" rel="attachment wp-att-2109"><img style=' display: block; margin-right: auto; margin-left: auto;' align="center"   src="http://geekfault.org/wp-content/uploads/2010/02/if_eth0-day.png" alt="" title="if_eth0-day" width="501" height="275" class="aligncenter size-full wp-image-2109" /></a></p>
<p><h3>Si vous avez aimé ce post...</h3><ol>
<li><a href='http://geekfault.org/2010/03/01/nginx-et-python-le-perfect-setup/' rel='bookmark' title='nginx et python &#8211; le perfect setup'>nginx et python &#8211; le perfect setup</a></li>
<li><a href='http://geekfault.org/2009/12/31/construire-sa-gateway-from-scratch/' rel='bookmark' title='EeeGW : Créer soi-même une passerelle réseau'>EeeGW : Créer soi-même une passerelle réseau</a></li>
<li><a href='http://geekfault.org/2010/04/09/filtrer-ses-mails-un-cauchemard/' rel='bookmark' title='Filtrer ses mails ! Un cauchemard !'>Filtrer ses mails ! Un cauchemard !</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://geekfault.org/2010/02/20/monitoring-munin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

